84% url-parameter-shortcode

Code Review | URL Parameter Shortcode

WordPress plugin URL Parameter Shortcode scored 84% from 54 tests.

About plugin

  • Plugin page: url-parameter-sho...
  • Plugin version: 1...
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.0
  • WordPress version: 6.3.1
  • First release: Oct 1, 2014
  • Latest release: Oct 1, 2014
  • Number of updates: 3
  • Update frequency: every 2.3 days
  • Top authors: RedBMedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,755 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.90ms] Passed 4 tests

An overview of server-side resources used by URL Parameter Shortcode
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.14 ▼2.90
Dashboard /wp-admin3.31 ▲0.0139.46 ▼5.81
Posts /wp-admin/edit.php3.36 ▲0.0042.62 ▼0.78
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.01 ▼10.09
Media Library /wp-admin/upload.php3.23 ▲0.0037.27 ▼0.78

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

URL Parameter Shortcode: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.62 ▼0.994.89 ▲3.0638.21 ▼18.36
Dashboard /wp-admin2,206 ▲184.84 ▼1.0498.42 ▼3.5840.67 ▲4.02
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0133.34 ▼1.7633.07 ▼4.90
Add New Post /wp-admin/post-new.php1,538 ▲422.97 ▼0.26579.38 ▼42.6361.26 ▼3.57
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0498.20 ▼2.3343.59 ▼2.14

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/url-parameter-shortcode/parameters-shortcode.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: query, url, parameter, shortcode

url-parameter-shortcode/parameters-shortcode.php 85% from 13 tests

The main PHP file in "URL Parameter Shortcode" ver. 1... adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("url-parameter-shortcode.php" instead of "parameters-shortcode.php")
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "1...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin10 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP110910

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin