89% buddyforms-review

Code Review | BuddyForms Moderation ( Former: Review Logic )

WordPress plugin BuddyForms Moderation ( Former: Review Logic ) scored89%from 54 tests.

About plugin

  • Plugin page: buddyforms-review
  • Plugin version: 1.5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 22, 2015
  • Latest release: Dec 21, 2022
  • Number of updates: 144
  • Update frequency: every 20.0 days
  • Top authors: svenl77 (85.42%)gfirem (15.28%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /6,196 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.77ms] Passed 4 tests

An overview of server-side resources used by BuddyForms Moderation ( Former: Review Logic )
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.12 ▼8.90
Dashboard /wp-admin3.39 ▲0.0949.35 ▼10.61
Posts /wp-admin/edit.php3.44 ▲0.0951.66 ▼0.99
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.04 ▼16.77
Media Library /wp-admin/upload.php3.25 ▲0.0234.85 ▼2.80

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for BuddyForms Moderation ( Former: Review Logic )
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5914.73 ▲0.101.71 ▲0.0734.66 ▼5.80
Dashboard /wp-admin2,214 ▲345.61 ▼0.0786.95 ▲0.2743.61 ▲3.51
Posts /wp-admin/edit.php2,117 ▲171.98 ▼0.0041.63 ▲1.1441.49 ▲0.25
Add New Post /wp-admin/post-new.php1,542 ▲1622.96 ▼0.35629.77 ▼3.1850.98 ▼10.84
Media Library /wp-admin/upload.php1,416 ▲194.21 ▲0.0197.52 ▼4.0245.36 ▼0.20

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
  • Screenshots: Please add images for these screenshots: #1 (**Different Post Status in the Frontend**), #2 (**Different Post Status in the Backend**), #3 (**Button Logic in the Front-end edit Screen**)
You can take inspiration from this readme.txt

buddyforms-review/loader.php 85% from 13 tests

The principal PHP file in "BuddyForms Moderation ( Former: Review Logic )" v. 1.5.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("buddyforms-review.php" instead of "loader.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin8,101 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PO File191,7772,4015,820
PHP85322982,075
JavaScript2220152
CSS22028
JSON10026

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity46.62
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity4.32
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods110
▷ Static methods54.55%
▷ Public methods8779.09%
▷ Protected methods2320.91%
▷ Private methods00.00%
Functions65
▷ Named functions65100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants240.00%
▷ Class constants360.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin