83% maintenance-countdown

Code Review | Maintenance Countdown

WordPress plugin Maintenance Countdown scored83%from 54 tests.

About plugin

  • Plugin page: maintenance-count...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Oct 21, 2015
  • Latest release: Oct 22, 2015
  • Number of updates: 8
  • Update frequency: every 0.3 days
  • Top authors: Phil Niehus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,156 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.00MB] [CPU: ▼9.26ms] Passed 4 tests

Server-side resources used by Maintenance Countdown
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0046.58 ▲5.54
Dashboard /wp-admin3.31 ▼0.0349.75 ▼19.01
Posts /wp-admin/edit.php3.36 ▲0.0149.72 ▼5.51
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.81 ▼7.57
Media Library /wp-admin/upload.php3.24 ▲0.0134.53 ▼4.95

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Maintenance Countdown
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5914.75 ▲1.592.14 ▼2.2845.60 ▲3.48
Dashboard /wp-admin2,211 ▲435.60 ▲0.0086.10 ▲2.3939.20 ▼5.64
Posts /wp-admin/edit.php2,116 ▲132.02 ▼0.0335.24 ▼7.1535.73 ▲0.51
Add New Post /wp-admin/post-new.php1,558 ▲3223.23 ▲5.55619.31 ▼64.6251.12 ▲2.32
Media Library /wp-admin/upload.php1,416 ▲194.23 ▲0.0298.55 ▼3.2945.28 ▲2.57

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/maintenance-countdown/maintenance-countdown.php
    • > /wp-content/plugins/maintenance-countdown/maintenance-menu.php
    • > /wp-content/plugins/maintenance-countdown/show-maintenance.php

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

readme.txt 81% from 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
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #3 (This is the look of the maintenance countdown page in 'charcoal' design)
  • Contributors: The plugin tags were not defined
  • Contributors: The plugin contributors field is not present
The official readme.txt is a good inspiration

maintenance-countdown/maintenance-countdown.php 92% from 13 tests

The entry point to "Maintenance Countdown" version 1.1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 151 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin906 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1207543616
PHP42113227
CSS141363

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.PNG45.70KB19.14KB▼ 58.12%
screenshot-2.PNG43.62KB22.19KB▼ 49.12%