Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/tk-bbpress-stats/plugin.php+525
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼59.86ms] Passed 4 tests
This is a short check of server-side resources used by TK bbPress Stats
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.56 ▼35.77 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.88 ▼43.56 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 7.18 ▼58.28 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.61 ▼101.83 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.84 ▼30.89 |
TK bbPress Stats /wp-admin/options-general.php?page=tk-bbpress-stats | 2.05 | 5.78 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_tk-bbpress-stats |
Browser metrics Passed 4 tests
Checking browser requirements for TK bbPress Stats
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲156 | 13.93 ▼0.30 | 5.40 ▲3.66 | 41.93 ▲0.84 |
Dashboard /wp-admin | 2,211 ▲23 | 5.86 ▲0.83 | 99.00 ▼5.63 | 41.70 ▼1.88 |
Posts /wp-admin/edit.php | 2,097 ▲4 | 2.02 ▲0.02 | 40.63 ▼13.05 | 34.43 ▼6.06 |
Add New Post /wp-admin/post-new.php | 1,530 ▲16 | 18.43 ▲0.88 | 650.63 ▲46.01 | 53.24 ▼3.25 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.17 ▼0.03 | 111.08 ▲6.82 | 46.73 ▲2.33 |
TK bbPress Stats /wp-admin/options-general.php?page=tk-bbpress-stats | 825 | 2.04 | 22.31 | 26.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/tk-bbpress-stats/plugin.php+525
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_tk-bbpress-stats
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=tk-bbpress-stats
- > Deprecated in wp-content/plugins/tk-bbpress-stats/plugin.php+525
Function create_function() is deprecated
SRP 0% 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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/tk-bbpress-stats/views/admin.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/tk-bbpress-stats/views/widget.php:7
- > 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 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: widget, bbpress
tk-bbpress-stats/plugin.php 92% from 13 tests
"TK bbPress Stats" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("tk-bbpress-stats.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin366 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 113 | 117 | 327 |
PO File | 1 | 0 | 0 | 17 |
CSS | 2 | 0 | 2 | 12 |
JavaScript | 2 | 0 | 2 | 10 |
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.27 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin