Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▲1.48ms] Passed 4 tests
An overview of server-side resources used by bbp topic count
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.06 ▼0.07 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.16 ▲1.87 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.60 ▲1.22 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 93.25 ▲7.45 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.64 ▲2.91 |
bbp topic count /wp-admin/options-general.php?page=bbp-topic-count | 3.20 | 30.90 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for bbp topic count
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲15 | 13.16 ▼1.65 | 1.67 ▼0.08 | 41.44 ▲0.85 |
Dashboard /wp-admin | 2,210 ▲4 | 5.90 ▲0.11 | 106.96 ▲9.12 | 41.84 ▲2.80 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 1.99 ▼0.03 | 39.32 ▲3.89 | 33.72 ▲1.09 |
Add New Post /wp-admin/post-new.php | 1,545 ▲11 | 18.34 ▼4.94 | 587.13 ▼81.47 | 63.47 ▲1.45 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.23 ▲0.08 | 94.07 ▼8.69 | 41.74 ▼2.00 |
bbp topic count /wp-admin/options-general.php?page=bbp-topic-count | 1,085 | 2.08 | 26.38 | 27.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/bbp-topic-count/includes/display.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbp-topic-count/includes/settings.php:79
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bbp-topic-count/bbp-topic-count.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bbp-topic-count/includes/shortcodes.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: bbp, forum, bbpress, topic, count
bbp-topic-count/bbp-topic-count.php Passed 13 tests
The primary PHP file in "bbp topic count" version 3.1 is used by WordPress to initiate all plugin functionality
126 characters long description:
This plugin for bbPress shows any combination of the total topics, replies and post count under the avatar on each topic/reply
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
There were no executable files found in this plugin771 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 165 | 82 | 771 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
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 | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.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
No PNG files were detected