90% wp-plugin-helper

Code Review | WP Plugin Helper

WordPress plugin WP Plugin Helper scored 90% from 54 tests.

About plugin

  • Plugin page: wp-plugin-helper
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.0-4.9.8
  • WordPress version: 5.9.2
  • First release: Jun 23, 2018
  • Latest release: Aug 3, 2018
  • Number of updates: 15
  • Update frequency: every 2.7 days
  • Top authors: grrega (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 525 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼295.89ms] Passed 4 tests

Analyzing server-side resources used by WP Plugin Helper
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0157.68 ▲3.19
Dashboard /wp-admin3.46 ▲0.0632.83 ▼0.47
Posts /wp-admin/edit.php3.69 ▲0.0538.52 ▼0.39
Add New Post /wp-admin/post-new.php6.93 ▼0.0494.61 ▼1,183.58
Media Library /wp-admin/upload.php3.35 ▲0.0524.97 ▲0.89

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 2 new options
New WordPress options
wplhe_version
wplhe_plugin_notes

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Plugin Helper
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,785 ▲3116.01 ▲0.375.80 ▲0.022.45 ▲0.24
Dashboard /wp-admin2,897 ▲396.13 ▼0.19114.70 ▼21.04152.49 ▼3.38
Posts /wp-admin/edit.php2,687 ▼43.23 ▼0.0268.00 ▲6.74150.01 ▲6.13
Add New Post /wp-admin/post-new.php1,775 ▲8521.23 ▲0.76440.46 ▲22.98152.93 ▼4.26
Media Library /wp-admin/upload.php1,694 ▼15.54 ▲0.04148.87 ▼2.42187.66 ▼0.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 2 options in the database
    • wplhe_plugin_notes
    • wplhe_version

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
The official readme.txt might help

wp-plugin-helper/wp-plugin-helper.php Passed 13 tests

The entry point to "WP Plugin Helper" version 1.1.1 is a PHP file that has certain tags in its header comment area
97 characters long description:
Add notes to plugins on the plugin page and display WordPress, WooCommerce and PHP compatibility.

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
There were no executable files found in this plugin873 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP773202385
CSS1300260
JavaScript1122124
PO File13334104

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity21.00
▷ Minimum class complexity1.00
▷ Maximum class complexity79.00
Average method complexity4.48
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods23
▷ Static methods14.35%
▷ Public methods1982.61%
▷ Protected methods00.00%
▷ Private methods417.39%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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