Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▲1.58ms] Passed 4 tests
An overview of server-side resources used by Hoplix Integration for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.72 ▼0.63 |
Dashboard /wp-admin | 3.32 ▲0.01 | 50.11 ▼3.80 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 56.65 ▲6.37 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 97.55 ▲4.95 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.91 ▲5.80 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Hoplix Integration for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▲0.12 | 1.78 ▲0.00 | 45.47 ▼1.31 |
Dashboard /wp-admin | 2,195 ▲15 | 5.54 ▼0.14 | 89.54 ▼11.98 | 41.57 ▼4.38 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▼0.00 | 39.91 ▲2.94 | 37.03 ▲0.60 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.59 ▲0.57 | 649.31 ▼13.01 | 54.62 ▲1.65 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.18 ▼0.04 | 95.09 ▼6.55 | 41.74 ▼1.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/hoplix-print-on-demand-platform/includes/templates/footer.php
- > /wp-content/plugins/hoplix-print-on-demand-platform/includes/templates/header.php
- 15× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/hoplix-print-on-demand-platform/includes/templates/setting-group.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/hoplix-print-on-demand-platform/includes/templates/order-table-wc.php:147
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/hoplix-print-on-demand-platform/includes/templates/stats.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/hoplix-print-on-demand-platform/includes/templates/connect.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/hoplix-print-on-demand-platform/includes/templates/quick-links.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/hoplix-print-on-demand-platform/includes/templates/order-table.php:66
- > PHP Notice
Undefined variable: disabled in wp-content/plugins/hoplix-print-on-demand-platform/includes/templates/setting-submit.php on line 7
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/hoplix-print-on-demand-platform/includes/templates/header.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/hoplix-print-on-demand-platform/includes/templates/ajax-loader.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/hoplix-print-on-demand-platform/includes/templates/error.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
hoplix-print-on-demand-platform/hoplix-integration.php 77% from 13 tests
The entry point to "Hoplix Integration for WooCommerce" version 1.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.9" instead of "3.0.0")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("hoplix-print-on-demand-platform.php" instead of "hoplix-integration.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,027 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 2,655 | 445 | 1,655 |
CSS | 3 | 22 | 2 | 207 |
JavaScript | 5 | 104 | 2 | 165 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 91 | |
▷ Static methods | 31 | 34.07% |
▷ Public methods | 68 | 74.73% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 23 | 25.27% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 22 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 22 | 100.00% |
▷ Public constants | 22 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/hoplix-logo-footer.png | 2.73KB | 1.07KB | ▼ 60.78% |
assets/images/connect.png | 9.59KB | 4.85KB | ▼ 49.43% |
assets/images/hoplix-menu-icon.png | 0.87KB | 0.46KB | ▼ 47.19% |