Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.31MB] [CPU: ▼1.77ms] Passed 4 tests
A check of server-side resources used by WPBonusPlus
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 44.40 ▲3.63 |
Dashboard /wp-admin | 3.62 ▲0.32 | 46.04 ▲0.26 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 47.45 ▼1.05 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 96.75 ▼9.93 |
Media Library /wp-admin/upload.php | 3.55 ▲0.31 | 38.70 ▲4.29 |
Настройки /wp-admin/admin.php?page=bonusplus | 3.51 | 37.25 |
Server storage [IO: ▲1.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
bpwp_plugin_permalinks_flushed |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WPBonusPlus
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.01 ▼0.34 | 1.72 ▲0.12 | 37.20 ▼0.97 |
Dashboard /wp-admin | 2,195 ▲14 | 5.50 ▼0.21 | 80.20 ▼27.87 | 38.49 ▼7.15 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.95 ▼0.08 | 37.35 ▼7.67 | 31.73 ▼8.23 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 18.41 ▼5.26 | 651.30 ▼5.75 | 58.42 ▼1.72 |
Media Library /wp-admin/upload.php | 1,394 ▼3 | 4.16 ▼0.01 | 92.71 ▼5.26 | 42.43 ▼0.31 |
Настройки /wp-admin/admin.php?page=bonusplus | 943 | 2.12 | 22.69 | 38.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- bpwp_plugin_permalinks_flushed
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/bonus-plus-wp/templates/client-account.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function BPWP\\add_action() in wp-content/plugins/bonus-plus-wp/inc/Logger.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: A description for screenshot #5 is required in bonus-plus-wp/assets to your readme.txt
bonus-plus-wp/bonus-plus-wp.php 69% from 13 tests
The primary PHP file in "WPBonusPlus" version 2.5 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 192 characters long)
- Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "7.0")
- Domain Path: The domain path folder does not exist ("/languages")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Good job! No executable or dangerous file extensions detected2,684 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 338 | 423 | 1,568 |
JavaScript | 5 | 126 | 207 | 791 |
CSS | 2 | 1 | 0 | 227 |
Markdown | 1 | 55 | 0 | 98 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 22.12 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 1 | 12.50% |
Methods | 63 | |
▷ Static methods | 63 | 100.00% |
▷ Public methods | 63 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 4 | 40.00% |
▷ Anonymous functions | 6 | 60.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshots/scrrnshots-6.png | 45.73KB | 12.97KB | ▼ 71.64% |
screenshots/screenshot-5.png | 44.47KB | 12.27KB | ▼ 72.41% |