84% coming-soon-maintenance-mode

Code Review | Coming Soon Maintenance Mode

WordPress plugin Coming Soon Maintenance Mode scored 84% from 54 tests.

About plugin

  • Plugin page: coming-soon-maint...
  • Plugin version: 1.0.2
  • PHP compatiblity: 4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Jan 31, 2023
  • Latest release: Sep 6, 2023
  • Number of updates: 8
  • Update frequency: every 28.6 days
  • Top authors: webenvo (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

4,000+ active / 18,968 total downloads


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.05MB] [CPU: ▼3.48ms] Passed 4 tests

Server-side resources used by Coming Soon Maintenance Mode
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.56 ▼3.07
Dashboard /wp-admin3.36 ▲0.0651.52 ▲1.33
Posts /wp-admin/edit.php3.41 ▲0.0552.53 ▼1.45
Add New Post /wp-admin/post-new.php5.94 ▲0.0596.71 ▼10.71
Media Library /wp-admin/upload.php3.29 ▲0.0537.60 ▲2.50

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 214 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

Coming Soon Maintenance 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,891 ▲15614.02 ▼0.285.11 ▲3.1641.01 ▼4.61
Dashboard /wp-admin2,215 ▲304.85 ▼1.02110.49 ▼7.4938.86 ▼3.23
Posts /wp-admin/edit.php2,101 ▲92.00 ▼0.0140.14 ▼1.1636.99 ▲0.54
Add New Post /wp-admin/post-new.php1,543 ▲2323.25 ▲0.02596.59 ▼21.3854.18 ▲5.31
Media Library /wp-admin/upload.php1,391 ▼04.23 ▲0.0899.30 ▼4.0139.99 ▼5.60

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 8 options in the database
    • csmm_current_version
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • csmm_last_version
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/coming-soon-maintenance-mode/templates/4.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/coming-soon-maintenance-mode/templates/8.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/coming-soon-maintenance-mode/templates/1.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found


Plugin configuration Passed 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
5 plugin tags: under construction page, landing page, seo friendly, maintenance mode, coming soon

coming-soon-maintenance-mode/coming-soon-maintenance-mode.php Passed 13 tests

"Coming Soon Maintenance Mode" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
78 characters long description:
One of the most recommanded and crucial plugin to start your website projects.

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
Success! There were no dangerous files found in this plugin43,967 lines of code in 73 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions13100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
templates/images/logo-w.png7.14KB3.93KB▼ 44.99%
admin/assets/img/csmm-logo.png1.12KB0.55KB▼ 50.57%
templates/images/logo-b.png7.19KB3.93KB▼ 45.39%