68% coming-soons

Code Review | Coming Soon - Under Construction

WordPress plugin Coming Soon - Under Construction scored68%from 54 tests.

About plugin

  • Plugin page: coming-soons
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.0
  • WordPress version: 6.3.1
  • First release: Mar 2, 2017
  • Latest release: Aug 16, 2022
  • Number of updates: 54
  • Update frequency: every 36.9 days
  • Top authors: richteam (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

600+ active /24,054 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.15MB] [CPU: ▼2.39ms] Passed 4 tests

Analyzing server-side resources used by Coming Soon - Under Construction
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1736.60 ▼0.64
Dashboard /wp-admin3.46 ▲0.1144.95 ▼15.70
Posts /wp-admin/edit.php3.51 ▲0.1545.37 ▲0.47
Add New Post /wp-admin/post-new.php6.06 ▲0.1791.79 ▲6.32
Media Library /wp-admin/upload.php3.38 ▲0.1540.81 ▲6.38

Server storage [IO: ▲4.97MB] [DB: ▲0.03MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 438 new files
Database: 10 new tables, 21 new options
New tables
wp_rich_web_cs_forms_options
wp_rich_web_cs_font_family
wp_rich_web_cs_forms_themes3
wp_rich_web_cs_forms_mails
wp_rich_web_cs_forms_saved
wp_rich_web_cs_form_fields
wp_rich_web_cs_forms_cust_id
wp_rich_web_cs_forms_themes2
wp_rich_web_cs_forms_info
wp_rich_web_cs_forms_themes1
New WordPress options
widget_recent-comments
rw_cs_button
rw_cs_loader
widget_theysaidso_widget
rw_cs_background
rw_cs_countdown
rw_cs_footer
widget_recent-posts
rw_cs_description
rw_cs_fic
...

Browser metrics 75% from 4 tests

A check of browser resources used by Coming Soon - Under Construction
Please improve the following
  • Nodes: You must limit the number of DOM nodes under 25,000 (currently 27,703 on /wp-admin/admin.php?page=Rich-Web CS Admin)
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,003 ▲25714.50 ▼0.1514.07 ▲12.2645.21 ▲5.78
Dashboard /wp-admin2,258 ▲1095.13 ▼0.49100.86 ▲5.6982.35 ▲38.21
Posts /wp-admin/edit.php2,146 ▲572.28 ▲0.2237.22 ▲0.5835.76 ▲1.35
Add New Post /wp-admin/post-new.php1,718 ▲19622.79 ▼0.58696.13 ▲52.2729.65 ▼28.11
Media Library /wp-admin/upload.php1,437 ▲554.42 ▲0.1797.11 ▼2.8773.40 ▲30.56
Coming Soon /wp-admin/admin.php?page=Rich-Web CS Admin27,70321.081,325.35130.67
Our Products /wp-admin/admin.php?page=Rich-Web Coming Soon Products9981.9225.5434.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure failed, leaving 10 tables in the database
    • wp_rich_web_cs_forms_cust_id
    • wp_rich_web_cs_forms_themes2
    • wp_rich_web_cs_forms_options
    • wp_rich_web_cs_forms_saved
    • wp_rich_web_cs_forms_themes1
    • wp_rich_web_cs_forms_info
    • wp_rich_web_cs_forms_themes3
    • wp_rich_web_cs_forms_mails
    • wp_rich_web_cs_form_fields
    • wp_rich_web_cs_font_family
  • This plugin did not uninstall successfully, leaving 21 options in the database
    • rw_cs_info
    • rw_cs_content
    • rw_cs_loader
    • rw_cs_background
    • widget_theysaidso_widget
    • rw_cs_order
    • can_compress_scripts
    • rw_cs_button
    • rw_cs_logo
    • rw_cs_countdown
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/coming-soons/theme/RW_Footer_Theme.php
    • > /wp-content/plugins/coming-soons/theme/index.php
  • 13× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/coming-soons/theme/RW_Buttons_Theme.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/coming-soons/theme/RW_Countdown_Theme.php:46
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/coming-soons/theme/RW_Logo_Theme.php:2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/coming-soons/theme/RW_Footer_Theme.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/coming-soons/theme/RW_Forms_Theme.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coming-soons/theme/Rich-Web-CS-Ajax.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/coming-soons/theme/RW_Loader_Theme.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/coming-soons/theme/RW_Description_Theme.php:5
    • > PHP Notice
      Undefined variable: rw_cs_footer in wp-content/plugins/coming-soons/theme/RW_Footer_Theme.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/coming-soons/theme/RW_Seo_Theme.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% 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
8 plugin tags: under construction, wp maintenance mode, coming soon page, coming soon plugin, maintenance mode...

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

The entry point to "Coming Soon - Under Construction" version 1.2.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("coming-soons.php" instead of "coming-soon.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin29,349 lines of code in 139 files:
LanguageFilesBlank linesComment linesLines of code
PHP381913610,798
JavaScript807904938,995
CSS18943948,677
SVG300879

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions15
▷ Named functions1493.33%
▷ Anonymous functions16.67%
Constants1
▷ Global constants1100.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
261 compressed PNG files occupy 0.54MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
backend/Images/Flags/MN.png0.44KB0.48KB0.00%
backend/Images/Flags/MK.png0.61KB0.57KB▼ 7.17%
backend/Images/Flags/BS.png0.27KB0.28KB0.00%
backend/Images/Flags/CW.png0.26KB0.25KB▼ 0.76%
backend/Images/Flags/FI.png0.12KB0.12KB▼ 0.80%