10% tk-bbpress-stats

Code Review | TK bbPress Stats

WordPress plugin TK bbPress Stats scored 10% from 54 tests.

About plugin

  • Plugin page: tk-bbpress-stats
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.4.2
  • WordPress version: 6.3.1
  • First release: Mar 20, 2016
  • Latest release: Mar 28, 2016
  • Number of updates: 18
  • Update frequency: every 0.7 days
  • Top authors: TKServer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 850 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.56 ▼35.77
Dashboard /wp-admin2.05 ▼1.265.88 ▼43.56
Posts /wp-admin/edit.php2.05 ▼1.317.18 ▼58.28
Add New Post /wp-admin/post-new.php2.05 ▼3.845.61 ▼101.83
Media Library /wp-admin/upload.php2.05 ▼1.185.84 ▼30.89
TK bbPress Stats /wp-admin/options-general.php?page=tk-bbpress-stats2.055.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲15613.93 ▼0.305.40 ▲3.6641.93 ▲0.84
Dashboard /wp-admin2,211 ▲235.86 ▲0.8399.00 ▼5.6341.70 ▼1.88
Posts /wp-admin/edit.php2,097 ▲42.02 ▲0.0240.63 ▼13.0534.43 ▼6.06
Add New Post /wp-admin/post-new.php1,530 ▲1618.43 ▲0.88650.63 ▲46.0153.24 ▼3.25
Media Library /wp-admin/upload.php1,396 ▲114.17 ▼0.03111.08 ▲6.8246.73 ▲2.33
TK bbPress Stats /wp-admin/options-general.php?page=tk-bbpress-stats8252.0422.3126.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP3113117327
PO File10017
CSS20212
JavaScript20210

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 code0.27
Average class complexity14.00
▷ Minimum class complexity12.00
▷ Maximum class complexity16.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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