80% shortcodes-in-use

Code Review | Shortcodes In Use

WordPress plugin Shortcodes In Use scored80%from 54 tests.

About plugin

  • Plugin page: shortcodes-in-use
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.4
  • WordPress version: 6.3.1
  • First release: Nov 16, 2014
  • Latest release: Jan 26, 2016
  • Number of updates: 20
  • Update frequency: every 25.1 days
  • Top authors: wizzud (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

100+ active /4,532 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.15MB] [CPU: ▼7.28ms] Passed 4 tests

Server-side resources used by Shortcodes In Use
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1641.35 ▼2.84
Dashboard /wp-admin3.47 ▲0.1248.26 ▼13.73
Posts /wp-admin/edit.php3.59 ▲0.2343.39 ▼2.47
Add New Post /wp-admin/post-new.php6.05 ▲0.1680.51 ▼10.06
Media Library /wp-admin/upload.php3.39 ▲0.1636.35 ▲4.34
Shortcodes In Use /wp-admin/tools.php?page=shortcodes-in-use3.3840.18

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Shortcodes In Use: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▼0.231.69 ▼0.1447.08 ▲3.72
Dashboard /wp-admin2,202 ▲255.63 ▲0.1085.98 ▼16.1037.96 ▼8.65
Posts /wp-admin/edit.php2,104 ▲71.99 ▼0.0332.58 ▼4.2935.76 ▲0.51
Add New Post /wp-admin/post-new.php1,534 ▲623.22 ▲0.40656.44 ▼3.3864.08 ▲8.72
Media Library /wp-admin/upload.php1,401 ▲74.20 ▲0.02105.07 ▲0.4746.70 ▲1.40
Shortcodes In Use /wp-admin/tools.php?page=shortcodes-in-use1,0442.0628.7228.65

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/shortcodes-in-use/shortcodes-in-use.php+144
    Use of undefined constant WP_UNINSTALL_PLUGIN - assumed 'WP_UNINSTALL_PLUGIN' (this will throw an Error in a future version of PHP)
  • Zombie WordPress options were found after 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)
Even though everything seems fine, this is not an exhaustive test

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

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)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
Please take inspiration from this readme.txt

shortcodes-in-use/shortcodes-in-use.php Passed 13 tests

The primary PHP file in "Shortcodes In Use" version 1.2.1 is used by WordPress to initiate all plugin functionality
63 characters long description:
List or search for all/any shortcodes that are currently in use

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 detected1,133 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1154250895
CSS101174
JavaScript101164

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.65
Average class complexity209.00
▷ Minimum class complexity209.00
▷ Maximum class complexity209.00
Average method complexity9.32
▷ Minimum method complexity1.00
▷ Maximum method complexity71.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods25
▷ Static methods312.00%
▷ Public methods1352.00%
▷ Protected methods00.00%
▷ Private methods1248.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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