83% et-coming-soon-page-maintenance-mode-under-construction-page

Code Review | Coming Soon Page Maintenance Mode Under Construction Page

WordPress plugin Coming Soon Page Maintenance Mode Under Construction Page scored 83% from 54 tests.

About plugin

  • Plugin page: et-coming-soon-pa...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.6
  • WordPress version: 5.8.1
  • First release: Feb 9, 2021
  • Latest release: Feb 26, 2021
  • Number of updates: 3
  • Update frequency: every 6.0 days
  • Top authors: easytoolbox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 123 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.11MB] [CPU: ▼150.07ms] Passed 4 tests

A check of server-side resources used by Coming Soon Page Maintenance Mode Under Construction Page
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.78 ▲0.0620.23 ▼3.65
Dashboard /wp-admin2.99 ▼0.0727.23 ▼16.28
Posts /wp-admin/edit.php3.05 ▼0.0633.42 ▼14.13
Add New Post /wp-admin/post-new.php5.12 ▼0.3287.10 ▼563.08
Media Library /wp-admin/upload.php3.01 ▲0.0128.45 ▼6.80

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 3 new options
New WordPress options
et_coming_soon_page_general_settings
et_comming_soon_page_installed
et_comming_soon_page_version

Browser metrics Passed 4 tests

A check of browser resources used by Coming Soon Page Maintenance Mode Under Construction Page
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,722 ▲12615.86 ▲0.1410.32 ▼3.5450.97 ▼7.75
Dashboard /wp-admin2,987 ▲575.91 ▼0.19157.83 ▲1.34106.59 ▼4.45
Posts /wp-admin/edit.php2,759 ▲202.85 ▲0.1365.98 ▼1.3888.90 ▲0.47
Add New Post /wp-admin/post-new.php1,617 ▼2,12118.74 ▼0.39372.00 ▼127.83100.95 ▼54.75
Media Library /wp-admin/upload.php1,827 ▲175.04 ▲0.01173.99 ▲9.58124.31 ▲10.52

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 3 options
    • et_comming_soon_page_version
    • et_comming_soon_page_installed
    • et_coming_soon_page_general_settings

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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 take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/et-coming-soon-page-maintenance-mode-under-construction-page/includes/Frontend/Views/template-1.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/et-coming-soon-page-maintenance-mode-under-construction-page/includes/Backend/Views/settings.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: delicious share button, social share button, facebook share button, twitter share button, reddit share button

et-coming-soon-page-maintenance-mode-under-construction-page/et-coming-soon-page-maintenance-mode-under-construction-page.php 77% from 13 tests

The principal PHP file in "Coming Soon Page Maintenance Mode Under Construction Page" v. 1.0.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Requires at least: The required version number must match the one declared in readme.txt ("3.0.0" instead of "5.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,139 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP18279298879
CSS26012236
JSON20023
Markdown1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity8.64
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes19.09%
Methods55
▷ Static methods1425.45%
▷ Public methods5396.36%
▷ Protected methods00.00%
▷ Private methods23.64%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/easy-toolbox-logo-100x100-v2.png3.72KB2.21KB▼ 40.57%