Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.11MB] [CPU: ▼1.22ms] Passed 4 tests
Analyzing server-side resources used by bbPress Admin Bar Addition
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 44.07 ▼1.57 |
Dashboard /wp-admin | 3.43 ▲0.12 | 49.37 ▼4.19 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 50.76 ▲0.96 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 101.78 ▲5.83 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 40.34 ▼0.08 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for bbPress Admin Bar Addition
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 14.74 ▲0.29 | 2.31 ▲0.66 | 42.06 ▲0.73 |
Dashboard /wp-admin | 2,206 ▲21 | 4.88 ▲0.01 | 131.71 ▼2.90 | 47.73 ▲3.54 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 2.05 ▲0.04 | 38.87 ▼4.30 | 33.70 ▼3.07 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 20.93 ▼2.11 | 675.01 ▼29.40 | 56.82 ▼0.90 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.24 ▲0.11 | 120.14 ▲7.45 | 49.70 ▼0.30 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/bbpress-admin-bar-addition/includes/bbpaba-themes.php:40
- > PHP Notice
Undefined variable: bbpgroup_check_item in wp-content/plugins/bbpress-admin-bar-addition/includes/bbpaba-resources.php on line 26
- > PHP Fatal error
Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/bbpress-admin-bar-addition/includes/bbpaba-admin.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/bbpress-admin-bar-addition/includes/bbpaba-resources.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbpress-admin-bar-addition/includes/bbpaba-branding.php:279
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/bbpress-admin-bar-addition/bbpress-admin-bar-addition.php:56
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
bbpress-admin-bar-addition/bbpress-admin-bar-addition.php 92% from 13 tests
The primary PHP file in "bbPress Admin Bar Addition" version 1.7.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- 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 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,598 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 287 | 693 | 1,032 |
PO File | 2 | 249 | 483 | 566 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.84 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 21 | 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
20 PNG files occupy 0.10MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bbpaba-icon-turquoise.png | 0.61KB | 0.56KB | ▼ 8.06% |
images/bbpaba-icon-gray.png | 0.57KB | 0.52KB | ▼ 8.53% |
screenshot-8.png | 10.09KB | 7.31KB | ▼ 27.54% |
screenshot-1.png | 6.28KB | 4.77KB | ▼ 24.08% |
images/bbpress-icon-alternate.png | 0.47KB | 0.43KB | ▼ 9.54% |