Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Error in wp-content/plugins/bonus-for-woo/index.php+664
Uncaught Error: Call to a member function add_cap() on null in wp-content/plugins/bonus-for-woo/index.php:664
Stack trace:
#0 wp-admin/includes/plugin.php(2318): include_once()
#1 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.30ms] Passed 4 tests
Server-side resources used by Bonus for Woo
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.82 ▼3.09 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.12 ▼18.65 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.45 ▲2.40 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.61 ▼7.41 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.01 ▼0.06 |
Server storage [IO: ▲4.30MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 114 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Bonus for Woo
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.43 ▲0.07 | 1.76 ▼0.03 | 42.98 ▼0.37 |
Dashboard /wp-admin | 2,198 ▲21 | 5.55 ▼0.13 | 91.95 ▼8.51 | 42.44 ▼1.66 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.08 | 33.51 ▼4.14 | 36.52 ▲4.29 |
Add New Post /wp-admin/post-new.php | 1,526 ▼5 | 23.16 ▲0.19 | 672.53 ▲12.37 | 57.86 ▼7.66 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.16 ▼0.03 | 93.70 ▼3.58 | 43.42 ▼1.76 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/bonus-for-woo/classes/teamplates/footer.php
- > /wp-content/plugins/bonus-for-woo/classes/teamplates/header.php
- 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bonus-for-woo/index/generator.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bonus-for-woo/index/shortcodes.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function determine_locale() in wp-content/plugins/bonus-for-woo/index/datatable.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bonus-for-woo/index/cashback_in_cart.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bonus-for-woo/index/review.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bonus-for-woo/index/cron.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bonus-for-woo/index/functions.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function determine_locale() in wp-content/plugins/bonus-for-woo/index/coupons.php:61
- > PHP Fatal error
Uncaught Error: Call to undefined function determine_locale() in wp-content/plugins/bonus-for-woo/index/datatable.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/bonus-for-woo/index/statistic.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: bonus, points, cashback, referral system, referral...
bonus-for-woo/index.php 77% from 13 tests
This is the main PHP file of "Bonus for Woo" version 5.8.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("bonus-for-woo.php" instead of "index.php")
- Requires at least: The required version number must match the one declared in readme.txt ("4.9" instead of "5.0")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 237 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected20,853 lines of code in 103 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 32 | 2,408 | 8,131 | 10,909 |
PHP | 28 | 1,444 | 1,005 | 5,442 |
CSS | 22 | 83 | 85 | 2,779 |
PO File | 2 | 731 | 869 | 1,490 |
SVG | 19 | 1 | 1 | 233 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 32.62 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 152.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 141 | |
▷ Static methods | 139 | 98.58% |
▷ Public methods | 141 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 67 | |
▷ Named functions | 65 | 97.01% |
▷ Anonymous functions | 2 | 2.99% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
_inc/datatables/DataTables-1.10.21/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
_inc/datatables/DataTables-1.10.21/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
_inc/datatables/DataTables-1.10.21/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
_inc/datatables/DataTables-1.10.21/images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |
_inc/datatables/DataTables-1.10.21/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |