Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.18MB] [CPU: ▼0.60ms] Passed 4 tests
A check of server-side resources used by Peanut Butter Bar (smooth version)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 39.59 ▼1.32 |
Dashboard /wp-admin | 3.51 ▲0.20 | 50.00 ▲3.11 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 47.60 ▲3.49 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 83.29 ▼4.67 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 36.64 ▲0.46 |
Peanut Butter Bar Settings /wp-admin/options-general.php?page=pbbsmooth | 3.40 | 32.72 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
pbb_settings_smoothdbver |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Peanut Butter Bar (smooth version)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲130 | 13.60 ▼1.08 | 5.48 ▲3.35 | 43.34 ▼2.61 |
Dashboard /wp-admin | 2,210 ▲25 | 5.80 ▲0.89 | 98.59 ▼16.67 | 40.06 ▼10.94 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.03 ▲0.03 | 33.39 ▼0.76 | 35.65 ▼1.88 |
Add New Post /wp-admin/post-new.php | 1,536 ▲16 | 23.27 ▲0.11 | 672.26 ▼10.82 | 57.36 ▼4.81 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.17 ▼0.15 | 96.96 ▼12.68 | 43.46 ▼1.08 |
Peanut Butter Bar Settings /wp-admin/options-general.php?page=pbbsmooth | 1,039 | 2.34 | 28.90 | 32.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- pbb_settings_smoothdbver
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
peanut-butter-bar-smooth-version/pbb-smooth.php 85% from 13 tests
The principal PHP file in "Peanut Butter Bar (smooth version)" v. 1.2.1 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("peanut-butter-bar-smooth-version.php" instead of "pbb-smooth.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
There were no executable files found in this plugin1,039 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 116 | 328 | 1,036 |
JavaScript | 2 | 0 | 2 | 2 |
CSS | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 93.00 |
Average method complexity | 3.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 51 | |
▷ Static methods | 2 | 3.92% |
▷ Public methods | 44 | 86.27% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 13.73% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
pbb-sprites.png | 3.96KB | 2.98KB | ▼ 24.69% |
pbb-icon.png | 13.88KB | 5.94KB | ▼ 57.23% |
pbb-check.png | 0.41KB | 0.40KB | ▼ 1.67% |