Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.50MB] [CPU: ▼1.39ms] Passed 4 tests
Analyzing server-side resources used by WPC Badge Management for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.48 | 36.09 ▼5.52 |
Dashboard /wp-admin | 3.84 ▲0.54 | 48.86 ▼2.48 |
Posts /wp-admin/edit.php | 3.89 ▲0.54 | 48.96 ▲2.54 |
Add New Post /wp-admin/post-new.php | 6.38 ▲0.49 | 93.74 ▼0.10 |
Media Library /wp-admin/upload.php | 3.70 ▲0.47 | 38.67 ▲6.81 |
About /wp-admin/admin.php?page=wpclever | 3.67 | 31.67 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 3.67 | 33.37 |
Server storage [IO: ▲4.50MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 94 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WPC Badge Management for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,867 ▲105 | 14.67 ▲0.32 | 1.52 ▼0.30 | 37.08 ▼6.93 |
Dashboard /wp-admin | 2,257 ▲79 | 5.60 ▼0.08 | 87.52 ▼24.29 | 87.66 ▲40.46 |
Posts /wp-admin/edit.php | 2,182 ▲82 | 2.00 ▼0.07 | 38.61 ▲2.73 | 34.99 ▼3.23 |
Add New Post /wp-admin/post-new.php | 1,598 ▲72 | 23.28 ▼0.23 | 739.74 ▲123.66 | 75.08 ▲19.66 |
Media Library /wp-admin/upload.php | 1,471 ▲68 | 4.23 ▲0.05 | 97.42 ▼2.69 | 77.42 ▲34.00 |
About /wp-admin/admin.php?page=wpclever | 1,405 | 2.11 | 32.58 | 32.55 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 5,732 | 2.13 | 32.67 | 65.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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 require attention:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in wpc-badge-management/assets to your readme.txt
wpc-badge-management/wpc-badge-management.php 92% from 13 tests
The main PHP script in "WPC Badge Management for WooCommerce" version 2.3.6 is automatically included on every request by WordPress
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 175 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected32,241 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 24 | 5,017 | 243 | 16,457 |
SVG | 14 | 1 | 9 | 12,628 |
PHP | 6 | 418 | 52 | 2,692 |
JavaScript | 4 | 88 | 16 | 464 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 82.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 307.00 |
Average method complexity | 5.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 100 | |
▷ Static methods | 4 | 4.00% |
▷ Public methods | 95 | 95.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 5.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 10 | |
▷ Global constants | 10 | 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
23 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/style/17.png | 2.03KB | 1.80KB | ▼ 11.09% |
assets/images/style/18.png | 1.86KB | 1.72KB | ▼ 7.56% |
assets/images/style/09.png | 0.83KB | 0.55KB | ▼ 34.62% |
assets/images/style/07.png | 0.66KB | 0.30KB | ▼ 54.81% |
assets/images/style/13.png | 0.72KB | 0.48KB | ▼ 33.56% |