83% nifty-coming-soon-and-under-construction-page

Code Review | Coming Soon & Maintenance Mode Page & Under Construction

WordPress plugin Coming Soon & Maintenance Mode Page & Under Construction scored83%from 54 tests.

About plugin

  • Plugin page: nifty-coming-soon...
  • Plugin version: 3.0.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Jul 19, 2016
  • Latest release: Nov 21, 2023
  • Number of updates: 173
  • Update frequency: every 15.5 days
  • Top authors: ArissDJ (43.93%)WebFactory (32.37%)wpconcern (16.76%)wphait (6.36%)hookandhook (2.89%)

Code review

54 tests

User reviews

219 reviews

Install metrics

10,000+ active /476,637 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.56MB] [CPU: ▼0.22ms] Passed 4 tests

Server-side resources used by Coming Soon & Maintenance Mode Page & Under Construction
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.91 ▲0.4539.48 ▼1.09
Dashboard /wp-admin3.90 ▲0.6050.04 ▼1.04
Posts /wp-admin/edit.php3.96 ▲0.5952.44 ▲5.13
Add New Post /wp-admin/post-new.php6.51 ▲0.6186.12 ▼3.89
Media Library /wp-admin/upload.php3.83 ▲0.6041.51 ▲8.65

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 190 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
nifty_cs_migrated
nifty_cs_option
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Coming Soon & Maintenance Mode Page & Under Construction
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6814.20 ▼0.541.74 ▲0.0541.87 ▼2.49
Dashboard /wp-admin2,232 ▲555.72 ▲0.1193.99 ▼2.0075.65 ▲35.38
Posts /wp-admin/edit.php2,137 ▲341.98 ▲0.0335.55 ▼3.8332.93 ▼0.27
Add New Post /wp-admin/post-new.php1,552 ▲2323.04 ▼0.19765.03 ▲180.5160.37 ▼2.44
Media Library /wp-admin/upload.php1,428 ▲314.18 ▲0.0197.12 ▼3.5074.54 ▲29.14

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 did not uninstall successfully, leaving 8 options in the database
    • nifty_cs_option
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • nifty_cs_migrated

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 68× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: wp_customize in wp-content/plugins/nifty-coming-soon-and-under-construction-page/inc/customizer/partials.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function nifty_cs_get_default_options() in wp-content/plugins/nifty-coming-soon-and-under-construction-page/inc/customizer/sections/typography.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function nifty_cs_get_default_options() in wp-content/plugins/nifty-coming-soon-and-under-construction-page/inc/customizer/sections/countdown.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function nifty_cs_get_default_options() in wp-content/plugins/nifty-coming-soon-and-under-construction-page/inc/customizer/sections/general.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Nilambar\\CustomizerUtils\\Control\\Base' not found in wp-content/plugins/nifty-coming-soon-and-under-construction-page/vendor/ernilambar/ns-customizer-utilities/src/Control/Radio.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Nilambar\\CustomizerUtils\\Control\\Base' not found in wp-content/plugins/nifty-coming-soon-and-under-construction-page/vendor/ernilambar/ns-customizer-utilities/src/Control/Select.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function nifty_cs_get_option() in wp-content/plugins/nifty-coming-soon-and-under-construction-page/template-parts/sections/contact.php:8
    • > PHP Warning
      require_once(NCSUCP_DIR/inc/customizer/init.php): failed to open stream: No such file or directory in wp-content/plugins/nifty-coming-soon-and-under-construction-page/inc/init.php on line 9
    • > PHP Fatal error
      Uncaught Error: Class 'Nilambar\\CustomizerUtils\\Control\\Base' not found in wp-content/plugins/nifty-coming-soon-and-under-construction-page/vendor/ernilambar/ns-customizer-utilities/src/Control/RadioImage.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/nifty-coming-soon-and-under-construction-page/inc/hooks/activation.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
The official readme.txt might help

nifty-coming-soon-and-under-construction-page/nifty-coming-soon.php 85% from 13 tests

The main PHP file in "Coming Soon & Maintenance Mode Page & Under Construction" ver. 3.0.8 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 189 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("nifty-coming-soon-and-under-construction-page.php" instead of "nifty-coming-soon.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin30,413 lines of code in 125 files:
LanguageFilesBlank linesComment linesLines of code
PHP951,5173,50815,301
JavaScript141,9913569,832
CSS72542564,308
SVG100476
JSON500385
Markdown3190111

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity9.25
▷ Minimum class complexity1.00
▷ Maximum class complexity76.00
Average method complexity2.70
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces9
Interfaces0
Traits0
Classes51
▷ Abstract classes00.00%
▷ Concrete classes51100.00%
▷ Final classes00.00%
Methods250
▷ Static methods6325.20%
▷ Public methods22590.00%
▷ Protected methods176.80%
▷ Private methods83.20%
Functions60
▷ Named functions5490.00%
▷ Anonymous functions610.00%
Constants22
▷ Global constants1986.36%
▷ Class constants313.64%
▷ Public constants3100.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
37 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/menu.png1.22KB0.33KB▼ 73.05%
assets/images/patterns/12.png0.13KB0.11KB▼ 13.85%
assets/images/patterns-preview/05.png0.27KB0.11KB▼ 59.50%
assets/images/patterns/08.png0.14KB0.11KB▼ 26.03%
assets/images/patterns/01.png0.21KB0.10KB▼ 53.05%