83% launch-check

Code Review | Launch Check

WordPress plugin Launch Check scored 83% from 54 tests.

About plugin

  • Plugin page: launch-check
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.1.1
  • WordPress version: 6.3.1
  • First release: Feb 13, 2014
  • Latest release: Mar 15, 2015
  • Number of updates: 15
  • Update frequency: every 26.5 days
  • Top authors: cwhitmore (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,735 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.39ms] Passed 4 tests

Analyzing server-side resources used by Launch Check
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.32 ▲2.63
Dashboard /wp-admin3.31 ▲0.0144.88 ▼4.86
Posts /wp-admin/edit.php3.36 ▲0.0146.07 ▼1.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.07 ▼14.21
Media Library /wp-admin/upload.php3.23 ▲0.0137.43 ▲3.28

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Launch Check
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲6913.30 ▼1.082.00 ▲0.1643.16 ▲0.24
Dashboard /wp-admin2,235 ▲444.85 ▼0.2395.39 ▼4.3940.25 ▼1.58
Posts /wp-admin/edit.php2,115 ▲262.14 ▲0.1439.62 ▼0.9135.93 ▲1.14
Add New Post /wp-admin/post-new.php1,608 ▲7222.80 ▼0.37654.43 ▲0.7441.07 ▼9.66
Media Library /wp-admin/upload.php1,414 ▲264.17 ▼0.04103.15 ▼8.4943.43 ▼2.26

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/launch-check/mdg-launch-check.php:78

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === launch-check === )
Please take inspiration from this readme.txt

launch-check/mdg-launch-check.php 85% from 13 tests

Analyzing the main PHP file in "Launch Check" version 1.2.0
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 172 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("launch-check.php" instead of "mdg-launch-check.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected117 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP153102113
Markdown1204

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin