Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.43ms] Passed 4 tests
Analyzing server-side resources used by Badge Management for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 37.34 ▼2.19 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.96 ▼5.61 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.27 ▼7.58 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 86.91 ▼6.33 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.94 ▼0.86 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Badge Management for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲31 | 14.21 ▼0.18 | 1.71 ▲0.17 | 48.17 ▲3.57 |
Dashboard /wp-admin | 2,201 ▲24 | 5.62 ▼0.04 | 87.34 ▲1.94 | 40.24 ▼0.85 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.99 ▲0.01 | 33.65 ▼5.87 | 35.51 ▼4.29 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 22.99 ▼0.12 | 676.89 ▼13.87 | 50.00 ▼1.59 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▼0.03 | 111.52 ▲0.32 | 47.56 ▼0.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% 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 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/badge-management-for-woocommerce/admin/phoen_badge_management_premium.php
- 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Use of undefined constant PHBGPLUG_PATH - assumed 'PHBGPLUG_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/badge-management-for-woocommerce/admin/phoen_badge_management_premium.php on line 26
- > PHP Warning
Use of undefined constant PHBGPLUG_PATH - assumed 'PHBGPLUG_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/badge-management-for-woocommerce/admin/phoen_badge_management_premium.php on line 30
- > PHP Warning
Use of undefined constant PHBGPLUG_PATH - assumed 'PHBGPLUG_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/badge-management-for-woocommerce/admin/phoen_badge_management_premium.php on line 34
- > PHP Warning
Use of undefined constant PHBGPLUG_URL - assumed 'PHBGPLUG_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/badge-management-for-woocommerce/admin/phoen_badge_management_premium.php on line 110
- > PHP Notice
Undefined variable: active_class in wp-content/plugins/badge-management-for-woocommerce/admin/template/phoen_badge_management_template.php on line 12
- > PHP Warning
Use of undefined constant PHBGPLUG_PATH - assumed 'PHBGPLUG_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/badge-management-for-woocommerce/admin/phoen_badge_management_premium.php on line 28
- > PHP Warning
Use of undefined constant PHBGPLUG_URL - assumed 'PHBGPLUG_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/badge-management-for-woocommerce/admin/phoen_badge_management_premium.php on line 181
- > PHP Warning
Use of undefined constant PHBGPLUG_PATH - assumed 'PHBGPLUG_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/badge-management-for-woocommerce/admin/phoen_badge_management_premium.php on line 32
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/badge-management-for-woocommerce/admin/phoen_badge_management_setting.php:14
- > PHP Warning
Use of undefined constant PHBGPLUG_URL - assumed 'PHBGPLUG_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/badge-management-for-woocommerce/admin/phoen_badge_management_premium.php on line 158
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Tags: Too many tags (27 tag instead of maximum 10); only the first 5 tags are used in your directory listing
badge-management-for-woocommerce/phoen_badge_management_plugin.php 69% from 13 tests
The principal PHP file in "Badge Management for WooCommerce" v. 2.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 165 characters long)
- Domain Path: The domain path is invalid: folder "/languages/" does not exist
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: It is recommended to name the main PHP file as the plugin slug ("badge-management-for-woocommerce.php" instead of "phoen_badge_management_plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,356 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 420 | 29 | 768 |
JavaScript | 2 | 251 | 62 | 361 |
CSS | 3 | 42 | 25 | 227 |
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.41 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 52.94% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 47.06% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
18 PNG files occupy 0.30MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/phoenixx.png | 0.52KB | 0.57KB | 0.00% |
images/add_particular_badge.png | 60.05KB | 22.80KB | ▼ 62.04% |
images/2.png | 1.87KB | 0.46KB | ▼ 75.42% |
images/1.png | 1.49KB | 0.38KB | ▼ 74.20% |
images/image-frame-even.png | 0.67KB | 0.62KB | ▼ 8.42% |