73% responsive-coming-soon-page

Code Review | Coming Soon Page - Responsive Coming Soon & Maintenance Mode

WordPress plugin Coming Soon Page - Responsive Coming Soon & Maintenance Mode scored73%from 54 tests.

About plugin

  • Plugin page: responsive-coming...
  • Plugin version: 1.6.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.4
  • WordPress version: 6.3.1
  • First release: Jun 8, 2016
  • Latest release: Oct 27, 2023
  • Number of updates: 91
  • Update frequency: every 29.8 days
  • Top authors: weblizar (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active /151,609 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▲1.28ms] Passed 4 tests

A check of server-side resources used by Coming Soon Page - Responsive Coming Soon & Maintenance Mode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1341.41 ▲4.57
Dashboard /wp-admin3.44 ▲0.1349.24 ▼3.02
Posts /wp-admin/edit.php3.56 ▲0.2044.85 ▲4.01
Add New Post /wp-admin/post-new.php6.02 ▲0.1383.29 ▲4.52
Media Library /wp-admin/upload.php3.37 ▲0.1335.16 ▼0.40

Server storage [IO: ▲5.56MB] [DB: ▲0.32MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 61 new files
Database: 1 new table, 7 new options
New tables
wp_rcsm_subscribers
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
weblizar_rcsm_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Coming Soon Page - Responsive Coming Soon & Maintenance Mode
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.28 ▼0.071.81 ▲0.2143.07 ▲2.43
Dashboard /wp-admin2,207 ▲375.57 ▼0.0882.75 ▼10.0238.28 ▼1.97
Posts /wp-admin/edit.php2,112 ▲122.12 ▲0.1133.70 ▼9.3438.35 ▲2.62
Add New Post /wp-admin/post-new.php1,536 ▲1023.51 ▲0.60651.54 ▼67.2259.35 ▲8.43
Media Library /wp-admin/upload.php1,412 ▲154.20 ▲0.0193.84 ▼9.7243.85 ▼3.15

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_rcsm_subscribers
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • weblizar_rcsm_options
    • db_upgraded

Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test

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
  • 10× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function weblizar_rcsm_get_options() in wp-content/plugins/responsive-coming-soon-page/options/option-settings.php:2
    • > PHP Notice
      Undefined variable: wl_rcsm_options in wp-content/plugins/responsive-coming-soon-page/options/themes/counterclock-progressbar.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/responsive-coming-soon-page/options/themes/index.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/responsive-coming-soon-page/options/include/redirect.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/responsive-coming-soon-page/options/themes/css/custom-css.php:3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/responsive-coming-soon-page/options/themes/counterclock-progressbar.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-coming-soon-page/options/option-panel.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/responsive-coming-soon-page/options/themes/subscriber-form.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/responsive-coming-soon-page/responsive-coming-soon-page.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/responsive-coming-soon-page/options/themes/counterclock-progressbar.php:16

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)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed: The official readme.txt is a good inspiration

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

"Coming Soon Page - Responsive Coming Soon & Maintenance Mode" version 1.6.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 166 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin18,588 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
SVG30129,061
CSS10858784,793
PHP112111992,875
JavaScript10992041,332
PO File1394558527

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
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%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.22MB with 0.20MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
options/images/logo.png203.33KB21.41KB▼ 89.47%
options/images/favicon.png22.96KB1.81KB▼ 92.12%