Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.04ms] Passed 4 tests
An overview of server-side resources used by WooCommerce HookMeUp
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 39.38 ▲0.12 |
Dashboard /wp-admin | 3.33 ▲0.03 | 50.75 ▲1.22 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.77 ▼7.14 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 93.09 ▲3.14 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 36.74 ▲1.65 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
WooCommerce HookMeUp: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.56 ▼0.80 | 1.71 ▲0.12 | 43.34 ▲4.66 |
Dashboard /wp-admin | 2,215 ▲29 | 5.88 ▲0.94 | 102.29 ▼18.95 | 39.70 ▼6.26 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.02 ▲0.00 | 34.74 ▼8.11 | 35.16 ▼1.25 |
Add New Post /wp-admin/post-new.php | 1,520 ▼22 | 17.62 ▼0.72 | 595.76 ▼26.19 | 50.15 ▼2.17 |
Media Library /wp-admin/upload.php | 1,394 ▲12 | 4.19 ▼0.04 | 95.03 ▼6.38 | 40.60 ▼2.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 22× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/hookmeup/includes/customizer/class/class-hmu-info.php on line 9
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/hookmeup/includes/customizer/class/class-hmu-editor.php on line 9
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/hookmeup/includes/customizer/class/class-hmu-toggle.php on line 9
- > PHP Warning
include(ABSPATHWPINC/class-wp-customize-control.php): failed to open stream: No such file or directory in wp-content/plugins/hookmeup/includes/customizer/class/class-hmu-editor.php on line 9
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/hookmeup/includes/customizer/class/class-hmu-editor.php on line 9
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/hookmeup/includes/appsero/src/Client.php on line 194
- > PHP Warning
include(ABSPATHWPINC/class-wp-customize-control.php): failed to open stream: No such file or directory in wp-content/plugins/hookmeup/includes/customizer/class/class-hmu-toggle.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/hookmeup/includes/customizer/class/class-hmu-collapsible.php:15
- > PHP Warning
include(): Failed opening 'ABSPATHWPINC/class-wp-customize-control.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/hookmeup/includes/customizer/class/class-hmu-editor.php on line 9
- > PHP Warning
include(): Failed opening 'ABSPATHWPINC/class-wp-customize-control.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/hookmeup/includes/customizer/class/class-hmu-collapsible.php on line 9
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: theme, woocommerce, templates, hooks, customize
hookmeup/hookmeup.php 92% from 13 tests
The main file in "WooCommerce HookMeUp" v. 2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 437 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin3,585 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 595 | 1,253 | 2,561 |
CSS | 3 | 10 | 0 | 536 |
Sass | 1 | 46 | 0 | 298 |
JavaScript | 4 | 54 | 9 | 129 |
PO File | 1 | 15 | 15 | 61 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 17.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 155 | |
▷ Static methods | 2 | 1.29% |
▷ Public methods | 104 | 67.10% |
▷ Protected methods | 18 | 11.61% |
▷ Private methods | 33 | 21.29% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected