90% pending-status

Code Review | Pending Status

WordPress plugin Pending Status scored90%from 54 tests.

About plugin

  • Plugin page: pending-status
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.0
  • WordPress version: 6.3.1
  • First release: Mar 2, 2022
  • Latest release: May 11, 2022
  • Number of updates: 5
  • Update frequency: every 14.0 days
  • Top authors: room34 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /765 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.47ms] Passed 4 tests

Analyzing server-side resources used by Pending Status
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0634.71 ▼10.21
Dashboard /wp-admin3.36 ▲0.0545.70 ▼4.88
Posts /wp-admin/edit.php3.41 ▲0.0546.84 ▼0.43
Add New Post /wp-admin/post-new.php5.94 ▲0.0581.00 ▼10.36
Media Library /wp-admin/upload.php3.28 ▲0.0537.43 ▲1.46
Pending Status /wp-admin/options-general.php?page=pending-status3.2634.27

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
r34ps_version

Browser metrics Passed 4 tests

This is an overview of browser requirements for Pending Status
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,867 ▲13213.24 ▼1.441.92 ▼0.5838.92 ▼5.23
Dashboard /wp-admin2,248 ▲605.88 ▲0.86110.00 ▲1.8241.85 ▲1.71
Posts /wp-admin/edit.php2,098 ▲92.01 ▼0.0142.43 ▲1.8435.37 ▼0.21
Add New Post /wp-admin/post-new.php1,533 ▼123.32 ▲0.24632.08 ▼43.2452.58 ▼6.64
Media Library /wp-admin/upload.php1,394 ▲34.22 ▼0.0592.83 ▼12.3339.70 ▼3.20
Pending Status /wp-admin/options-general.php?page=pending-status9552.0127.2335.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • r34ps_version
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: post status, workflow, notifications, pending review, pending

pending-status/pending-status.php Passed 13 tests

The main PHP script in "Pending Status" version 1.0.1 is automatically included on every request by WordPress
53 characters long description:
Get notified when your site has posts pending review.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin323 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP49056222
CSS1200100
SVG1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions233.33%
▷ Anonymous functions466.67%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin