72% wpsimpletools-maintenance-mode

Code Review | Maintenance Mode with 'coming soon' page or redirect

WordPress plugin Maintenance Mode with 'coming soon' page or redirect scored72%from 54 tests.

About plugin

  • Plugin page: wpsimpletools-mai...
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.0.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 7, 2018
  • Latest release: Apr 14, 2021
  • Number of updates: 37
  • Update frequency: every 28.2 days
  • Top authors: wordpresssimpletools (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /3,371 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼17.04ms] Passed 4 tests

An overview of server-side resources used by Maintenance Mode with 'coming soon' page or redirect
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.84 ▼0.50
Dashboard /wp-admin3.34 ▼0.0155.06 ▼13.30
Posts /wp-admin/edit.php3.39 ▲0.0352.64 ▼15.77
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.19 ▼37.35
Media Library /wp-admin/upload.php3.26 ▲0.0336.27 ▼1.75

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Maintenance Mode with 'coming soon' page or redirect
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.72 ▲0.371.83 ▲0.2043.54 ▲0.89
Dashboard /wp-admin2,199 ▲195.62 ▲0.0987.51 ▼11.0637.35 ▼2.26
Posts /wp-admin/edit.php2,104 ▲11.95 ▼0.0936.65 ▼5.4433.81 ▼3.27
Add New Post /wp-admin/post-new.php1,531 ▲522.97 ▼0.26678.77 ▲16.8460.76 ▲7.60
Media Library /wp-admin/upload.php1,398 ▼24.19 ▲0.0698.11 ▼13.9045.42 ▼1.74
Maintenance mode /wp-admin/opts.php260.420.0814.59

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

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 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 following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/wpsimpletools-maintenance-mode/comingsoon/preview.php
    • > /wp-content/plugins/wpsimpletools-maintenance-mode/wpsimpletools-maintenance.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpsimpletools-maintenance-mode/wpsimpletools-maintenance-admin.php:141
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/wpsimpletools-maintenance-mode/comingsoon/comingsoon.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > GET request to /wp-admin/opts.php
    • > Network (severe)
    wp-admin/opts.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: maintenance, maintenance mode

wpsimpletools-maintenance-mode/wpsimpletools-maintenance.php 92% from 13 tests

The entry point to "Maintenance Mode with 'coming soon' page or redirect" version 1.2.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wpsimpletools-maintenance-mode.php" instead of "wpsimpletools-maintenance.php")

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
There were no executable files found in this plugin190 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP44915161
CSS15029

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin