84% wordpress-shortcode-library

Code Review | WordPress Shortcode Library from One Dollar Plugin

WordPress plugin WordPress Shortcode Library from One Dollar Plugin scored84%from 54 tests.

About plugin

  • Plugin page: wordpress-shortco...
  • Plugin version: 2.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.6
  • WordPress version: 6.3.1
  • First release: Dec 3, 2011
  • Latest release: Dec 7, 2020
  • Number of updates: 26
  • Update frequency: every 126.6 days
  • Top authors: paultgoodchild (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,405 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.28ms] Passed 4 tests

A check of server-side resources used by WordPress Shortcode Library from One Dollar Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.83 ▼0.25
Dashboard /wp-admin3.31 ▲0.0142.14 ▼5.85
Posts /wp-admin/edit.php3.37 ▲0.0139.79 ▼2.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.14 ▼4.48
Media Library /wp-admin/upload.php3.23 ▲0.0035.96 ▲2.65

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: 17 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WordPress Shortcode Library from One Dollar Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.66 ▼0.691.73 ▼0.0845.40 ▼1.78
Dashboard /wp-admin2,209 ▲214.87 ▲0.01105.79 ▼4.3642.49 ▲0.25
Posts /wp-admin/edit.php2,089 ▲32.01 ▲0.0338.93 ▲3.1534.76 ▲1.99
Add New Post /wp-admin/post-new.php1,533 ▲1923.51 ▲5.77653.11 ▼29.6058.35 ▲3.86
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.03103.15 ▲6.5340.75 ▼5.80

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function FernleafSystems\\Wordpress\\Plugin\\ShortcodeLibrary\\Launch\\add_action() in wp-content/plugins/wordpress-shortcode-library/lib/src/Launch/ShortcodeLauncher.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'FernleafSystems\\Wordpress\\Plugin\\ShortcodeLibrary\\Shortcodes\\BaseShortcode' not found in wp-content/plugins/wordpress-shortcode-library/lib/src/Shortcodes/CloudflareStream.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'FernleafSystems\\Wordpress\\Plugin\\ShortcodeLibrary\\Shortcodes\\HtmlElement' not found in wp-content/plugins/wordpress-shortcode-library/lib/src/Shortcodes/NoShortcode.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'FernleafSystems\\Wordpress\\Plugin\\ShortcodeLibrary\\Shortcodes\\BaseShortcode' not found in wp-content/plugins/wordpress-shortcode-library/lib/src/Shortcodes/HtmlElement.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'FernleafSystems\\Wordpress\\Plugin\\ShortcodeLibrary\\Shortcodes\\HtmlElement' not found in wp-content/plugins/wordpress-shortcode-library/lib/src/Shortcodes/HtmlDiv.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'FernleafSystems\\Wordpress\\Plugin\\ShortcodeLibrary\\Shortcodes\\HtmlElement' not found in wp-content/plugins/wordpress-shortcode-library/lib/src/Shortcodes/SiteName.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: cloudflare stream, wordpress, shortcodes, library

wordpress-shortcode-library/plugin.php 92% from 13 tests

This is the main PHP file of "WordPress Shortcode Library from One Dollar Plugin" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wordpress-shortcode-library.php" instead of "plugin.php")

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
Everything looks great! No dangerous files found in this plugin575 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP15127210541
JSON10034

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity7.80
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes10
▷ Abstract classes110.00%
▷ Concrete classes990.00%
▷ Final classes00.00%
Methods44
▷ Static methods36.82%
▷ Public methods2659.09%
▷ Protected methods1534.09%
▷ Private methods36.82%
Functions4
▷ Named functions125.00%
▷ Anonymous functions375.00%
Constants6
▷ Global constants00.00%
▷ Class constants6100.00%
▷ Public constants6100.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