78% responsive-coming-soon

Code Review | Coming Soon Page & Maintenance Mode

WordPress plugin Coming Soon Page & Maintenance Mode scored78%from 54 tests.

About plugin

  • Plugin page: responsive-coming...
  • Plugin version: 2.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Mar 31, 2016
  • Latest release: Nov 10, 2023
  • Number of updates: 102
  • Update frequency: every 27.3 days
  • Top authors: wpshopmart (100%)

Code review

54 tests

User reviews

123 reviews

Install metrics

4,000+ active /233,323 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.65ms] Passed 4 tests

An overview of server-side resources used by Coming Soon Page & Maintenance Mode
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0534.23 ▼4.60
Dashboard /wp-admin3.36 ▲0.0149.96 ▼11.56
Posts /wp-admin/edit.php3.41 ▲0.0546.76 ▲0.43
Add New Post /wp-admin/post-new.php5.94 ▲0.0590.76 ▲5.56
Media Library /wp-admin/upload.php3.28 ▲0.0533.25 ▲1.13

Server storage [IO: ▲4.71MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 192 new files
Database: no new tables, 20 new options
New WordPress options
wpsm_rcs_plugin_options_about_us
wpsm_rcs_plugin_options_contact_us
wpsm_rcs_review
wpsm_rcs_plugin_options_templates
wpsm_rcs_plugin_options_dashboard
db_upgraded
wpsm_rcs_plugin_options_social
widget_theysaidso_widget
widget_recent-posts
wpsm_rcs_plugin_options_header
...

Browser metrics Passed 4 tests

A check of browser resources used by Coming Soon Page & Maintenance Mode
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲5914.24 ▼0.101.67 ▼0.0337.45 ▼7.21
Dashboard /wp-admin2,214 ▲345.63 ▼0.0587.73 ▼3.5940.77 ▼3.53
Posts /wp-admin/edit.php2,116 ▲132.03 ▲0.0639.84 ▼3.2035.94 ▼1.47
Add New Post /wp-admin/post-new.php1,539 ▲1323.21 ▼0.29675.06 ▼13.1655.96 ▼0.61
Media Library /wp-admin/upload.php1,413 ▲134.20 ▼0.0299.22 ▲1.1344.63 ▲1.79

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 20 options in the database
    • wpsm_rcs_plugin_options_general
    • widget_theysaidso_widget
    • wpsm_rcs_plugin_options_social
    • wpsm_rcs_plugin_options_dashboard
    • db_upgraded
    • wpsm_rcs_plugin_options_countdown
    • widget_recent-comments
    • wpsm_rcs_plugin_options_background
    • wpsm_rcs_plugin_options_contact_us
    • wpsm_rcs_plugin_options_text_and_color
    • ...

Smoke tests 50% from 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/responsive-coming-soon/includes/fs.php
    • > /wp-content/plugins/responsive-coming-soon/includes/content.php
  • 28× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/responsive-coming-soon/responsive-coming-soon.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/responsive-coming-soon/includes/settings/page-settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/responsive-coming-soon/includes/pro/pro.php:83
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/responsive-coming-soon/includes/social/social.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/responsive-coming-soon/includes/settings/countdown.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/responsive-coming-soon/includes/import-export/import-export.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/responsive-coming-soon/includes/dashboard/dashboard.php:3
    • > PHP Notice
      Undefined variable: wpsm_rcs_plugin_options_background in wp-content/plugins/responsive-coming-soon/templates/template1/assets/js/main.php on line 75
    • > PHP Notice
      Undefined variable: wpsm_rcs_plugin_options_background in wp-content/plugins/responsive-coming-soon/templates/template1/assets/js/main.php on line 71
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/responsive-coming-soon/templates/template1/assets/php/data-var.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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 to be fixed:
  • Tags: Too many tags (27 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

responsive-coming-soon/responsive-coming-soon.php 92% from 13 tests

The main file in "Coming Soon Page & Maintenance Mode" v. 2.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 159 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin27,585 lines of code in 100 files:
LanguageFilesBlank linesComment linesLines of code
CSS201,81133415,265
JavaScript246051,2595,056
PHP276131603,956
Sass1429261,376
LESS1429351,367
SVG100565

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
61 PNG files occupy 1.20MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/overlay/overlay-8.png0.14KB0.11KB▼ 26.03%
images/pro.png3.49KB0.08KB▼ 97.70%
img/overlay/overlay-10.png0.13KB0.10KB▼ 22.63%
img/overlay/overlay-14.png0.13KB0.12KB▼ 13.87%
images/demo/demo-6.png48.92KB52.72KB0.00%