89% bbpress-admin-notes

Code Review | bbPress - Admin Notes

WordPress plugin bbPress - Admin Notes scored89%from 54 tests.

About plugin

  • Plugin page: bbpress-admin-notes
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.1
  • WordPress version: 6.3.1
  • First release: Dec 8, 2012
  • Latest release: Sep 27, 2016
  • Number of updates: 15
  • Update frequency: every 92.6 days
  • Top authors: mordauk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /3,718 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼3.77ms] Passed 4 tests

An overview of server-side resources used by bbPress - Admin Notes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0632.29 ▼9.47
Dashboard /wp-admin3.32 ▲0.0249.25 ▼2.90
Posts /wp-admin/edit.php3.37 ▲0.0249.12 ▲1.00
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.39 ▼3.72
Media Library /wp-admin/upload.php3.25 ▲0.0238.27 ▲5.08

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for bbPress - Admin Notes
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,465 ▼27014.44 ▲0.060.51 ▼1.1917.60 ▼24.62
Dashboard /wp-admin2,209 ▲185.85 ▼0.04110.80 ▲8.8339.76 ▼9.07
Posts /wp-admin/edit.php2,092 ▲31.96 ▼0.0841.01 ▲2.1634.33 ▲1.82
Add New Post /wp-admin/post-new.php1,520 ▼1523.43 ▲0.30621.93 ▼44.9457.64 ▲1.40
Media Library /wp-admin/upload.php1,388 ▼04.22 ▼0.0795.98 ▼11.0642.70 ▼3.18

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: forums, notes, mordauk, pippinsplugins, bbpress...

bbpress-admin-notes/bbp-admin-notes.php 77% from 13 tests

The primary PHP file in "bbPress - Admin Notes" version 1.2.3 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("bbpress-admin-notes.php" instead of "bbp-admin-notes.php")
  • Requires at least: The required version number must match the one declared in readme.txt ("4.6" instead of "3.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin262 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP182205220
PO File16641
CSS1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity2.61
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods18
▷ Static methods15.56%
▷ Public methods1372.22%
▷ Protected methods00.00%
▷ Private methods527.78%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin