89% wp-maintenance-mode-site-under-construction

Code Review | WP Maintenance Mode & Site Under Construction

WordPress plugin WP Maintenance Mode & Site Under Construction scored 89% from 54 tests.

About plugin

  • Plugin page: wp-maintenance-mo...
  • Plugin version: 3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 14, 2020
  • Latest release: Jun 13, 2023
  • Number of updates: 34
  • Update frequency: every 35.8 days
  • Top authors: codepressplugins (52.94%)wp-buy (41.18%)osamaesh (11.76%)

Code review

54 tests

User reviews

3 reviews

Install metrics

2,000+ active / 18,457 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.03MB] [CPU: ▼1.77ms] Passed 4 tests

Server-side resources used by WP Maintenance Mode & Site Under Construction
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.49 ▼4.26
Dashboard /wp-admin3.34 ▲0.0348.11 ▲0.36
Posts /wp-admin/edit.php3.45 ▲0.0943.88 ▼2.74
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.69 ▲1.30
Media Library /wp-admin/upload.php3.26 ▲0.0334.05 ▼0.45

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP Maintenance Mode & Site Under Construction
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.24 ▼1.321.72 ▲0.1040.66 ▼6.71
Dashboard /wp-admin2,222 ▲364.84 ▼1.04108.35 ▼4.3739.18 ▼1.91
Posts /wp-admin/edit.php2,105 ▲162.00 ▼0.0638.14 ▲3.6434.40 ▲1.87
Add New Post /wp-admin/post-new.php1,546 ▲2622.81 ▼0.54577.91 ▼75.7058.69 ▲5.08
Media Library /wp-admin/upload.php1,404 ▲164.19 ▲0.0593.00 ▼5.6243.75 ▼1.54

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: landing page, coming soon page, maintenance mode, coming soon, under construction

wp-maintenance-mode-site-under-construction/maintenance.php 77% from 13 tests

"WP Maintenance Mode & Site Under Construction" version 3.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/languages")
  • Description: Please keep the plugin description shorter than 140 characters (currently 141 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-maintenance-mode-site-under-construction.php" instead of "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
Good job! No executable or dangerous file extensions detected14,872 lines of code in 76 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript334699194,260
CSS1098923,521
SVG1002,671
Sass1434341,768
LESS1434441,758
PHP411730894

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity29.50
▷ Minimum class complexity23.00
▷ Maximum class complexity36.00
Average method complexity3.28
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods25
▷ Static methods14.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 0% from 2 tests

Image compression 0% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.89MB with 0.70MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
textures/free/texture-2/light-of-black.png31.80KB13.54KB▼ 57.43%
(invalid) textures/free/texture-2/light-of-black-big.png874.91KB0.00KB▼ 100.00%