83% wp-maintenance-mode

Code Review | LightStart - Maintenance Mode, Coming Soon and Landing Page Builder

WordPress plugin LightStart - Maintenance Mode, Coming Soon and Landing Page Builder scored83%from 54 tests.

About plugin

  • Plugin page: wp-maintenance-mode
  • Plugin version: 2.6.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Feb 26, 2010
  • Latest release: Aug 17, 2023
  • Number of updates: 392
  • Update frequency: every 12.6 days
  • Top authors: Bueltge (68.88%)GeorgeJipa (17.6%)themeisle (7.4%)Designmodo (5.87%)creativethemeshq (1.28%)

Code review

54 tests

User reviews

786 reviews

Install metrics

700,000+ active /15,068,429 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.23MB] [CPU: ▼2.63ms] 75% from 4 tests

A check of server-side resources used by LightStart - Maintenance Mode, Coming Soon and Landing Page Builder
Please fix the following
  • CPU: Try to keep total CPU usage under 500.00ms (currently 3,742.17ms on /wp-admin/admin.php?page=ti-about-wp_maintenance_mode)
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2141.88 ▲0.37
Dashboard /wp-admin3.55 ▲0.2161.65 ▲2.82
Posts /wp-admin/edit.php3.65 ▲0.3050.94 ▲0.98
Add New Post /wp-admin/post-new.php6.15 ▲0.2685.16 ▼14.68
Media Library /wp-admin/upload.php3.46 ▲0.2340.29 ▲5.73
About Us /wp-admin/admin.php?page=ti-about-wp_maintenance_mode4.443,742.17
LightStart /wp-admin/admin.php?page=wp-maintenance-mode3.8746.13

Server storage [IO: ▲8.78MB] [DB: ▲0.86MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 218 new files
Database: 1 new table, 14 new options
New tables
wp_wpmm_subscribers
New WordPress options
wpmm_fresh_install
wpmm_settings
wpmm_new_look
wp_maintenance_mode_install
wpmm_activated
wpmm_settings_redirect
db_upgraded
wpmm_show_migration
widget_recent-comments
wpmm_version
...

Browser metrics Passed 4 tests

LightStart - Maintenance Mode, Coming Soon and Landing Page Builder: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,099 ▲35313.28 ▼1.301.60 ▼0.1129.90 ▼8.54
Dashboard /wp-admin2,490 ▲3054.93 ▼0.9897.20 ▼4.3080.85 ▲36.30
Posts /wp-admin/edit.php2,260 ▲1712.03 ▲0.0334.26 ▼7.6634.54 ▼0.69
Add New Post /wp-admin/post-new.php1,837 ▲31422.68 ▼0.64765.62 ▲86.4352.34 ▲2.29
Media Library /wp-admin/upload.php1,559 ▲1714.23 ▼0.0296.64 ▲0.3075.27 ▲30.80
About Us /wp-admin/admin.php?page=ti-about-wp_maintenance_mode1,2636.57144.0399.26
LightStart /wp-admin/admin.php?page=wp-maintenance-mode1,4033.5048.2576.43

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 12 options in the database
    • widget_recent-posts
    • wpmm_activated
    • theysaidso_admin_options
    • widget_recent-comments
    • wpmm_show_migration
    • wp_maintenance_mode_install
    • db_upgraded
    • wpmm_settings_redirect
    • widget_theysaidso_widget
    • can_compress_scripts
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Use of undefined constant WPMM_TEMPLATES_URL - assumed 'WPMM_TEMPLATES_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-maintenance-mode/views/wizard.php on line 5
    • > PHP Warning
      Use of undefined constant WPMM_TEMPLATES_URL - assumed 'WPMM_TEMPLATES_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-maintenance-mode/views/wizard.php on line 9
    • > PHP Warning
      Use of undefined constant WPMM_TEMPLATES_URL - assumed 'WPMM_TEMPLATES_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-maintenance-mode/views/wizard.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-maintenance-mode/views/wizard.php:22

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 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: Screenshot #8 (Contact Form) image required
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can look at the official readme.txt

wp-maintenance-mode/wp-maintenance-mode.php Passed 13 tests

The main PHP script in "LightStart - Maintenance Mode, Coming Soon and Landing Page Builder" version 2.6.8 is automatically included on every request by WordPress
138 characters long description:
Adds a splash page to your site that lets visitors know your site is down for maintenance. It's perfect for a coming soon or landing page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected32,781 lines of code in 139 files:
LanguageFilesBlank linesComment linesLines of code
PHP511,5983,1619,634
PO File153,2283,9388,442
JavaScript249861,1796,861
CSS224533226,723
Markdown34060758
SVG800228
JSON1600135

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.44
Average class complexity42.76
▷ Minimum class complexity1.00
▷ Maximum class complexity220.00
Average method complexity4.03
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes25
▷ Abstract classes14.00%
▷ Concrete classes2496.00%
▷ Final classes14.17%
Methods326
▷ Static methods6519.94%
▷ Public methods27183.13%
▷ Protected methods10.31%
▷ Private methods5416.56%
Functions55
▷ Named functions3461.82%
▷ Anonymous functions2138.18%
Constants36
▷ Global constants1644.44%
▷ Class constants2055.56%
▷ Public constants20100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
22 compressed PNG files occupy 0.91MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/chosen/chosen-sprite.png0.53KB0.88KB0.00%
assets/templates/landing-page/landing-page-7/screenshot.png36.06KB37.68KB0.00%
assets/templates/coming-soon/coming-soon-4/screenshot.png50.79KB53.19KB0.00%
assets/templates/landing-page/landing-page-6/screenshot.png61.61KB65.61KB0.00%
assets/templates/coming-soon/coming-soon-1/screenshot.png24.62KB26.46KB0.00%