84% bbpress-direct-quotes

Code Review | bbPress Direct Quotes

WordPress plugin bbPress Direct Quotes scored84%from 54 tests.

About plugin

  • Plugin page: bbpress-direct-qu...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 18, 2013
  • Latest release: Jan 20, 2013
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: destroflyer (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

30+ active /3,617 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by bbPress Direct Quotes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.11 ▼0.94
Dashboard /wp-admin3.32 ▼0.0343.31 ▼24.54
Posts /wp-admin/edit.php3.37 ▲0.0145.97 ▼1.14
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.05 ▼15.44
Media Library /wp-admin/upload.php3.24 ▲0.0134.24 ▼2.23

Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for bbPress Direct Quotes
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲15513.78 ▼0.598.41 ▲6.7340.95 ▲0.12
Dashboard /wp-admin2,202 ▲275.56 ▼0.0594.04 ▼13.1438.85 ▼2.19
Posts /wp-admin/edit.php2,107 ▲72.04 ▲0.0840.48 ▲2.5934.64 ▲0.42
Add New Post /wp-admin/post-new.php1,530 ▲423.01 ▲0.07617.32 ▼49.1050.14 ▼2.95
Media Library /wp-admin/upload.php1,404 ▲14.22 ▲0.0594.71 ▼6.5840.78 ▼4.53

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbpress-direct-quotes/plugin.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tested up to: Version not formatted correctly
Please take inspiration from this readme.txt

bbpress-direct-quotes/plugin.php 92% from 13 tests

The entry point to "bbPress Direct Quotes" version 1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bbpress-direct-quotes.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
Good job! No executable or dangerous file extensions detected65 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15633
JavaScript12027
CSS1005

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin