Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼267.24ms] Passed 4 tests
Analyzing server-side resources used by WooHoo! - WooCommerce customiser
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 37.95 ▲18.20 |
Dashboard /wp-admin | 3.07 ▲0.02 | 47.77 ▲1.21 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 46.57 ▼5.95 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 95.80 ▼1,062.26 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 34.24 ▼1.95 |
Server storage [IO: ▲2.16MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 72 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by WooHoo! - WooCommerce customiser
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,726 ▲120 | 15.90 ▲0.32 | 7.16 ▼0.71 | 52.08 ▲4.05 |
Dashboard /wp-admin | 2,986 ▲136 | 5.97 ▲0.13 | 139.16 ▼8.22 | 103.16 ▼0.04 |
Posts /wp-admin/edit.php | 2,728 ▲22 | 2.70 ▲0.01 | 71.36 ▲6.40 | 106.88 ▲6.44 |
Add New Post /wp-admin/post-new.php | 1,870 ▲219 | 19.06 ▲1.79 | 345.44 ▼18.79 | 107.55 ▼0.01 |
Media Library /wp-admin/upload.php | 1,796 ▲24 | 5.03 ▲0.03 | 145.91 ▼9.07 | 105.95 ▼9.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 21× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/woohoo/includes/core/product_gallery_lightbox.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woohoo/includes/core/woocommerce_breadcrumbs.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woohoo/includes/core/number_of_products_per_row.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woohoo/includes/core/description_tab.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/woohoo/includes/core/product_gallery_slider.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/woohoo/includes/core/product_gallery_zoom.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woohoo/includes/core/rename_coupon_field_in_cart.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woohoo/includes/core/number_of_gallery_thumbnails_per_row.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woohoo/includes/core/order_notes_in_checkout.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woohoo/includes/core/product_excerpt_on_shop_page.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- License uri: Please fix this invalid url: ""
woohoo/woohoo.php 92% from 13 tests
This is the main PHP file of "WooHoo! - WooCommerce customiser" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.9.4" instead of "3.0.0")
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
There were no executable files found in this plugin12,395 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 1,427 | 2,229 | 4,321 |
CSS | 21 | 1,836 | 115 | 4,194 |
SVG | 3 | 0 | 12 | 2,880 |
PHP | 26 | 531 | 525 | 1,000 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 5 | 62.50% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin