83% pre-publish-checklist

Code Review | Pre-Publish Checklist

WordPress plugin Pre-Publish Checklist scored83%from 54 tests.

About plugin

  • Plugin page: pre-publish-check...
  • Plugin version: 1.1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Sep 25, 2019
  • Latest release: Oct 12, 2023
  • Number of updates: 23
  • Update frequency: every 64.3 days
  • Top authors: brainstormworg (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

1,000+ active /20,244 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.15MB] [CPU: ▼4.04ms] Passed 4 tests

Analyzing server-side resources used by Pre-Publish Checklist
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1439.07 ▼7.88
Dashboard /wp-admin3.45 ▲0.1445.07 ▼0.49
Posts /wp-admin/edit.php3.56 ▲0.2146.16 ▼3.60
Add New Post /wp-admin/post-new.php6.05 ▲0.1685.11 ▼4.17
Media Library /wp-admin/upload.php3.37 ▲0.1433.65 ▲0.21
Pre-Publish Checklist /wp-admin/options-general.php?page=ppc3.3930.96

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
_ppc_db_version
theysaidso_admin_options
ppc_cpt_checklist_data
db_upgraded
widget_theysaidso_widget
widget_recent-comments
ppc_post_types_to_display
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Pre-Publish Checklist
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.33 ▼0.022.15 ▲0.2643.86 ▼9.12
Dashboard /wp-admin2,199 ▲225.62 ▲0.0992.39 ▲6.2840.59 ▲2.32
Posts /wp-admin/edit.php2,210 ▲1072.16 ▲0.1342.52 ▲5.2335.38 ▲3.25
Add New Post /wp-admin/post-new.php6,346 ▲4,82026.30 ▲2.77889.46 ▲262.7053.74 ▲2.30
Media Library /wp-admin/upload.php1,407 ▲104.19 ▼0.0096.43 ▲0.7840.97 ▲1.00
Pre-Publish Checklist /wp-admin/options-general.php?page=ppc8952.0321.2626.57

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 9 options
    • _ppc_db_version
    • ppc_cpt_checklist_data
    • ppc_post_types_to_display
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pre-publish-checklist/pre-publish-checklist.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pre-publish-checklist/classes/class-ppc-pagesetups.php:55
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/pre-publish-checklist/classes/class-ppc-loader.php:49

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes: The official readme.txt might help

pre-publish-checklist/pre-publish-checklist.php 85% from 13 tests

The entry point to "Pre-Publish Checklist" version 1.1.3 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 154 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin1,724 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP891347798
CSS1820477
JavaScript22010413
XML121336

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity33.00
▷ Minimum class complexity8.00
▷ Maximum class complexity53.00
Average method complexity3.82
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods34
▷ Static methods38.82%
▷ Public methods3294.12%
▷ Protected methods00.00%
▷ Private methods25.88%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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