84% simple-draft-list

Code Review | Draft List

WordPress plugin Draft List scored84%from 54 tests.

About plugin

  • Plugin page: simple-draft-list
  • Plugin version: 2.5.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1
  • WordPress version: 6.3.1
  • First release: Feb 28, 2010
  • Latest release: Oct 19, 2023
  • Number of updates: 351
  • Update frequency: every 14.2 days
  • Top authors: dartiss (92.31%)codedart (7.98%)

Code review

54 tests

User reviews

5 reviews

Install metrics

80+ active /8,182 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.11MB] [CPU: ▼7.78ms] Passed 4 tests

An overview of server-side resources used by Draft List
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1042.21 ▼1.39
Dashboard /wp-admin3.42 ▲0.1153.46 ▼2.92
Posts /wp-admin/edit.php3.47 ▲0.1148.74 ▼5.89
Add New Post /wp-admin/post-new.php6.00 ▲0.1189.42 ▼15.24
Media Library /wp-admin/upload.php3.34 ▲0.1139.37 ▼7.05

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_draft_list_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Draft List
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.24 ▼0.361.84 ▼0.5444.86 ▲1.97
Dashboard /wp-admin2,192 ▲185.58 ▼0.0281.87 ▼19.0937.22 ▼7.77
Posts /wp-admin/edit.php2,100 ▲31.94 ▼0.0638.80 ▲2.9933.66 ▼4.83
Add New Post /wp-admin/post-new.php6,222 ▲4,69418.91 ▼4.52959.23 ▲297.5454.35 ▼9.69
Media Library /wp-admin/upload.php1,394 ▼34.16 ▼0.0396.31 ▼8.6243.83 ▼6.90

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_draft_list_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 fix the following
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-draft-list/simple-draft-list.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-draft-list/inc/setup.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-draft-list/inc/metabox.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-draft-list/inc/create-lists.php:49
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-draft-list/inc/class-draftlistwidget.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: seo, draft, widget, scheduled, list

simple-draft-list/simple-draft-list.php 92% from 13 tests

The main PHP script in "Draft List" version 2.5.2 is automatically included on every request by WordPress
It is important to fix the following:
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("7.4" instead of "5.3")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected533 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5127237533

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin