84% easy-maintenance-mode-by-wpkoder

Code Review | Easy Maintenance Mode

WordPress plugin Easy Maintenance Mode scored84%from 54 tests.

About plugin

  • Plugin page: easy-maintenance-...
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.0
  • WordPress version: 6.3.1
  • First release: Jan 7, 2017
  • Latest release: May 10, 2022
  • Number of updates: 21
  • Update frequency: every 92.7 days
  • Top authors: mukesh27 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,904 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.49ms] Passed 4 tests

Server-side resources used by Easy Maintenance Mode
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.34 ▼3.52
Dashboard /wp-admin3.34 ▲0.0347.21 ▼3.86
Posts /wp-admin/edit.php3.39 ▲0.0350.71 ▼0.46
Add New Post /wp-admin/post-new.php5.92 ▲0.0396.38 ▼2.13
Media Library /wp-admin/upload.php3.26 ▲0.0339.92 ▲4.26

Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking 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,801 ▲4014.40 ▲0.031.63 ▼0.0939.67 ▼2.45
Dashboard /wp-admin2,210 ▲325.66 ▼0.1592.99 ▼7.8644.25 ▲2.04
Posts /wp-admin/edit.php2,112 ▲122.02 ▲0.0439.31 ▼2.1736.85 ▼0.36
Add New Post /wp-admin/post-new.php1,555 ▲2923.31 ▲5.59665.71 ▼13.1554.36 ▼5.43
Media Library /wp-admin/upload.php1,412 ▲94.27 ▲0.02104.73 ▲3.0446.74 ▼3.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-maintenance-mode-by-wpkoder/extend-options/extend-options.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: site maintenance, launch, under construction, maintenance, admin...

easy-maintenance-mode-by-wpkoder/easy-maintenance-mode.php 85% from 13 tests

The main file in "Easy Maintenance Mode" v. 1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("easy-maintenance-mode-by-wpkoder.php" instead of "easy-maintenance-mode.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
No dangerous file extensions were detected151 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP34235151

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin