83% easy-maintenance-mode-coming-soon

Code Review | Easy Maintenance Mode

WordPress plugin Easy Maintenance Mode scored83%from 54 tests.

About plugin

  • Plugin page: easy-maintenance-...
  • Plugin version: 1.4.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 4, 2014
  • Latest release: Dec 23, 2016
  • Number of updates: 25
  • Update frequency: every 42.2 days
  • Top authors: a.ankit (60%)priyanshu.mittal (44%)

Code review

54 tests

User reviews

42 reviews

Install metrics

3,000+ active /101,402 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.30MB] [CPU: ▼16.54ms] Passed 4 tests

A check of server-side resources used by Easy Maintenance Mode
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▼0.6018.52 ▼23.42
Dashboard /wp-admin3.22 ▼0.0940.18 ▼13.81
Posts /wp-admin/edit.php3.28 ▼0.0839.74 ▼8.96
Add New Post /wp-admin/post-new.php5.47 ▼0.4275.30 ▼19.95
Media Library /wp-admin/upload.php3.22 ▼0.0134.19 ▼4.62

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 334 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Maintenance Mode
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.53 ▲0.182.08 ▼0.0745.44 ▲1.44
Dashboard /wp-admin2,213 ▲335.55 ▼0.1287.37 ▼0.6843.99 ▲3.43
Posts /wp-admin/edit.php2,118 ▲182.03 ▲0.0039.70 ▲4.6739.29 ▲4.68
Add New Post /wp-admin/post-new.php1,541 ▼123.14 ▲4.96665.25 ▲18.3264.54 ▼2.52
Media Library /wp-admin/upload.php1,418 ▲184.12 ▼0.09107.25 ▲10.6647.11 ▲4.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please fix the following items
  • 18× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/easy-maintenance-mode-coming-soon/includes/templates.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/easy-maintenance-mode-coming-soon/easy-maintenance-mode-plugin.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_parse_args() in wp-content/plugins/easy-maintenance-mode-coming-soon/theme_options/pages/header_page_settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_parse_args() in wp-content/plugins/easy-maintenance-mode-coming-soon/themes/index.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-maintenance-mode-coming-soon/redirect.php:63
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/easy-maintenance-mode-coming-soon/includes/pro.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/easy-maintenance-mode-coming-soon/theme_options/pages/pricing_settings.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/easy-maintenance-mode-coming-soon/theme_options/pages/about_pro_version.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/easy-maintenance-mode-coming-soon/theme_options/webriti_option_pannel.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/easy-maintenance-mode-coming-soon/theme_options/pages/live_preview_settings.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% 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 require attention:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Create Maintenance Mode page like this), #2 (Maintenance Mode page preview 2), #3 (Maintenance Mode page example 3), #4 (Responsive Design), #5 (General settings page), #6 (Background settings page), #7 (text and color settings page)
  • Requires at least: The plugin version is formatted incorrectly
You can look at the official readme.txt

easy-maintenance-mode-coming-soon/easy-maintenance-mode-plugin.php 85% from 13 tests

The primary PHP file in "Easy Maintenance Mode" version 1.4.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 190 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("easy-maintenance-mode-coming-soon.php" instead of "easy-maintenance-mode-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin18,753 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
CSS121,01230616,011
PHP19686912,305
JavaScript1011860437

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
258 PNG files occupy 3.74MB with 1.80MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
theme_options/images/option-icon-box.png0.68KB0.82KB0.00%
images/tabs_bg.png0.12KB0.09KB▼ 24.19%
images/trash.png2.96KB0.81KB▼ 72.54%
css/images/button_check.png4.66KB1.57KB▼ 66.23%
images/social-media.png3.75KB0.84KB▼ 77.60%