94% shortcode-lister

Code Review | Shortcode Lister

WordPress plugin Shortcode Lister scored 94% from 54 tests.

About plugin

  • Plugin page: shortcode-lister
  • Plugin version: 2.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7.0-5.8.1
  • WordPress version: 5.8.1
  • First release: Dec 4, 2013
  • Latest release: Oct 14, 2021
  • Number of updates: 36
  • Update frequency: every 79.8 days
  • Top authors: scott.deluzio (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active / 5,413 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼140.12ms] Passed 4 tests

A check of server-side resources used by Shortcode Lister
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1241.90 ▲17.60
Dashboard /wp-admin3.09 ▲0.0353.12 ▲2.41
Posts /wp-admin/edit.php3.14 ▲0.0352.76 ▲0.29
Add New Post /wp-admin/post-new.php5.45 ▲0.02100.80 ▼554.18
Media Library /wp-admin/upload.php3.03 ▲0.0236.08 ▼9.00
Shortcode Lister /wp-admin/options-general.php?page=shortcode-lister-settings3.0031.58

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Shortcode Lister
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,721 ▲14915.76 ▲0.3111.49 ▲2.5346.30 ▼6.24
Dashboard /wp-admin2,975 ▲445.89 ▼0.03140.50 ▼4.06120.52 ▼4.92
Posts /wp-admin/edit.php2,747 ▲82.69 ▲0.0167.49 ▼0.6991.99 ▲0.83
Add New Post /wp-admin/post-new.php1,586 ▼520.79 ▲1.97394.09 ▲9.68111.12 ▼7.16
Media Library /wp-admin/upload.php1,815 ▲85.01 ▼0.01170.46 ▲8.23120.55 ▼5.08
Shortcode Lister /wp-admin/options-general.php?page=shortcode-lister-settings1,1842.3657.0179.56

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/shortcode-lister/includes/get-shortcodes.php
    • > /wp-content/plugins/shortcode-lister/includes/scripts-styles.php
    • > /wp-content/plugins/shortcode-lister/includes/shortcode-lister-settings.php
    • > /wp-content/plugins/shortcode-lister/shortcode-lister.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: shortcode, list, plugin

shortcode-lister/shortcode-lister.php Passed 13 tests

"Shortcode Lister" version 2.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
101 characters long description:
A plugin to display a list of all the shortcodes available for use on the post and page edit screens.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin148 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP52499138
JavaScript11710

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
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