83% dd-simplest-maintenance-mode

Code Review | DD Simple Maintenance & Coming Soon Mode - Clean, Easy & 100% Free

WordPress plugin DD Simple Maintenance & Coming Soon Mode - Clean, Easy & 100% Free scored83%from 54 tests.

About plugin

  • Plugin page: dd-simplest-maint...
  • Plugin version: 2.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.9
  • WordPress version: 6.3.1
  • First release: Dec 28, 2019
  • Latest release: Feb 16, 2022
  • Number of updates: 17
  • Update frequency: every 46.1 days
  • Top authors: akshansh1998 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /20,064 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼9.84ms] Passed 4 tests

Server-side resources used by DD Simple Maintenance & Coming Soon Mode - Clean, Easy & 100% Free
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.43 ▼6.55
Dashboard /wp-admin3.31 ▼0.0450.08 ▼18.85
Posts /wp-admin/edit.php3.36 ▲0.0050.08 ▼5.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.67 ▼8.69
Media Library /wp-admin/upload.php3.23 ▲0.0037.59 ▼0.09

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for DD Simple Maintenance & Coming Soon Mode - Clean, Easy & 100% Free
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.28 ▼0.331.94 ▲0.3150.03 ▲6.17
Dashboard /wp-admin2,207 ▲335.65 ▲0.1485.26 ▼4.8142.53 ▲6.13
Posts /wp-admin/edit.php2,113 ▲102.16 ▲0.1441.84 ▼0.1437.49 ▲1.23
Add New Post /wp-admin/post-new.php1,548 ▲1123.22 ▲5.14648.17 ▲24.2457.03 ▼2.60
Media Library /wp-admin/upload.php1,412 ▲124.16 ▼0.0296.05 ▼6.4644.21 ▲1.38

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

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 | 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
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dd-simplest-maintenance-mode/dd-maintenance-mode.php:44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/dd-simplest-maintenance-mode/views/maintenance.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: coming, under construction, dd maintenance mode, wordpress maintenance mode, landing page...

dd-simplest-maintenance-mode/dd-maintenance-mode.php 77% from 13 tests

The main PHP file in "DD Simple Maintenance & Coming Soon Mode - Clean, Easy & 100% Free" ver. 2.6 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dd-simplest-maintenance-mode.php" instead of "dd-maintenance-mode.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.6" instead of "5.2")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 150 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin136 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2343286
CSS114750

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.48
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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