90% review-mode

Code Review | Review Mode

WordPress plugin Review Mode scored90%from 54 tests.

About plugin

  • Plugin page: review-mode
  • Plugin version: 0.2.1
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.1
  • WordPress version: 6.3.1
  • First release: Jan 12, 2019
  • Latest release: Apr 2, 2019
  • Number of updates: 5
  • Update frequency: every 16.0 days
  • Top authors: Toro_Unit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /768 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.11MB] [CPU: ▼8.22ms] Passed 4 tests

Analyzing server-side resources used by Review Mode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▼0.0137.88 ▼16.69
Dashboard /wp-admin3.32 ▲0.0253.28 ▼1.48
Posts /wp-admin/edit.php3.38 ▼0.4745.52 ▼5.68
Add New Post /wp-admin/post-new.php5.90 ▲0.0293.40 ▼8.50
Media Library /wp-admin/upload.php3.25 ▲0.0236.07 ▼2.00

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

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

Browser metrics Passed 4 tests

Review Mode: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8113.15 ▼0.821.62 ▼0.2444.88 ▼1.35
Dashboard /wp-admin2,221 ▲364.87 ▼0.98112.21 ▲3.8344.88 ▼0.47
Posts /wp-admin/edit.php2,107 ▲182.04 ▲0.0446.47 ▲12.4039.88 ▲3.18
Add New Post /wp-admin/post-new.php1,539 ▲623.32 ▲0.30670.51 ▼34.7771.10 ▲25.99
Media Library /wp-admin/upload.php1,403 ▲154.22 ▲0.08100.94 ▼18.0343.46 ▼3.90

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: review, admin

review-mode/review-mode.php Passed 13 tests

This is the main PHP file of "Review Mode" version 0.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
61 characters long description:
Add mode to show pending posts in all archives for reviewing.

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

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity8.00
▷ Minimum class complexity4.00
▷ Maximum class complexity16.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods14
▷ Static methods214.29%
▷ Public methods1285.71%
▷ Protected methods00.00%
▷ Private methods214.29%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin