93% easy-coming-soon

Code Review | Easy Coming Soon

WordPress plugin Easy Coming Soon scored 93% from 54 tests.

About plugin

  • Plugin page: easy-coming-soon
  • Plugin version: 2.3
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Oct 9, 2013
  • Latest release: Feb 19, 2019
  • Number of updates: 98
  • Update frequency: every 20.0 days
  • Top authors: a.ankit (76.53%)priyanshu.mittal (24.49%)

Code review

54 tests

User reviews

109 reviews

Install metrics

10,000+ active / 405,222 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.43MB] [CPU: ▼326.37ms] Passed 4 tests

This is a short check of server-side resources used by Easy Coming Soon
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.12 ▼0.3920.63 ▼29.81
Dashboard /wp-admin3.28 ▼0.1423.12 ▼17.50
Posts /wp-admin/edit.php3.33 ▼0.3125.44 ▼11.55
Add New Post /wp-admin/post-new.php6.07 ▼0.9079.15 ▼1,246.62
Media Library /wp-admin/upload.php3.28 ▼0.0220.91 ▼7.16

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 199 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Easy Coming Soon
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,807 ▲5315.86 ▲0.216.00 ▼0.332.29 ▼0.64
Dashboard /wp-admin2,924 ▲636.18 ▲0.02128.65 ▼7.30168.92 ▲4.49
Posts /wp-admin/edit.php2,723 ▲353.25 ▲0.0264.23 ▼1.96140.83 ▼2.99
Add New Post /wp-admin/post-new.php1,692 ▲2419.53 ▲1.59374.26 ▼52.97156.79 ▲2.64
Media Library /wp-admin/upload.php1,727 ▲295.53 ▲0.00137.56 ▼14.79186.83 ▼3.15

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 12× 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 add_action() in wp-content/plugins/easy-coming-soon/coming-soon-plugin.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/easy-coming-soon/theme_options/webriti_option_pannel.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/easy-coming-soon/theme_options/pages/live_preview_settings.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_parse_args() in wp-content/plugins/easy-coming-soon/theme_options/pages/notification_page_setting.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/easy-coming-soon/theme_options/pages/aboutpro_version_settings.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/easy-coming-soon/theme_options/pages/pricing_settings.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_parse_args() in wp-content/plugins/easy-coming-soon/theme_options/pages/design_page_settings.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_parse_args() in wp-content/plugins/easy-coming-soon/theme_options/pages/header_page_settings.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/easy-coming-soon/theme_options/pages/pro_features_settings.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/easy-coming-soon/template/coming_soon_display.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Requires at least: Version not formatted correctly
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Coming soon page image background example 1), #2 (Coming soon page image background example 2), #3 (Coming soon page image background example 3), #4 (Coming soon page image background example 4), #5 (Coming soon page color background example 1), #6 (Coming soon page color background example 2), #7 (Responsive Design), #8 (General setting page), #9 (Design setting page)
  • Tags: There are too many tags (29 tag instead of maximum 10)
Please take inspiration from this readme.txt

easy-coming-soon/coming-soon-plugin.php 85% from 13 tests

The main PHP file in "Easy Coming Soon" ver. 2.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 164 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("easy-coming-soon.php" instead of "coming-soon-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin19,559 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
CSS152,20639316,051
PHP12733982,096
JavaScript71811811,412

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.21
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%
Constants1
▷ Global constants1100.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
144 PNG files occupy 2.18MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
theme_options/pages/images/black_px.png0.11KB0.08KB▼ 24.07%
theme_options/pages/images/logo_dark.png2.96KB2.21KB▼ 25.23%
theme_options/pages/images/under_construction-1.png1.99KB1.47KB▼ 26.29%
theme_options/images/option-icon-sidebar.png0.26KB0.30KB0.00%
theme_options/images/ico-docs.png0.32KB0.38KB0.00%