84% coming-soon-page

Code Review | Coming soon and Maintenance mode

WordPress plugin Coming soon and Maintenance mode scored84%from 54 tests.

About plugin

  • Plugin page: coming-soon-page
  • Plugin version: 3.7.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-6.2
  • WordPress version: 6.3.1
  • First release: Oct 24, 2014
  • Latest release: Mar 31, 2023
  • Number of updates: 751
  • Update frequency: every 4.1 days
  • Top authors: wpdevart (100%)

Code review

54 tests

User reviews

83 reviews

Install metrics

10,000+ active /1,328,781 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.33MB] [CPU: ▲0.57ms] Passed 4 tests

Server-side resources used by Coming soon and Maintenance mode
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.3444.65 ▲5.73
Dashboard /wp-admin3.63 ▲0.3354.69 ▲0.15
Posts /wp-admin/edit.php3.75 ▲0.3954.11 ▲11.68
Add New Post /wp-admin/post-new.php6.22 ▲0.3387.72 ▼15.30
Media Library /wp-admin/upload.php3.56 ▲0.3250.50 ▲18.56
Featured Plugins /wp-admin/admin.php?page=coming-soon-featured-plugins3.5647.07
Coming Soon /wp-admin/admin.php?page=coming-soon3.6147.53
Subscribers /wp-admin/admin.php?page=mailing-list-subscribers3.5644.99

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 66 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Coming soon and Maintenance mode
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.32 ▼0.031.64 ▼0.0838.65 ▼6.44
Dashboard /wp-admin2,213 ▲365.51 ▼0.1088.97 ▼10.9970.51 ▲27.95
Posts /wp-admin/edit.php2,127 ▲242.00 ▼0.1134.45 ▼5.8733.19 ▼3.24
Add New Post /wp-admin/post-new.php1,565 ▲2923.20 ▲4.75753.38 ▲140.7854.36 ▼16.09
Media Library /wp-admin/upload.php1,427 ▲274.11 ▼0.05109.99 ▲12.8575.73 ▲32.77
Featured Plugins /wp-admin/admin.php?page=coming-soon-featured-plugins1,3443.6058.8293.39
Coming Soon /wp-admin/admin.php?page=coming-soon8,5129.51196.9898.55
Subscribers /wp-admin/admin.php?page=mailing-list-subscribers1,2803.9759.5289.80

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 did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

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

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/coming-soon-page/coming_soon.php:29

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: under construction, wordpress coming soon, maintenance mode, maintenance, coming soon

coming-soon-page/coming_soon.php 85% from 13 tests

The main PHP script in "Coming soon and Maintenance mode" version 3.7.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 204 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("coming-soon-page.php" instead of "coming_soon.php")

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 detected4,925 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP4210912,645
CSS387871,804
JavaScript456112476

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity23.75
▷ Minimum class complexity1.00
▷ Maximum class complexity53.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods64
▷ Static methods00.00%
▷ Public methods3453.12%
▷ Protected methods00.00%
▷ Private methods3046.88%
Functions0
▷ Named functions00.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
48 PNG files occupy 0.31MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/featured_plugins/contact_forms.png14.11KB6.86KB▼ 51.39%
images/support.png2.21KB1.14KB▼ 48.50%
images/menu_icon.png16.14KB1.41KB▼ 91.25%
images/support-white.png1.11KB0.67KB▼ 40.16%
images/progressbar.png2.50KB1.56KB▼ 37.39%