84% never-moderate-registered-users

Code Review | Never Moderate Registered Users

WordPress plugin Never Moderate Registered Users scored84%from 54 tests.

About plugin

  • Plugin page: never-moderate-re...
  • Plugin version: 2.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.3
  • WordPress version: 6.3.1
  • First release: Sep 13, 2010
  • Latest release: Aug 16, 2023
  • Number of updates: 22
  • Update frequency: every 236.1 days
  • Top authors: coffee2code (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active /7,839 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.01MB] [CPU: ▼6.26ms] Passed 4 tests

An overview of server-side resources used by Never Moderate Registered Users
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.06 ▼4.83
Dashboard /wp-admin3.31 ▲0.0149.31 ▼0.68
Posts /wp-admin/edit.php3.36 ▲0.0150.11 ▼2.94
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.55 ▼16.60
Media Library /wp-admin/upload.php3.23 ▲0.0138.93 ▲2.71

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Never Moderate Registered Users
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.31 ▼1.271.71 ▼0.2141.92 ▼5.60
Dashboard /wp-admin2,200 ▲155.81 ▼0.08105.50 ▲3.1839.26 ▲0.07
Posts /wp-admin/edit.php2,089 ▼01.99 ▲0.0039.69 ▼0.5436.85 ▼0.79
Add New Post /wp-admin/post-new.php1,514 ▼2217.49 ▼6.01658.12 ▲46.6155.49 ▲10.67
Media Library /wp-admin/upload.php1,391 ▲34.18 ▲0.0495.26 ▼8.6443.66 ▼5.77

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/never-moderate-registered-users/tests/phpunit/bootstrap.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: subscribers, users, comment, spam, moderation...

never-moderate-registered-users/never-moderate-registered-users.php 92% from 13 tests

This is the main PHP file of "Never Moderate Registered Users" version 2.3.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 174 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin460 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP495101222
Markdown3490198
Bourne Shell16221
XML10014
JSON1005

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.26
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods1785.00%
▷ Protected methods00.00%
▷ Private methods315.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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 files were detected