83% fancy-coming-soon-maintenance-mode

Code Review | Fancy Coming Soon & Maintenance Mode

WordPress plugin Fancy Coming Soon & Maintenance Mode scored83%from 54 tests.

About plugin

  • Plugin page: fancy-coming-soon...
  • Plugin version: 1.4.4
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 1, 2016
  • Latest release: Aug 4, 2021
  • Number of updates: 44
  • Update frequency: every 43.1 days
  • Top authors: FancyThemes (59.09%)wpkube (43.18%)

Code review

54 tests

User reviews

10 reviews

Install metrics

500+ active /33,745 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.19ms] Passed 4 tests

A check of server-side resources used by Fancy Coming Soon & Maintenance Mode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.77 ▼1.13
Dashboard /wp-admin3.38 ▲0.0748.90 ▼3.18
Posts /wp-admin/edit.php3.43 ▲0.0748.80 ▲0.79
Add New Post /wp-admin/post-new.php5.96 ▲0.0788.99 ▼12.61
Media Library /wp-admin/upload.php3.30 ▲0.0735.69 ▼7.82

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
fancy_coming_soon_uses_option
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Fancy Coming Soon & Maintenance Mode
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲4814.38 ▼0.011.67 ▼0.3443.69 ▲0.31
Dashboard /wp-admin2,199 ▲285.56 ▼0.0789.83 ▲1.8640.57 ▼7.54
Posts /wp-admin/edit.php2,104 ▲42.04 ▲0.0436.96 ▼0.7734.79 ▲0.63
Add New Post /wp-admin/post-new.php1,534 ▲823.17 ▲5.62663.22 ▼21.7154.49 ▼1.89
Media Library /wp-admin/upload.php1,401 ▲14.17 ▲0.0297.56 ▼19.3944.27 ▼5.63

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • fancy_coming_soon_uses_option
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fancy-coming-soon-maintenance-mode/templates/fancy-customizer.php:441
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/fancy-coming-soon-maintenance-mode/templates/fancy-template.php:6

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 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention: You can look at the official readme.txt

fancy-coming-soon-maintenance-mode/fancy-coming-soon.php 77% from 13 tests

The primary PHP file in "Fancy Coming Soon & Maintenance Mode" version 1.4.4 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("fancy-coming-soon-maintenance-mode.php" instead of "fancy-coming-soon.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 229 characters long)

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
Everything looks great! No dangerous files found in this plugin3,155 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
SVG1032,227
PHP5184172543
CSS120266381
JavaScript1004

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods133.33%
▷ Public methods266.67%
▷ Protected methods00.00%
▷ Private methods133.33%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/favicon.png0.10KB0.08KB▼ 17.65%
assets/images/logo.png0.43KB0.21KB▼ 50.11%