78% launch-checklist

Code Review | Launch Checklist

WordPress plugin Launch Checklist scored78%from 54 tests.

About plugin

  • Plugin page: launch-checklist
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Mar 25, 2022
  • Latest release: May 30, 2022
  • Number of updates: 4
  • Update frequency: every 16.5 days
  • Top authors: Kanopi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /4,939 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.42MB] [CPU: ▲2.51ms] Passed 4 tests

A check of server-side resources used by Launch Checklist
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2446.97 ▲8.61
Dashboard /wp-admin3.84 ▲0.4960.15 ▼1.47
Posts /wp-admin/edit.php3.89 ▲0.5353.99 ▲3.84
Add New Post /wp-admin/post-new.php6.38 ▲0.4996.24 ▼0.95
Media Library /wp-admin/upload.php3.70 ▲0.4744.35 ▲8.67
Launch Checklist /wp-admin/admin.php?page=wp_launch_checklist3.8151.04
Settings /wp-admin/admin.php?page=wp_launch_checklist_settings3.6738.13

Server storage [IO: ▲0.11MB] [DB: ▲0.03MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Launch Checklist
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲6814.38 ▲0.102.14 ▲0.2844.83 ▼4.45
Dashboard /wp-admin2,227 ▲505.68 ▲0.0891.83 ▲0.3937.06 ▼2.71
Posts /wp-admin/edit.php2,129 ▲262.04 ▲0.0239.41 ▼3.3731.94 ▼6.34
Add New Post /wp-admin/post-new.php1,550 ▲517.68 ▼5.43680.04 ▼19.9052.16 ▼15.05
Media Library /wp-admin/upload.php1,426 ▲264.22 ▲0.02103.93 ▼2.8844.49 ▼3.62
Launch Checklist /wp-admin/admin.php?page=wp_launch_checklist2,7661.7227.7936.72
Settings /wp-admin/admin.php?page=wp_launch_checklist_settings8332.0826.1730.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% 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 everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/launch-checklist/admin/partials/checklist-items/settings-sections.php
  • 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/launch-checklist/admin/partials/checklist-items/settings-sections.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/launch-checklist/admin/partials/checklist-settings/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WpLaunchChecklist\\Launch_Checklist\\esc_attr() in wp-content/plugins/launch-checklist/admin/partials/checklist-items/settings-section.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/launch-checklist/admin/partials/checklist-items/layout.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/launch-checklist/config/checklist_items.php:8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/launch-checklist/admin/partials/checklist-items/settings-sections.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WpLaunchChecklist\\Launch_Checklist\\esc_attr() in wp-content/plugins/launch-checklist/admin/partials/form-fields/select.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WpLaunchChecklist\\Launch_Checklist\\esc_attr() in wp-content/plugins/launch-checklist/admin/partials/form-fields/checkbox-checklist-items.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WpLaunchChecklist\\Launch_Checklist\\esc_attr() in wp-content/plugins/launch-checklist/admin/partials/form-fields/text.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WpLaunchChecklist\\Launch_Checklist\\esc_attr() in wp-content/plugins/launch-checklist/admin/partials/form-fields/checkbox.php:4

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
3 plugin tags: checklist, launch, pre-launch

launch-checklist/wp-launch-checklist.php 85% from 13 tests

"Launch Checklist" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("launch-checklist.php" instead of "wp-launch-checklist.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,920 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
PHP354459821,657
YAML17062
CSS113554
XML241247
JSON20035
Markdown19035
JavaScript1122730

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity9.13
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods84
▷ Static methods1517.86%
▷ Public methods7386.90%
▷ Protected methods44.76%
▷ Private methods78.33%
Functions17
▷ Named functions1588.24%
▷ Anonymous functions211.76%
Constants5
▷ Global constants5100.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
No PNG images were found in this plugin