Benchmarks
Plugin footprint 65% 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.96MB] [CPU: ▼50.63ms] Passed 4 tests
An overview of server-side resources used by Product Badge Manager For Woocommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 6.65 ▼31.17 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.87 ▼43.16 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.42 ▼39.54 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 7.42 ▼88.64 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.97 ▼30.63 |
Server storage [IO: ▲2.90MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 457 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Product Badge Manager For Woocommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲64 | 14.20 ▼0.20 | 1.76 ▲0.18 | 39.69 ▼0.64 |
Dashboard /wp-admin | 2,209 ▲35 | 5.61 ▲0.04 | 89.72 ▼8.05 | 41.33 ▼2.60 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 1.95 ▼0.13 | 39.28 ▼0.20 | 37.24 ▲2.67 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 23.31 ▲0.10 | 618.17 ▼90.90 | 58.77 ▼0.19 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.20 ▲0.00 | 97.36 ▼17.98 | 44.20 ▼3.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'run_wpbm' not found or invalid function name
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 7× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/product-badge-manager-for-woocommerce/libs/meta-box/inc/templates/video.php
- > /wp-content/plugins/product-badge-manager-for-woocommerce/admin/partials/wpbm-admin-display.php
- > /wp-content/plugins/product-badge-manager-for-woocommerce/libs/meta-box/inc/templates/image-advanced.php
- > /wp-content/plugins/product-badge-manager-for-woocommerce/libs/meta-box/inc/templates/audio.php
- > /wp-content/plugins/product-badge-manager-for-woocommerce/libs/meta-box/inc/templates/upload.php
- > /wp-content/plugins/product-badge-manager-for-woocommerce/libs/meta-box/inc/templates/media.php
- > /wp-content/plugins/product-badge-manager-for-woocommerce/public/partials/wpbm-public-display.php
- 66× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Use of undefined constant WPBM_DIR - assumed 'WPBM_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/product-badge-manager-for-woocommerce/models/class-wpbm-badge.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Walker_Base' not found in wp-content/plugins/product-badge-manager-for-woocommerce/libs/meta-box/inc/walkers/select.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Multiple_Values_Field' not found in wp-content/plugins/product-badge-manager-for-woocommerce/libs/meta-box/inc/fields/text-list.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/product-badge-manager-for-woocommerce/libs/meta-box/inc/fields/image-select.php:11
- > PHP Fatal error
require_once(): Failed opening required 'WPBM_DIRincludes/class-wpbm-custom-post.php' (include_path='.:/usr/share/php') in wp-content/plugins/product-badge-manager-for-woocommerce/models/class-wpbm-badge.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Media_Field' not found in wp-content/plugins/product-badge-manager-for-woocommerce/libs/meta-box/inc/fields/file-upload.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/product-badge-manager-for-woocommerce/libs/meta-box/inc/about/sections/upgrade.php:10
- > PHP Fatal error
Uncaught Error: Interface 'RWMB_Storage_Interface' not found in wp-content/plugins/product-badge-manager-for-woocommerce/libs/meta-box/inc/storages/base.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Number_Field' not found in wp-content/plugins/product-badge-manager-for-woocommerce/libs/meta-box/inc/fields/range.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/product-badge-manager-for-woocommerce/libs/meta-box/inc/fields/button.php:11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5 in product-badge-manager-for-woocommerce/assets to your readme.txt
product-badge-manager-for-woocommerce/product-badge-manager-for-woocommerce.php 85% from 13 tests
The primary PHP file in "Product Badge Manager For Woocommerce" version 1.2.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 230 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
Success! There were no dangerous files found in this plugin52,866 lines of code in 407 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 212 | 5,283 | 7,097 | 24,040 |
JavaScript | 105 | 1,856 | 1,025 | 8,906 |
CSS | 46 | 543 | 645 | 7,435 |
PO File | 20 | 3,198 | 3,591 | 6,500 |
Sass | 16 | 970 | 3 | 5,674 |
Markdown | 1 | 70 | 0 | 196 |
JSON | 3 | 0 | 0 | 88 |
SVG | 4 | 0 | 0 | 27 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 15.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 3.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 161 | |
▷ Abstract classes | 8 | 4.97% |
▷ Concrete classes | 153 | 95.03% |
▷ Final classes | 0 | 0.00% |
Methods | 853 | |
▷ Static methods | 349 | 40.91% |
▷ Public methods | 757 | 88.75% |
▷ Protected methods | 37 | 4.34% |
▷ Private methods | 59 | 6.92% |
Functions | 45 | |
▷ Named functions | 41 | 91.11% |
▷ Anonymous functions | 4 | 8.89% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
16 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libs/meta-box/img/jqueryui/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
libs/meta-box/img/jqueryui/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
libs/meta-box/img/jqueryui/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
admin/images/badge-menu-icon.png | 2.00KB | 1.92KB | ▼ 4.19% |
libs/meta-box/img/jqueryui/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |