79% your-shortcodes

Code Review | Your Shortcodes List

WordPress plugin Your Shortcodes List scored79%from 54 tests.

About plugin

  • Plugin page: your-shortcodes
  • Plugin version: 1.5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.3-4.4
  • WordPress version: 6.3.1
  • First release: Jul 30, 2015
  • Latest release: Dec 22, 2015
  • Number of updates: 7
  • Update frequency: every 20.7 days
  • Top authors: sujin2f (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /573 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: ▼0.89ms] Passed 4 tests

This is a short check of server-side resources used by Your Shortcodes List
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.33 ▼4.58
Dashboard /wp-admin3.32 ▲0.0244.97 ▼5.05
Posts /wp-admin/edit.php3.44 ▲0.0848.25 ▲2.91
Add New Post /wp-admin/post-new.php5.92 ▲0.0489.26 ▲4.78
Media Library /wp-admin/upload.php3.25 ▲0.0233.12 ▲3.18
Your Shortcodes /wp-admin/options-general.php?page=your-shortcodes3.2430.69

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

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

Browser metrics Passed 4 tests

Your Shortcodes List: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9813.65 ▼1.031.80 ▼0.2441.96 ▼5.52
Dashboard /wp-admin2,214 ▲294.84 ▼0.21109.86 ▲6.9441.37 ▼0.98
Posts /wp-admin/edit.php2,094 ▲52.02 ▲0.0240.12 ▲3.8334.59 ▼1.07
Add New Post /wp-admin/post-new.php1,524 ▼923.37 ▼0.05594.45 ▼6.4750.35 ▲2.91
Media Library /wp-admin/upload.php1,396 ▲84.18 ▼0.1394.74 ▼5.5542.08 ▼1.62
Your Shortcodes /wp-admin/options-general.php?page=your-shortcodes1,4031.7929.8230.43

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=your-shortcodes
    • > POST request to /?shortcode_finder=shortcode_finder
    • > Notice in wp-content/plugins/your-shortcodes/classes/shortcode_info.php+31
    Undefined offset: 1
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=your-shortcodes
    • > POST request to /?shortcode_finder=shortcode_finder
    • > Warning in wp-content/plugins/your-shortcodes/classes/shortcode_info.php+80
    strpos(): Empty needle

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
  • 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: key in wp-content/plugins/your-shortcodes/views/admin.information.php on line 3
    • > PHP Notice
      Undefined variable: key in wp-content/plugins/your-shortcodes/views/admin.information.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_shortcode() in wp-content/plugins/your-shortcodes/views/admin.information.php:25
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/your-shortcodes/views/admin.information.php on line 19
    • > PHP Notice
      Undefined variable: shortcode in wp-content/plugins/your-shortcodes/views/admin.information.php on line 8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/your-shortcodes/views/admin.information.php on line 4
    • > PHP Notice
      Undefined variable: key in wp-content/plugins/your-shortcodes/views/admin.information.php on line 1
    • > PHP Notice
      Undefined variable: shortcode in wp-content/plugins/your-shortcodes/views/admin.information.php on line 19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/your-shortcodes/views/admin_page.php:12
    • > PHP Notice
      Undefined variable: shortcode in wp-content/plugins/your-shortcodes/views/admin.information.php on line 4

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, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: shortcode

your-shortcodes/your-shortcodes.php Passed 13 tests

"Your Shortcodes List" version 1.5.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
54 characters long description:
Find all shortcodes which you can use on your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin846 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP7226109773
LESS19048
JavaScript25024
CSS1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity41.75
▷ Minimum class complexity6.00
▷ Maximum class complexity125.00
Average method complexity5.30
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods38
▷ Static methods513.16%
▷ Public methods2668.42%
▷ Protected methods00.00%
▷ Private methods1231.58%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants11
▷ Global constants1090.91%
▷ Class constants19.09%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin