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
Install script ran successfully
Server metrics [RAM: ▲1.52MB] [CPU: ▲4.32ms] Passed 4 tests
Server-side resources used by Load More Products for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.00 ▲1.53 | 46.35 ▲8.10 |
Dashboard /wp-admin | 4.82 ▲1.52 | 56.36 ▲7.77 |
Posts /wp-admin/edit.php | 4.93 ▲1.57 | 61.46 ▲9.86 |
Add New Post /wp-admin/post-new.php | 7.40 ▲1.51 | 96.04 ▼8.46 |
Media Library /wp-admin/upload.php | 4.74 ▲1.51 | 48.58 ▲15.48 |
Server storage [IO: ▲2.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 109 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
berocket_admin_notices_rate_stars |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
br_load_more_products |
Browser metrics Passed 4 tests
Checking browser requirements for Load More Products for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲71 | 13.57 ▼1.10 | 1.61 ▼0.10 | 42.58 ▼1.68 |
Dashboard /wp-admin | 2,211 ▲26 | 4.84 ▼1.05 | 101.97 ▲0.17 | 67.57 ▲25.76 |
Posts /wp-admin/edit.php | 2,106 ▲17 | 2.05 ▲0.02 | 36.42 ▼2.84 | 33.66 ▲0.57 |
Add New Post /wp-admin/post-new.php | 1,530 ▲2 | 17.68 ▼0.50 | 725.48 ▲114.47 | 56.64 ▼7.20 |
Media Library /wp-admin/upload.php | 1,402 ▲14 | 4.16 ▼0.05 | 98.54 ▼1.07 | 72.11 ▲29.50 |
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
These items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- berocket_admin_notices_rate_stars
- berocket_key_activated_plugins
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Almost there! Just fix the following items
- 22× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/load-more-products-for-woocommerce/berocket/libraries/popup.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/load-more-products-for-woocommerce/berocket/sale/sale.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/load-more-products-for-woocommerce/includes/main.php:6
- > PHP Notice
Undefined variable: title in wp-content/plugins/load-more-products-for-woocommerce/berocket/templates/widget.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/load-more-products-for-woocommerce/berocket/includes/error_notices.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/load-more-products-for-woocommerce/main.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/load-more-products-for-woocommerce/berocket/framework.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/load-more-products-for-woocommerce/berocket/includes/settings_fields.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/load-more-products-for-woocommerce/berocket/includes/admin_notices.php:797
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/load-more-products-for-woocommerce/berocket/libraries/tippy.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (General settings), #2 (Button settings), #3 (Selectors settings)
- Tags: Please delete some tags, you are using 28 tag instead of maximum 10
load-more-products-for-woocommerce/load-more-products.php 85% from 13 tests
The principal PHP file in "Load More Products for WooCommerce" v. 1.1.9.9 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: Name the main plugin file the same as the plugin slug ("load-more-products-for-woocommerce.php" instead of "load-more-products.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin22,652 lines of code in 68 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 18 | 2,517 | 85 | 9,730 |
PHP | 35 | 476 | 1,027 | 9,356 |
JavaScript | 10 | 58 | 68 | 3,007 |
PO File | 3 | 229 | 251 | 514 |
XML | 2 | 0 | 0 | 45 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 48.26 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 240.00 |
Average method complexity | 4.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 98.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 27 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 363 | |
▷ Static methods | 138 | 38.02% |
▷ Public methods | 363 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 33 | |
▷ Named functions | 33 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
18 PNG files occupy 0.05MB 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% |
berocket/libraries/addons/default.png | 3.87KB | 2.63KB | ▼ 31.94% |
berocket/includes/ico.png | 1.90KB | 1.41KB | ▼ 25.89% |
css/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.27KB | 0.18KB | ▼ 35.00% |
css/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |