84% quarantinewp

Code Review | QuarantineWP - Code Freeze & Ultimate Maintenance Mode Plugin

WordPress plugin QuarantineWP - Code Freeze & Ultimate Maintenance Mode Plugin scored84%from 54 tests.

About plugin

  • Plugin page: quarantinewp
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.4
  • WordPress version: 6.3.1
  • First release: Apr 27, 2020
  • Latest release: Apr 27, 2020
  • Number of updates: 3
  • Update frequency: every 2.3 days
  • Top authors: Asif2BD (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /889 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

A check of server-side resources used by QuarantineWP - Code Freeze & Ultimate Maintenance Mode Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0438.14 ▼4.01
Dashboard /wp-admin4.26 ▲0.9549.93 ▼5.06
Posts /wp-admin/edit.php3.38 ▲0.0242.86 ▼11.83
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.75 ▼12.09
Media Library /wp-admin/upload.php3.25 ▲0.0235.63 ▲1.32

Server storage [IO: ▲0.02MB] [DB: ▲0.18MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
qrtnwp-backup-users_can_register
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for QuarantineWP - Code Freeze & Ultimate Maintenance Mode Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,757 ▲2213.26 ▼1.331.74 ▼0.1038.88 ▼9.33
Dashboard /wp-admin2,163 ▼254.89 ▼0.20107.33 ▼8.6941.76 ▼5.25
Posts /wp-admin/edit.php2,088 ▼42.14 ▲0.1340.01 ▲4.0938.31 ▲4.27
Add New Post /wp-admin/post-new.php1,513 ▼2023.34 ▲0.10661.96 ▲24.9963.06 ▲12.72
Media Library /wp-admin/upload.php1,374 ▼174.29 ▲0.0698.85 ▲0.8841.56 ▼2.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/quarantinewp/include/wpdev-dashboard-widget.php on line 5
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHWPINC/feed.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/quarantinewp/include/wpdev-dashboard-widget.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quarantinewp/include/wpdev-dashboard-widget.php:52
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/quarantinewp/include/wpdev-dashboard-widget.php on line 5
    • > PHP Warning
      include_once(ABSPATHWPINC/feed.php): failed to open stream: No such file or directory in wp-content/plugins/quarantinewp/include/wpdev-dashboard-widget.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/quarantinewp/quarantinewp.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Tags: There are too many tags (13 tag instead of maximum 10)
The official readme.txt might help

quarantinewp/quarantinewp.php 92% from 13 tests

The main PHP file in "QuarantineWP - Code Freeze & Ultimate Maintenance Mode Plugin" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 215 characters long)

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 plugin231 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP238121162
JavaScript18969

PHP code Passed 2 tests

An short overview of 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.18
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 files were detected