10% viral-coming-soon

Code Review | Coming Soon Viral Page by Growtheme

WordPress plugin Coming Soon Viral Page by Growtheme scored10%from 54 tests.

About plugin

  • Plugin page: viral-coming-soon
  • Plugin version: 1.1.15
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.1.0
  • WordPress version: 6.3.1
  • First release: Mar 7, 2016
  • Latest release: Mar 4, 2019
  • Number of updates: 60
  • Update frequency: every 18.2 days
  • Top authors: growtheme (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

60+ active /21,328 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/viral-coming-soon/include-aweber.php+30
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.95MB] [CPU: ▼52.55ms] Passed 4 tests

This is a short check of server-side resources used by Coming Soon Viral Page by Growtheme
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.437.21 ▼33.30
Dashboard /wp-admin2.05 ▼1.256.91 ▼41.81
Posts /wp-admin/edit.php2.05 ▼1.307.53 ▼41.01
Add New Post /wp-admin/post-new.php2.05 ▼3.836.78 ▼94.09
Media Library /wp-admin/upload.php2.05 ▼1.186.55 ▼23.70
Coming Soon Page /wp-admin/admin.php?page=viral_coming_soon_options&tab=52.057.49
Exit Intent Popup /wp-admin/admin.php?page=viral_coming_soon_options&tab=62.057.13
Styling /wp-admin/admin.php?page=viral_coming_soon_options&tab=32.057.62
General /wp-admin/admin.php?page=viral_coming_soon_options&tab=12.057.69
Redux Framework /wp-admin/tools.php?page=redux-about2.056.46
Confirmation Page /wp-admin/admin.php?page=viral_coming_soon_options&tab=72.057.64
Thank You Page /wp-admin/admin.php?page=viral_coming_soon_options&tab=82.058.15
Email Optin /wp-admin/admin.php?page=viral_coming_soon_options&tab=22.0513.44
Options Object /wp-admin/admin.php?page=viral_coming_soon_options&tab=102.055.77
Import / Export /wp-admin/admin.php?page=viral_coming_soon_options&tab=112.056.08

Server storage [IO: ▲5.28MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 758 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
viral_coming_soon-transients
theysaidso_admin_options
can_compress_scripts
viral_coming_soon
widget_recent-comments
db_upgraded
redux_version_upgraded_from
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Coming Soon Viral Page by Growtheme
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,360 ▲61415.87 ▲1.4921.30 ▲19.7348.18 ▲3.96
Dashboard /wp-admin2,505 ▲3146.54 ▲1.65122.48 ▲18.1145.84 ▼0.99
Posts /wp-admin/edit.php2,349 ▲2603.35 ▲1.2955.46 ▲14.1636.70 ▼1.36
Add New Post /wp-admin/post-new.php1,599 ▲8523.06 ▲5.54639.99 ▲24.1947.98 ▼3.41
Media Library /wp-admin/upload.php1,488 ▲1004.20 ▼0.0677.55 ▼20.0542.63 ▲1.52
Coming Soon Page /wp-admin/admin.php?page=viral_coming_soon_options&tab=53,87110.91253.3477.37
Exit Intent Popup /wp-admin/admin.php?page=viral_coming_soon_options&tab=63,89711.03219.0069.48
Styling /wp-admin/admin.php?page=viral_coming_soon_options&tab=34,50712.79272.5050.77
General /wp-admin/admin.php?page=viral_coming_soon_options&tab=13,98412.29250.6985.96
Redux Framework /wp-admin/tools.php?page=redux-about1,3394.7386.3765.57
Confirmation Page /wp-admin/admin.php?page=viral_coming_soon_options&tab=73,89911.06218.0780.60
Thank You Page /wp-admin/admin.php?page=viral_coming_soon_options&tab=83,90210.95211.1076.54
Email Optin /wp-admin/admin.php?page=viral_coming_soon_options&tab=24,00612.03228.8053.17
Options Object /wp-admin/admin.php?page=viral_coming_soon_options&tab=103,88110.94208.9346.52
Import / Export /wp-admin/admin.php?page=viral_coming_soon_options&tab=113,87810.98212.5446.56

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/viral-coming-soon/include-aweber.php+30
    Undefined index: email-marketing-provider
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_recent-comments
    • theysaidso_admin_options
    • viral_coming_soon
    • redux_version_upgraded_from
    • can_compress_scripts
    • widget_recent-posts
    • viral_coming_soon-transients
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
  • 38 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=viral_coming_soon_options&tab=11
    • > Notice in wp-content/plugins/viral-coming-soon/include-custom-html.php+135
    Undefined index: email-marketing-provider
  • 19 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=viral_coming_soon_options&tab=11
    • > Warning in wp-content/plugins/viral-coming-soon/admin/ReduxCore/inc/class.redux_filesystem.php+29
    Creating default object from empty value
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=viral_coming_soon_options&tab=10
    • > Error in wp-includes/Requests/src/Exception/InvalidArgument.php+29
    Uncaught WpOrg\Requests\Exception\InvalidArgument: WpOrg\Requests\Cookie::__construct(): Argument #1 ($name) must be of type string, integer given in wp-includes/Requests/src/Exception/InvalidArgument.php:29
    Stack trace:
    #0 wp-includes/Requests/src/Cookie.php(84): WpOrg\Requests\Exception\InvalidArgument::create()
    #1 wp-includes/class-wp-http.php(472): WpOrg\Requests\Cookie->__construct()
    #2 wp-includes/class-wp-http.php(352): WP_Http::normalize_cookies()
    #3 wp-includes/http.php(150): WP_Http->request()
    #4 wp-content/plugins/viral-coming-soon/admin/ReduxCore/inc/class.p.php(229): wp_remote_request()
    #5 wp-includes/class-wp-hook.php(310): Redux_P->proxy()
    #6 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #7 wp-includes/plugin.php(517): WP_Hook->do_action()
    #8 wp-admin/admin-ajax.php(188): do_action()
    #9 {main}

SRP 0% 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 fix the following
  • 83× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/viral-coming-soon/admin/api/campaignmonitor/samples/list/get_segments.php
    • > /wp-content/plugins/viral-coming-soon/admin/api/campaignmonitor/samples/client/get_scheduled.php
    • > /wp-content/plugins/viral-coming-soon/admin/api/campaignmonitor/samples/segment/add_rule.php
    • > /wp-content/plugins/viral-coming-soon/admin/api/campaignmonitor/samples/client/suppress.php
    • > /wp-content/plugins/viral-coming-soon/admin/api/campaignmonitor/samples/segment/get.php
    • > /wp-content/plugins/viral-coming-soon/admin/api/campaignmonitor/samples/list/test_webhook.php
    • > /wp-content/plugins/viral-coming-soon/admin/api/campaignmonitor/samples/segment/update.php
    • > /wp-content/plugins/viral-coming-soon/admin/api/campaignmonitor/samples/client/get_suppressionlist.php
    • > /wp-content/plugins/viral-coming-soon/admin/api/campaignmonitor/samples/subscriber/delete.php
    • > /wp-content/plugins/viral-coming-soon/admin/api/campaignmonitor/samples/list/get.php
  • 150× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/viral-coming-soon/admin/api/convertkit/vendor/guzzlehttp/psr7/src/BufferStream.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/viral-coming-soon/admin/api/convertkit/vendor/guzzlehttp/promises/tests/RejectionExceptionTest.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/viral-coming-soon/admin/api/convertkit/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'VCS_AWeberResponse' not found in wp-content/plugins/viral-coming-soon/admin/api/aweber/aweber_collection.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/viral-coming-soon/admin/ReduxCore/inc/welcome/views/changelog.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/viral-coming-soon/admin/api/convertkit/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Cookie\\CookieJarInterface' not found in wp-content/plugins/viral-coming-soon/admin/api/convertkit/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/viral-coming-soon/admin/api/convertkit/vendor/guzzlehttp/promises/src/AggregateException.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Section' not found in wp-content/plugins/viral-coming-soon/admin/ReduxCore/inc/extensions/customizer/inc/customizer_section.php:12
    • > PHP Warning
      count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/viral-coming-soon/admin/api/campaignmonitor/samples/subscriber/import.php on line 70

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=viral_coming_soon_options&tab=10
    • > Network (severe)
    wp-admin/admin-ajax.php?action=redux_p&nonce=e19771e923&url=http%3A%2F%2Fads.reduxframework.com%2Fapi%2Findex.php%3Fjs%26g%261%26v%3D2&proxy=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin-ajax.php%3Faction%3Dredux_p%26nonce%3De19771e923%26url%3D - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    • > GET request to /wp-admin/admin.php?page=viral_coming_soon_options&tab=5
    • > Security (severe) in unknown
    /wp-admin/admin.php?page=viral_coming_soon_options&tab=5 - Refused to execute script from '/wp-admin/admin-ajax.php?action=redux_p&nonce=e19771e923&url=http%3A%2F%2Fads.reduxframework.com%2Fapi%2Findex.php%3Fjs%26g%261%26v%3D2&proxy=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin-ajax.php%3Faction%3Dredux_p%26nonce%3De19771e923%26url%3D' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
    • > GET request to /wp-admin/admin.php?page=viral_coming_soon_options&tab=6
    • > Security (severe) in unknown
    /wp-admin/admin.php?page=viral_coming_soon_options&tab=6 - Refused to execute script from '/wp-admin/admin-ajax.php?action=redux_p&nonce=e19771e923&url=http%3A%2F%2Fads.reduxframework.com%2Fapi%2Findex.php%3Fjs%26g%261%26v%3D2&proxy=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin-ajax.php%3Faction%3Dredux_p%26nonce%3De19771e923%26url%3D' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
    • > GET request to /wp-admin/admin.php?page=viral_coming_soon_options&tab=3
    • > Security (severe) in unknown
    /wp-admin/admin.php?page=viral_coming_soon_options&tab=3 - Refused to execute script from '/wp-admin/admin-ajax.php?action=redux_p&nonce=e19771e923&url=http%3A%2F%2Fads.reduxframework.com%2Fapi%2Findex.php%3Fjs%26g%261%26v%3D2&proxy=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin-ajax.php%3Faction%3Dredux_p%26nonce%3De19771e923%26url%3D' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
    • > GET request to /wp-admin/admin.php?page=viral_coming_soon_options&tab=1
    • > Security (severe) in unknown
    /wp-admin/admin.php?page=viral_coming_soon_options&tab=1 - Refused to execute script from '/wp-admin/admin-ajax.php?action=redux_p&nonce=e19771e923&url=http%3A%2F%2Fads.reduxframework.com%2Fapi%2Findex.php%3Fjs%26g%261%26v%3D2&proxy=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin-ajax.php%3Faction%3Dredux_p%26nonce%3De19771e923%26url%3D' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
    • > GET request to /wp-admin/admin.php?page=viral_coming_soon_options&tab=7
    • > Security (severe) in unknown
    /wp-admin/admin.php?page=viral_coming_soon_options&tab=7 - Refused to execute script from '/wp-admin/admin-ajax.php?action=redux_p&nonce=e19771e923&url=http%3A%2F%2Fads.reduxframework.com%2Fapi%2Findex.php%3Fjs%26g%261%26v%3D2&proxy=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin-ajax.php%3Faction%3Dredux_p%26nonce%3De19771e923%26url%3D' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
    • > GET request to /wp-admin/admin.php?page=viral_coming_soon_options&tab=8
    • > Security (severe) in unknown
    /wp-admin/admin.php?page=viral_coming_soon_options&tab=8 - Refused to execute script from '/wp-admin/admin-ajax.php?action=redux_p&nonce=e19771e923&url=http%3A%2F%2Fads.reduxframework.com%2Fapi%2Findex.php%3Fjs%26g%261%26v%3D2&proxy=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin-ajax.php%3Faction%3Dredux_p%26nonce%3De19771e923%26url%3D' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
    • > GET request to /wp-admin/admin.php?page=viral_coming_soon_options&tab=2
    • > Security (severe) in unknown
    /wp-admin/admin.php?page=viral_coming_soon_options&tab=2 - Refused to execute script from '/wp-admin/admin-ajax.php?action=redux_p&nonce=e19771e923&url=http%3A%2F%2Fads.reduxframework.com%2Fapi%2Findex.php%3Fjs%26g%261%26v%3D2&proxy=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin-ajax.php%3Faction%3Dredux_p%26nonce%3De19771e923%26url%3D' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
    • > GET request to /wp-admin/admin.php?page=viral_coming_soon_options&tab=10
    • > Security (severe) in unknown
    /wp-admin/admin.php?page=viral_coming_soon_options&tab=10 - Refused to execute script from '/wp-admin/admin-ajax.php?action=redux_p&nonce=e19771e923&url=http%3A%2F%2Fads.reduxframework.com%2Fapi%2Findex.php%3Fjs%26g%261%26v%3D2&proxy=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin-ajax.php%3Faction%3Dredux_p%26nonce%3De19771e923%26url%3D' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
You can look at the official readme.txt

viral-coming-soon/viral_coming_soon.php 77% from 13 tests

"Coming Soon Viral Page by Growtheme" version 1.1.15's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 149 characters long)
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("viral-coming-soon.php" instead of "viral_coming_soon.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin63,798 lines of code in 650 files:
LanguageFilesBlank linesComment linesLines of code
PHP3597,59013,48335,636
JavaScript992,9402,18612,930
Sass49617605,511
Markdown151,00603,395
CSS523741692,238
JSON56201,458
SVG100934
LESS38279715
PO File1183187569
HTML64118189
Stylus1192102
YAML519073
make211031
XML10017

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
It is recommended to fix the following
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 113)
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity16.07
▷ Minimum class complexity1.00
▷ Maximum class complexity856.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity113.00
Code structure
Namespaces15
Interfaces16
Traits2
Classes269
▷ Abstract classes103.72%
▷ Concrete classes25996.28%
▷ Final classes41.54%
Methods1,973
▷ Static methods1437.25%
▷ Public methods1,71787.02%
▷ Protected methods1135.73%
▷ Private methods1437.25%
Functions412
▷ Named functions11327.43%
▷ Anonymous functions29972.57%
Constants128
▷ Global constants3527.34%
▷ Class constants9372.66%
▷ Public constants93100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
34 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/ReduxCore/assets/img/1c.png0.13KB0.13KB▼ 0.72%
admin/ReduxCore/assets/img/4-col-portfolio.png1.01KB0.17KB▼ 83.45%
admin/ReduxCore/assets/img/3cl.png3.08KB0.33KB▼ 89.13%
admin/ReduxCore/inc/fields/spinner/arrow_left.png0.15KB0.12KB▼ 16.67%
admin/ReduxCore/assets/img/3cr.png2.98KB0.34KB▼ 88.66%