10% maintenance-checklist

Code Review | Maintenance Checklist

WordPress plugin Maintenance Checklist scored 10% from 54 tests.

About plugin

  • Plugin page: maintenance-check...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4
  • WordPress version: 5.8.1
  • First release: Jun 26, 2012
  • Latest release: Jun 26, 2012
  • Number of updates: 17
  • Update frequency: N/A
  • Top authors: ehoanshelt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,021 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/maintenance-checklist/includes/screen-meta-links.php+16
    Methods with the same name as their class will not be constructors in a future version of PHP; wsScreenMetaLinks10 has a deprecated constructor

Server metrics [RAM: ▼1.81MB] [CPU: ▼190.15ms] Passed 4 tests

Server-side resources used by Maintenance Checklist
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.83 ▼1.016.13 ▼30.70
Dashboard /wp-admin1.85 ▼1.216.15 ▼41.27
Posts /wp-admin/edit.php1.85 ▼1.268.81 ▼35.61
Add New Post /wp-admin/post-new.php1.85 ▼3.597.91 ▼651.98
Media Library /wp-admin/upload.php1.85 ▼1.165.19 ▼31.73
Maintenance Checklist /wp-admin/options-general.php?page=maintenance-checklist1.855.47

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options
wpv_maintenance_tracking

Browser metrics Passed 4 tests

A check of browser resources used by Maintenance Checklist
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,747 ▲15116.09 ▲0.867.32 ▼0.5252.85 ▲0.04
Dashboard /wp-admin2,998 ▲675.96 ▼0.10157.34 ▲0.25121.65 ▲4.93
Posts /wp-admin/edit.php2,782 ▲432.58 ▼0.1365.12 ▼9.03104.75 ▲1.43
Add New Post /wp-admin/post-new.php1,642 ▼4121.02 ▲2.24278.80 ▼118.64114.49 ▼1.43
Media Library /wp-admin/upload.php1,787 ▼205.02 ▼0.00157.38 ▼15.57135.19 ▲9.56
Maintenance Checklist /wp-admin/options-general.php?page=maintenance-checklist1,2072.1162.1585.90

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/maintenance-checklist/includes/screen-meta-links.php+16
    Methods with the same name as their class will not be constructors in a future version of PHP; wsScreenMetaLinks10 has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • wpv_maintenance_tracking

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=maintenance-checklist
    • > Deprecated in wp-content/plugins/maintenance-checklist/includes/screen-meta-links.php+16
    Methods with the same name as their class will not be constructors in a future version of PHP; wsScreenMetaLinks10 has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=maintenance-checklist
    • > User deprecated in wp-includes/functions.php+5411
    class-json.php is deprecated since version 5.3.0 with no alternative available. The PHP native JSON extension is now a requirement.
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=maintenance-checklist
    • > Notice in wp-content/plugins/maintenance-checklist/index.php+77
    Array to string conversion
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=maintenance-checklist
    • > Notice in wp-content/plugins/maintenance-checklist/includes/functions.php+26
    Undefined variable: wpv_check_if_false_exist
    • > GET request to /wp-admin/options-general.php?page=maintenance-checklist
    • > Notice in wp-content/plugins/maintenance-checklist/index.php+84
    Undefined variable: wpv_maintenance_message
    • > GET request to /wp-admin/options-general.php?page=maintenance-checklist
    • > User deprecated in wp-includes/functions.php+5221
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=maintenance-checklist
    • > User deprecated in wp-includes/functions.php+5221
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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 take a closer look at the following
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/maintenance-checklist/includes/screen-meta-links.php on line 13
    • > PHP Warning
      require(ABSPATHWPINC/class-json.php): failed to open stream: No such file or directory in wp-content/plugins/maintenance-checklist/includes/screen-meta-links.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/maintenance-checklist/includes/admin_dashboard.php:2
    • > PHP Fatal error
      require(): Failed opening required 'ABSPATHWPINC/class-json.php' (include_path='.:/usr/share/php') in wp-content/plugins/maintenance-checklist/includes/screen-meta-links.php on line 13
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/maintenance-checklist/includes/screen-meta-links.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/maintenance-checklist/includes/admin_dashboard.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === maintenance-checklist === )
  • Screenshots: Add an image for screenshot #1 (This is the location of the maintenance checklist on your dashboard)
Please take inspiration from this readme.txt

maintenance-checklist/index.php 85% from 13 tests

The main file in "Maintenance Checklist" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("maintenance-checklist.php" instead of "index.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 231 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected374 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP485100364
CSS12010

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin