84% bbpress-activity-tracker

Code Review | bbPress Activity Tracker

WordPress plugin bbPress Activity Tracker scored84%from 54 tests.

About plugin

  • Plugin page: bbpress-activity-...
  • Plugin version: 0.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.2
  • WordPress version: 6.3.1
  • First release: Apr 22, 2015
  • Latest release: Apr 22, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: ankitpokhrel (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /3,317 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.15MB] [CPU: ▼3.58ms] Passed 4 tests

A check of server-side resources used by bbPress Activity Tracker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1542.86 ▲0.12
Dashboard /wp-admin3.46 ▲0.1551.23 ▼5.71
Posts /wp-admin/edit.php3.57 ▲0.2151.99 ▼2.61
Add New Post /wp-admin/post-new.php6.06 ▲0.1786.71 ▼6.11
Media Library /wp-admin/upload.php3.38 ▲0.1539.08 ▲0.73

Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

bbPress Activity Tracker: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.29 ▲0.011.97 ▲0.2942.11 ▼5.59
Dashboard /wp-admin2,224 ▲504.83 ▼0.7186.32 ▼7.3144.43 ▲1.27
Posts /wp-admin/edit.php2,130 ▲302.22 ▲0.1838.60 ▼1.5335.47 ▼1.98
Add New Post /wp-admin/post-new.php1,552 ▲2623.59 ▲0.32664.19 ▼38.5962.21 ▲2.45
Media Library /wp-admin/upload.php1,426 ▲294.32 ▲0.1198.20 ▼5.0643.67 ▼2.94

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please fix the following items
  • 4× 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/bbpress-activity-tracker/lib/BAT_Highlight.class.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbpress-activity-tracker/lib/BAT_Widget.class.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbpress-activity-tracker/lib/admin/BAT_Admin.class.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'BAT_Common_Helper' not found in wp-content/plugins/bbpress-activity-tracker/lib/admin/pages/main_menu_page.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

bbpress-activity-tracker/bbpress-activity-tracker.php Passed 13 tests

Analyzing the main PHP file in "bbPress Activity Tracker" version 0.0.0
59 characters long description:
Track bbPress forum activities. Never miss a single thread.

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
Good job! No executable or dangerous file extensions detected898 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP10190669743
CSS1398145
JavaScript211610

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity9.71
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.03
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods59
▷ Static methods2440.68%
▷ Public methods5694.92%
▷ Protected methods11.69%
▷ Private methods23.39%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin