Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.76ms] Passed 4 tests
Analyzing server-side resources used by bbp-valoration
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.13 ▼4.02 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.66 ▼4.41 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.00 ▲2.21 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 96.05 ▲4.25 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.80 ▼0.83 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for bbp-valoration
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.67 ▼0.77 | 1.68 ▼0.50 | 40.99 ▼2.98 |
Dashboard /wp-admin | 2,206 ▲15 | 4.83 ▼0.11 | 112.48 ▼3.29 | 44.17 ▼3.85 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.98 ▼0.07 | 40.86 ▲6.73 | 35.32 ▲0.56 |
Add New Post /wp-admin/post-new.php | 1,519 ▼14 | 22.97 ▼0.38 | 621.29 ▼45.36 | 53.07 ▼1.92 |
Media Library /wp-admin/upload.php | 1,391 ▲9 | 4.22 ▲0.05 | 96.40 ▼6.89 | 42.08 ▼3.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
Please fix the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bbp-valoration/widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbp-valoration/bbp-valoration.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbp-valoration/functions.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: likes, thumbsup, count, bbpress, widget...
bbp-valoration/bbp-valoration.php Passed 13 tests
The principal PHP file in "bbp-valoration" v. 0.1.1 is loaded by WordPress automatically on each request
90 characters long description:
Adds thumbsup, visits and replies count to topics on bbpress, display results on a widget.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin352 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 38 | 37 | 195 |
PO File | 2 | 26 | 26 | 90 |
JavaScript | 1 | 3 | 0 | 39 |
CSS | 1 | 5 | 21 | 28 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 6.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/Thumbs_Up_80x80.png | 1.30KB | 1.19KB | ▼ 8.83% |
img/Thumbs_Up_30.png | 0.59KB | 0.62KB | 0.00% |
img/Thumbs_Up_50.png | 0.91KB | 0.91KB | 0.11% |