Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.38MB] [CPU: ▲3.21ms] Passed 4 tests
Analyzing server-side resources used by Force Sell for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.84 ▲1.38 | 48.19 ▲7.62 |
Dashboard /wp-admin | 4.74 ▲1.39 | 64.91 ▲6.95 |
Posts /wp-admin/edit.php | 4.79 ▲1.43 | 57.49 ▲3.95 |
Add New Post /wp-admin/post-new.php | 7.25 ▲1.37 | 105.08 ▼5.70 |
Media Library /wp-admin/upload.php | 4.60 ▲1.37 | 53.02 ▲19.53 |
Server storage [IO: ▲2.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 100 new files
Database: no new tables, 8 new options
New WordPress options |
---|
br-force_sell-options |
widget_theysaidso_widget |
can_compress_scripts |
berocket_admin_notices_rate_stars |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Force Sell for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲96 | 13.32 ▼1.09 | 2.03 ▲0.33 | 41.59 ▼3.11 |
Dashboard /wp-admin | 2,226 ▲35 | 5.83 ▲0.96 | 99.39 ▼4.27 | 80.38 ▲40.28 |
Posts /wp-admin/edit.php | 2,116 ▲24 | 2.01 ▼0.04 | 52.28 ▲12.24 | 40.22 ▲2.30 |
Add New Post /wp-admin/post-new.php | 1,548 ▲34 | 18.17 ▲0.61 | 707.55 ▲100.58 | 68.07 ▲14.92 |
Media Library /wp-admin/upload.php | 1,402 ▲14 | 4.26 ▲0.07 | 100.54 ▲2.77 | 70.71 ▲28.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- theysaidso_admin_options
- widget_recent-posts
- berocket_admin_notices_rate_stars
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- berocket_key_activated_plugins
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 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
- 29× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/force-sell-for-woocommerce/berocket/libraries/popup.php:7
- > PHP Fatal error
Uncaught Error: Class 'BeRocket_plugin_variations' not found in wp-content/plugins/force-sell-for-woocommerce/includes/paid.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/force-sell-for-woocommerce/includes/widget.php:5
- > PHP Fatal error
Uncaught Error: Class 'BeRocket_plugin_variations' not found in wp-content/plugins/force-sell-for-woocommerce/includes/tripwire.php:2
- > PHP Fatal error
Uncaught Error: Class 'DiviExtension' not found in wp-content/plugins/force-sell-for-woocommerce/divi/includes/ForcesellExtension.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/force-sell-for-woocommerce/includes/deprecated/force_sell_single.php:4
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/force-sell-for-woocommerce/divi/includes/modules/brforcesell/brforcesell.php:3
- > PHP Notice
Undefined variable: name in wp-content/plugins/force-sell-for-woocommerce/berocket/templates/conditions.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/force-sell-for-woocommerce/berocket/includes/widget.php:8
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/force-sell-for-woocommerce/berocket/templates/settings_footer.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (General settings), #2 (Option on product page)
- Tags: There are too many tags (18 tag instead of maximum 10)
force-sell-for-woocommerce/woocommerce-force-sell.php 92% from 13 tests
Analyzing the main PHP file in "Force Sell for WooCommerce" version 3.5.7.9
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("force-sell-for-woocommerce.php" instead of "woocommerce-force-sell.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin21,450 lines of code in 72 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 43 | 477 | 1,241 | 9,816 |
CSS | 14 | 2,513 | 76 | 9,385 |
JavaScript | 10 | 47 | 61 | 1,699 |
PO File | 2 | 194 | 216 | 430 |
JSX | 1 | 6 | 1 | 81 |
XML | 2 | 0 | 0 | 39 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 46.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 240.00 |
Average method complexity | 4.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 98.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 35 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 35 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 429 | |
▷ Static methods | 154 | 35.90% |
▷ Public methods | 429 | 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 | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
berocket/assets/images/submenu-icon.png | 0.62KB | 0.50KB | ▼ 20.13% |
images/ad_white_on_orange.png | 20.67KB | 15.57KB | ▼ 24.67% |
berocket/assets/images/submenu-icon-a.png | 0.54KB | 0.48KB | ▼ 10.20% |
divi/styles/ico.png | 1.90KB | 1.41KB | ▼ 25.89% |
berocket/libraries/addons/default.png | 3.87KB | 2.63KB | ▼ 31.94% |