89% wp-screen-help-loader

Code Review | WP Screen Help Loader

WordPress plugin WP Screen Help Loader scored89%from 54 tests.

About plugin

  • Plugin page: wp-screen-help-lo...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.4
  • WordPress version: 6.3.1
  • First release: Jan 3, 2016
  • Latest release: Jan 4, 2016
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: meitar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /666 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Server-side resources used by WP Screen Help Loader
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0245.02 ▲4.46
Dashboard /wp-admin3.32 ▲0.0251.63 ▼3.53
Posts /wp-admin/edit.php3.38 ▲0.0247.14 ▼2.73
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.10 ▼6.36
Media Library /wp-admin/upload.php3.25 ▲0.0235.94 ▼4.30

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Screen Help Loader
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.17 ▼0.191.88 ▼0.1344.68 ▲1.43
Dashboard /wp-admin2,198 ▲215.58 ▼0.0286.34 ▼14.5237.15 ▼9.60
Posts /wp-admin/edit.php2,100 ▼32.03 ▲0.0133.45 ▼5.0632.52 ▼6.09
Add New Post /wp-admin/post-new.php1,526 ▼223.21 ▲2.13668.15 ▼73.0555.49 ▲0.75
Media Library /wp-admin/upload.php1,403 ▲34.24 ▲0.09100.10 ▼0.6842.14 ▼1.53

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
The SRP test was a success

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 on the user side

Optimizations

Plugin configuration 90% 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
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === wp-screen-help-loader === )
You can look at the official readme.txt

wp-screen-help-loader/wp-screen-help-loader.php 85% from 13 tests

The main PHP file in "WP Screen Help Loader" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 477 characters long)
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,174 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33632441,174

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity57.33
▷ Minimum class complexity1.00
▷ Maximum class complexity159.00
Average method complexity4.19
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods53
▷ Static methods35.66%
▷ Public methods1528.30%
▷ Protected methods3667.92%
▷ Private methods23.77%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin