68% 8-degree-coming-soon-page

Code Review | Coming Soon Landing Page and Maintenance Mode WordPress Plugin

WordPress plugin Coming Soon Landing Page and Maintenance Mode WordPress Plugin scored 68% from 54 tests.

About plugin

  • Plugin page: 8-degree-coming-s...
  • Plugin version: 2.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.2.2
  • WordPress version: 5.9.2
  • First release: Sep 6, 2015
  • Latest release: Jul 12, 2019
  • Number of updates: 30
  • Update frequency: every 46.9 days
  • Top authors: 8degreethemes (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

3,000+ active / 197,865 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼293.33ms] Passed 4 tests

Server-side resources used by Coming Soon Landing Page and Maintenance Mode WordPress Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.1753.75 ▲2.10
Dashboard /wp-admin3.52 ▲0.1234.04 ▲1.61
Posts /wp-admin/edit.php3.75 ▲0.1137.96 ▲1.13
Add New Post /wp-admin/post-new.php6.98 ▲0.0294.68 ▼1,175.80
Media Library /wp-admin/upload.php3.40 ▲0.1125.74 ▼0.25

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 74 new files
Database: 1 new table, 1 new option
New tables
wp_8degree_comingsoon
New WordPress options
maintenance_settings

Browser metrics Passed 4 tests

This is an overview of browser requirements for Coming Soon Landing Page and Maintenance Mode WordPress Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,835 ▲9115.89 ▲0.216.69 ▲0.672.38 ▲0.18
Dashboard /wp-admin2,922 ▲646.14 ▼0.01114.94 ▼18.25155.24 ▼6.28
Posts /wp-admin/edit.php2,718 ▲613.23 ▼0.0062.66 ▼0.30141.53 ▲6.61
Add New Post /wp-admin/post-new.php1,776 ▲6522.64 ▲1.25397.53 ▼42.05156.18 ▼3.26
Media Library /wp-admin/upload.php1,728 ▲305.54 ▲0.03140.59 ▲2.71191.74 ▲5.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie tables detected upon uninstall: 1 table
    • wp_8degree_comingsoon
  • Zombie WordPress options detected upon uninstall: 1 option
    • maintenance_settings

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 10× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/8-degree-coming-soon-page/inc/backend/save-settings.php
    • > /wp-content/plugins/8-degree-coming-soon-page/inc/backend/boards/about.php
    • > /wp-content/plugins/8-degree-coming-soon-page/inc/backend/settings.php
    • > /wp-content/plugins/8-degree-coming-soon-page/inc/backend/index.php
    • > /wp-content/plugins/8-degree-coming-soon-page/inc/backend/boards/how-to-use.php
    • > /wp-content/plugins/8-degree-coming-soon-page/inc/backend/export-csv.php
    • > /wp-content/plugins/8-degree-coming-soon-page/inc/backend/remove-subscriber.php
    • > /wp-content/plugins/8-degree-coming-soon-page/inc/frontend/dynamic-style.php
    • > /wp-content/plugins/8-degree-coming-soon-page/8-degree-coming-soon-page.php
    • > /wp-content/plugins/8-degree-coming-soon-page/inc/backend/confirm.php
  • 63× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: settings_data in wp-content/plugins/8-degree-coming-soon-page/inc/frontend/dynamic-style.php on line 75
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/8-degree-coming-soon-page/inc/frontend/dynamic-style.php on line 58
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/8-degree-coming-soon-page/inc/frontend/dynamic-style.php on line 66
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/8-degree-coming-soon-page/inc/frontend/dynamic-style.php on line 64
    • > PHP Notice
      Undefined variable: settings_data in wp-content/plugins/8-degree-coming-soon-page/inc/frontend/dynamic-style.php on line 35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/8-degree-coming-soon-page/inc/backend/redirect.php:3
    • > PHP Notice
      Undefined variable: settings_data in wp-content/plugins/8-degree-coming-soon-page/inc/frontend/dynamic-style.php on line 74
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/8-degree-coming-soon-page/inc/frontend/dynamic-style.php on line 26
    • > PHP Notice
      Undefined variable: settings_data in wp-content/plugins/8-degree-coming-soon-page/inc/frontend/dynamic-style.php on line 67
    • > PHP Notice
      Undefined variable: settings_data in wp-content/plugins/8-degree-coming-soon-page/inc/frontend/dynamic-style.php on line 29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
You can look at the official readme.txt

8-degree-coming-soon-page/8-degree-coming-soon-page.php Passed 13 tests

The primary PHP file in "Coming Soon Landing Page and Maintenance Mode WordPress Plugin" version 2.2.0 is used by WordPress to initiate all plugin functionality
69 characters long description:
A plugin used for Under Construction | Coming Soon | Maintenance Mode

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
Success! There were no dangerous files found in this plugin13,069 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript71,0121,0298,071
CSS83011832,616
PHP173482411,697
SVG100685

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.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
18 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-bg_glass_65_ffffff_1x400.png0.20KB0.09KB▼ 57.49%
images/sub-lay2.png4.71KB3.14KB▼ 33.33%
css/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.27KB0.18KB▼ 35.00%
css/images/ui-bg_glass_75_dadada_1x400.png0.26KB0.16KB▼ 38.93%
css/images/ui-icons_222222_256x240.png6.76KB4.17KB▼ 38.24%