83% lrh-shortcode-list

Code Review | LRH-Shortcode List

WordPress plugin LRH-Shortcode List scored83%from 54 tests.

About plugin

  • Plugin page: lrh-shortcode-list
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0+
  • WordPress version: 6.3.1
  • First release: Sep 14, 2013
  • Latest release: Aug 27, 2015
  • Number of updates: 8
  • Update frequency: every 89.0 days
  • Top authors: LRHGuy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,465 total downloads

Benchmarks

Plugin footprint 82% 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.05MB] [CPU: ▲1.53ms] Passed 4 tests

An overview of server-side resources used by LRH-Shortcode List
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.68 ▲1.19
Dashboard /wp-admin3.36 ▲0.0653.36 ▲2.38
Posts /wp-admin/edit.php3.41 ▲0.0555.68 ▲8.45
Add New Post /wp-admin/post-new.php5.96 ▲0.0790.79 ▼2.06
Media Library /wp-admin/upload.php3.28 ▲0.0542.25 ▲4.60
Shortcodes /wp-admin/options-general.php?page=lrh-shortcode-list/lrh_shortcode_manager_options.inc.php3.2834.08

Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Just a few items left to fix
  • Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/lrh-shortcode-list/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for LRH-Shortcode List
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6213.19 ▼1.161.81 ▲0.1943.42 ▼2.21
Dashboard /wp-admin2,229 ▲265.89 ▲1.01107.62 ▼4.3837.13 ▼8.62
Posts /wp-admin/edit.php2,108 ▲82.06 ▲0.0336.91 ▼0.9638.68 ▲1.81
Add New Post /wp-admin/post-new.php1,748 ▲20320.37 ▼2.78663.40 ▼39.3864.30 ▲6.45
Media Library /wp-admin/upload.php1,408 ▲54.23 ▲0.04104.53 ▼2.8144.92 ▼2.63
Shortcodes /wp-admin/options-general.php?page=lrh-shortcode-list/lrh_shortcode_manager_options.inc.php1,0922.0525.3736.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 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 50% from 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 following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/lrh-shortcode-list/lrh_shortcode_manager.inc.php:279
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/lrh-shortcode-list/lrh_shortcode_manager_options.inc.php:129
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lrh-shortcode-list/lrh_shortcode_wpstd.inc.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tested up to: The plugin version is formatted incorrectly
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (The metabox in the Edit Post.), #2 (The shortcodes manager.), #3 (The metabox showing additional information.)
You can look at the official readme.txt

lrh-shortcode-list/lrh_shortcodelist.php 92% from 13 tests

The principal PHP file in "LRH-Shortcode List" v. 1.2.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("lrh-shortcode-list.php" instead of "lrh_shortcodelist.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected457 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP5102210380
CSS191148
JavaScript13429

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.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
PNG images were not found in this plugin