90% dead-simple-maintenance-mode

Code Review | Dead Simple Maintenance Mode

WordPress plugin Dead Simple Maintenance Mode scored90%from 54 tests.

About plugin

  • Plugin page: dead-simple-maint...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 27, 2022
  • Latest release: Dec 14, 2022
  • Number of updates: 5
  • Update frequency: every 3.8 days
  • Top authors: alvindcaesar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /568 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.03MB] [CPU: ▼9.75ms] Passed 4 tests

This is a short check of server-side resources used by Dead Simple Maintenance Mode
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.80 ▼5.53
Dashboard /wp-admin3.34 ▲0.0345.81 ▼3.08
Posts /wp-admin/edit.php3.39 ▲0.0347.42 ▼5.45
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.13 ▼24.92
Media Library /wp-admin/upload.php3.26 ▲0.0334.56 ▲1.32
Dead Simple Maintenance Mode /wp-admin/tools.php?page=dsmm-settings3.2333.30

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Dead Simple Maintenance Mode
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.25 ▼0.281.81 ▲0.2138.36 ▼0.94
Dashboard /wp-admin2,202 ▲255.62 ▼0.0391.23 ▲4.5836.40 ▼5.93
Posts /wp-admin/edit.php2,104 ▲41.95 ▼0.0336.68 ▼4.0832.09 ▼6.69
Add New Post /wp-admin/post-new.php1,529 ▲123.25 ▼0.00645.54 ▼3.7760.72 ▲8.80
Media Library /wp-admin/upload.php1,404 ▲74.31 ▲0.1595.40 ▼10.7342.46 ▼3.85
Dead Simple Maintenance Mode /wp-admin/tools.php?page=dsmm-settings8171.9927.3124.16

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: coming- oon mode, maintenance mode, developmet mode

dead-simple-maintenance-mode/dead-simple-maintenance-mode.php 92% from 13 tests

The main PHP file in "Dead Simple Maintenance Mode" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
There were no executable files found in this plugin132 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22812132

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.22
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods777.78%
▷ Protected methods00.00%
▷ Private methods222.22%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin