84% menu-extension-for-bbpress

Code Review | Menu Extension for bbPress

WordPress plugin Menu Extension for bbPress scored84%from 54 tests.

About plugin

  • Plugin page: menu-extension-fo...
  • Plugin version: 0.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Nov 22, 2016
  • Latest release: Nov 23, 2016
  • Number of updates: 15
  • Update frequency: every 0.1 days
  • Top authors: Sergey Manzhak (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,278 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Menu Extension for bbPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0134.62 ▼8.92
Dashboard /wp-admin3.31 ▲0.0053.53 ▲1.68
Posts /wp-admin/edit.php3.36 ▲0.0047.97 ▲1.58
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.53 ▼1.87
Media Library /wp-admin/upload.php3.23 ▲0.0033.89 ▼1.53

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Menu Extension for bbPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲7813.22 ▼1.184.55 ▲2.8243.19 ▼5.88
Dashboard /wp-admin2,219 ▲285.90 ▲1.01107.55 ▼1.9343.06 ▼4.04
Posts /wp-admin/edit.php2,101 ▲121.99 ▼0.0141.28 ▲2.5535.88 ▲2.60
Add New Post /wp-admin/post-new.php1,546 ▲1823.17 ▲4.76616.17 ▼75.3669.67 ▲14.05
Media Library /wp-admin/upload.php1,398 ▲74.26 ▲0.0398.22 ▼1.2542.28 ▼1.87

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 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)
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/menu-extension-for-bbpress/menu-extension-for-bbpress.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === menu-extension-for-bbpress === )
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can look at the official readme.txt

menu-extension-for-bbpress/menu-extension-for-bbpress.php Passed 13 tests

The main file in "Menu Extension for bbPress" v. 0.0.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
47 characters long description:
You can now add bbPress links in your WP menus.

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
Everything looks great! No dangerous files found in this plugin179 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP43825129
PO File1153950

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png9.86KB4.08KB▼ 58.67%