62% easy-pie-coming-soon

Code Review | EZP Coming Soon Page

WordPress plugin EZP Coming Soon Page scored 62% from 54 tests.

About plugin

  • Plugin page: easy-pie-coming-soon
  • Plugin version: 1.0.7.3
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.8
  • WordPress version: 5.9.2
  • First release: Apr 21, 2014
  • Latest release: Aug 27, 2021
  • Number of updates: 115
  • Update frequency: every 23.4 days
  • Top authors: bobriley (100%)

Code review

54 tests

User reviews

62 reviews

Install metrics

10,000+ active / 262,175 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.34MB] [CPU: ▼291.27ms] Passed 4 tests

An overview of server-side resources used by EZP Coming Soon Page
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.99 ▲0.4860.31 ▲7.92
Dashboard /wp-admin3.73 ▲0.3238.66 ▲5.69
Posts /wp-admin/edit.php4.02 ▲0.3840.55 ▲3.14
Add New Post /wp-admin/post-new.php7.26 ▲0.29100.61 ▼1,179.66
Media Library /wp-admin/upload.php3.68 ▲0.3829.84 ▲5.76
Settings /wp-admin/admin.php?page=easy-pie-coming-soon-settings3.7127.97
Subscribers /wp-admin/admin.php?page=easy-pie-coming-soon-subscribers3.6931.84
Template /wp-admin/admin.php?page=easy-pie-coming-soon3.7632.74
Go Pro! /wp-admin/admin.php?page=easy-pie-coming-soon-coming-soon-page-elite3.6626.81

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 97 new files
Database: 4 new tables, 1 new option
New tables
wp_easy_pie_cs_subscribers
wp_easy_pie_cs_entities
wp_easy_pie_emails
wp_easy_pie_contacts
New WordPress options
easy_pie_cs_version

Browser metrics Passed 4 tests

An overview of browser requirements for EZP Coming Soon Page
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,842 ▲8815.74 ▲0.076.52 ▼0.092.67 ▲0.02
Dashboard /wp-admin2,937 ▲766.19 ▼0.01115.85 ▼20.50173.79 ▲13.14
Posts /wp-admin/edit.php2,703 ▲153.13 ▼0.1163.68 ▼1.05134.04 ▼11.05
Add New Post /wp-admin/post-new.php1,749 ▲8823.01 ▲6.31400.15 ▼21.25191.16 ▲37.87
Media Library /wp-admin/upload.php1,746 ▲515.49 ▼0.05128.24 ▼17.73212.05 ▲25.94
Settings /wp-admin/admin.php?page=easy-pie-coming-soon-settings1,4792.5358.03163.58
Subscribers /wp-admin/admin.php?page=easy-pie-coming-soon-subscribers1,1853.0759.30137.54
Template /wp-admin/admin.php?page=easy-pie-coming-soon2,8035.32106.46214.12
Go Pro! /wp-admin/admin.php?page=easy-pie-coming-soon-coming-soon-page-elite1,9753.7186.46224.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 4 tables in the database
    • wp_easy_pie_cs_subscribers
    • wp_easy_pie_contacts
    • wp_easy_pie_cs_entities
    • wp_easy_pie_emails
  • Zombie WordPress options were found after uninstall: 1 option
    • easy_pie_cs_version

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/easy-pie-coming-soon/web-service/crm_ws.php
  • 19× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/easy-pie-coming-soon/classes/Utilities/class-ezp-cs-utility.php:46
    • > PHP Fatal error
      Uncaught Error: Class 'EZP_CS_Global_Entity' not found in wp-content/plugins/easy-pie-coming-soon/pages/page-options-display-tab.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/easy-pie-coming-soon/classes/Utilities/class-ezp-cs-utility.php:46
    • > PHP Fatal error
      Uncaught Error: Class 'EZP_CS_Global_Entity' not found in wp-content/plugins/easy-pie-coming-soon/pages/page-subscribers-newsletter-tab.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/easy-pie-coming-soon/classes/Utilities/class-ezp-cs-utility.php:46
    • > PHP Fatal error
      Uncaught Error: Class 'EZP_CS_Global_Entity' not found in wp-content/plugins/easy-pie-coming-soon/pages/page-options-content-tab.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'EZP_CS_Global_Entity' not found in wp-content/plugins/easy-pie-coming-soon/mini-themes/base-responsive/index.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/easy-pie-coming-soon/classes/Utilities/class-ezp-cs-utility.php:46
    • > PHP Fatal error
      Uncaught Error: Class 'EZP_CS_Utility' not found in wp-content/plugins/easy-pie-coming-soon/pages/page-options-settings.php:12
    • > PHP Notice
      Undefined index: cmd in wp-content/plugins/easy-pie-coming-soon/web-service/crm_ws.php on line 29

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=easy-pie-coming-soon-subscribers
    • > Network (severe)
    wp-content/plugins/easy-pie-coming-soon/js/page-subscribers-list-tab.js?1.0.7.3 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=easy-pie-coming-soon
    • > Rendering (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.9.2 1 The specified value "!" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
The official readme.txt is a good inspiration

easy-pie-coming-soon/easy-pie-coming-soon.php Passed 13 tests

"EZP Coming Soon Page" version 1.0.7.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
115 characters long description:
Let people know that your site is 'coming soon'. Visitors can submit their email addresses for future notification.

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
There were no executable files found in this plugin8,539 lines of code in 56 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript135956503,547
PHP321,1658153,174
CSS72431261,093
SVG100414
PO File1130162278
JSON20033

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity8.30
▷ Minimum class complexity1.00
▷ Maximum class complexity42.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes23
▷ Abstract classes14.35%
▷ Concrete classes2295.65%
▷ Final classes00.00%
Methods156
▷ Static methods7749.36%
▷ Public methods14089.74%
▷ Protected methods10.64%
▷ Private methods159.62%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants00.00%
▷ Class constants16100.00%
▷ Public constants16100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
25 PNG files occupy 0.12MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
mini-themes/base-responsive/css/overlays/06.png0.21KB0.10KB▼ 52.61%
mini-themes/base-responsive/css/overlays/08.png0.14KB0.11KB▼ 26.03%
mini-themes/base-responsive/css/overlays/12.png0.13KB0.11KB▼ 13.85%
images/easy-pie-mm-logo32.png1.52KB1.46KB▼ 3.99%
mini-themes/base-responsive/css/overlays/07.png0.21KB0.10KB▼ 51.63%