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.01MB] [CPU: ▼4.32ms] Passed 4 tests
An overview of server-side resources used by bbp user ranking
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.33 ▼6.27 |
Dashboard /wp-admin | 3.32 ▼0.02 | 55.38 ▼8.91 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.88 ▲2.81 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 98.20 ▼4.91 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 40.04 ▲3.00 |
bbp User Ranking /wp-admin/options-general.php?page=bbp-user-ranking | 3.35 | 40.89 |
Server storage [IO: ▲0.49MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
ur_version |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for bbp user ranking
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲93 | 13.54 ▼1.02 | 5.33 ▲3.38 | 42.24 ▼0.75 |
Dashboard /wp-admin | 2,218 ▲38 | 5.69 ▲0.04 | 86.74 ▲0.07 | 37.65 ▼5.48 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 2.31 ▲0.36 | 41.47 ▼1.26 | 37.07 ▼1.20 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.54 ▲0.42 | 646.13 ▲3.58 | 36.64 ▼12.09 |
Media Library /wp-admin/upload.php | 1,420 ▲17 | 4.40 ▲0.24 | 97.84 ▼2.97 | 40.53 ▼2.24 |
bbp User Ranking /wp-admin/options-general.php?page=bbp-user-ranking | 1,690 | 2.62 | 62.68 | 57.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_recent-comments
- ur_version
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 20 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=bbp-user-ranking
- > Notice in wp-content/plugins/bbp-user-ranking/includes/styles.php+353
Trying to access array offset on value of type bool
SRP 50% from 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
Please take a closer look at the following
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbp-user-ranking/includes/user_profile.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbp-user-ranking/includes/generate_css.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbp-user-ranking/includes/functions.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bbp-user-ranking/includes/styles.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bbp-user-ranking/bbp-user-ranking.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbp-user-ranking/includes/settings.php:99
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% 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
These attributes need your attention:
- Screenshots: Add an image for screenshot #3 (A sample ranking settings page)
bbp-user-ranking/bbp-user-ranking.php Passed 13 tests
The main PHP script in "bbp user ranking" version 3.5 is automatically included on every request by WordPress
139 characters long description:
This Plugin lets you add ranking elements and badges to topics and replies in bbPress. These appear after the author details on each post.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected2,260 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 587 | 150 | 2,219 |
CSS | 1 | 48 | 12 | 38 |
JavaScript | 1 | 4 | 0 | 3 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
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 | 31 | |
▷ Named functions | 31 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin