62% checklist

Code Review | Checklist

WordPress plugin Checklist scored62%from 54 tests.

About plugin

  • Plugin page: checklist
  • Plugin version: 1.1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.2.3
  • WordPress version: 6.3.1
  • First release: Jul 18, 2017
  • Latest release: Sep 11, 2019
  • Number of updates: 56
  • Update frequency: every 14.0 days
  • Top authors: checklistcom (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

600+ active /13,875 total downloads

Benchmarks

Plugin footprint 65% 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.86MB] [CPU: ▼38.48ms] Passed 4 tests

Server-side resources used by Checklist
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1044.41 ▼6.92
Dashboard /wp-admin3.09 ▼0.2223.70 ▼39.19
Posts /wp-admin/edit.php3.09 ▼0.2724.54 ▼28.67
Add New Post /wp-admin/post-new.php3.09 ▼2.8028.68 ▼71.15
Media Library /wp-admin/upload.php3.09 ▼0.1426.96 ▼14.90
Settings /wp-admin/admin.php?page=checklist_settings3.0929.37

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
checklist_settings
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Checklist
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲6714.75 ▲0.611.97 ▲0.1143.54 ▼1.62
Dashboard /wp-admin2,219 ▲485.76 ▲0.2399.42 ▼8.0787.71 ▲42.37
Posts /wp-admin/edit.php2,145 ▲422.31 ▲0.3338.82 ▼3.1337.26 ▲1.07
Add New Post /wp-admin/post-new.php1,555 ▲2223.66 ▲0.66720.48 ▼1.1738.83 ▼19.06
Media Library /wp-admin/upload.php1,436 ▲364.35 ▲0.20100.60 ▼8.8578.71 ▲34.43
Settings /wp-admin/admin.php?page=checklist_settings1,7733.2178.6136.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • db_upgraded
    • checklist_settings
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=checklist_settings
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP 0% 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 take a closer look at the following
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/checklist/images/ic_print_white_24px.php
    • > /wp-content/plugins/checklist/checklist-com.php
    • > /wp-content/plugins/checklist/images/checklist-icon.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined index: fill in wp-content/plugins/checklist/images/ic_print_white_24px.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/checklist/includes/checklist-settings.php:5
    • > PHP Notice
      Undefined index: fill in wp-content/plugins/checklist/images/checklist-icon.php on line 3

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: shortcode, frontend, lists, todo, checklist

checklist/checklist-com.php 85% from 13 tests

The principal PHP file in "Checklist" v. 1.1.9 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("checklist.php" instead of "checklist-com.php")

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 detected763 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP48861492
PO File13537101
JavaScript33382
CSS20347
SVG20041

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity42.00
▷ Minimum class complexity42.00
▷ Maximum class complexity42.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods23
▷ Static methods521.74%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/checklist-icon-16.png1.18KB0.59KB▼ 50.37%
images/checklist-icon-64.png3.36KB1.96KB▼ 41.70%
images/icon-white-16.png0.89KB0.39KB▼ 56.24%
images/icon-white-64.png2.46KB1.43KB▼ 42.13%