Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.90ms] Passed 4 tests
An overview of server-side resources used by Badges Woo
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.76 ▼5.61 |
Dashboard /wp-admin | 3.34 ▲0.03 | 55.20 ▲2.20 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.34 ▲0.32 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 89.70 ▼12.52 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.40 ▲4.22 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Badges Woo
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.20 ▼1.10 | 1.74 ▼0.25 | 42.76 ▼6.06 |
Dashboard /wp-admin | 2,206 ▲18 | 5.09 ▲0.18 | 105.49 ▼12.21 | 41.10 ▼7.21 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 1.99 ▼0.01 | 37.90 ▲0.97 | 32.21 ▼1.35 |
Add New Post /wp-admin/post-new.php | 1,534 ▲1 | 23.03 ▼0.18 | 676.94 ▲6.29 | 52.23 ▲0.21 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.23 ▲0.01 | 96.47 ▼7.23 | 39.70 ▼4.07 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Everything seems fine, however this is by no means an exhaustive test
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 Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: custom, badges, conversion
badges-woo/woobadges.php 85% from 13 tests
The main PHP file in "Badges Woo" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.5" instead of "3.0")
- Main file name: Name the main plugin file the same as the plugin slug ("badges-woo.php" instead of "woobadges.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected520 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 69 | 19 | 270 |
CSS | 1 | 14 | 3 | 137 |
PO File | 2 | 18 | 18 | 72 |
JavaScript | 2 | 7 | 1 | 41 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.68 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 31.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 3.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 1 | 9.09% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
14 PNG files occupy 0.36MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/right-top.png | 3.83KB | 2.12KB | ▼ 44.63% |
img/none.png | 4.92KB | 2.78KB | ▼ 43.51% |
img/left.png | 2.14KB | 0.81KB | ▼ 62.25% |
img/bottom.png | 2.09KB | 0.14KB | ▼ 93.38% |
img/right.png | 2.12KB | 0.79KB | ▼ 62.54% |