83% url-params

Code Review | URL Params

WordPress plugin URL Params scored83%from 54 tests.

About plugin

  • Plugin page: url-params
  • Plugin version: 2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 26, 2011
  • Latest release: Apr 20, 2023
  • Number of updates: 25
  • Update frequency: every 172.7 days
  • Top authors: jeremyshapiro (100%)

Code review

54 tests

User reviews

33 reviews

Install metrics

10,000+ active /82,521 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

A check of server-side resources used by URL Params
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.38 ▼4.39
Dashboard /wp-admin3.34 ▲0.0349.76 ▼4.66
Posts /wp-admin/edit.php3.39 ▲0.0349.25 ▼3.51
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.27 ▼15.71
Media Library /wp-admin/upload.php3.26 ▲0.0341.50 ▲4.65
URL Params /wp-admin/options-general.php?page=urlparams3.2334.86

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for URL Params
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.31 ▼0.041.78 ▲0.1744.52 ▲3.58
Dashboard /wp-admin2,202 ▲255.61 ▲0.0897.37 ▲4.6744.65 ▼1.28
Posts /wp-admin/edit.php2,104 ▲12.00 ▲0.0135.55 ▼4.8935.56 ▼0.47
Add New Post /wp-admin/post-new.php1,529 ▼223.08 ▲0.24675.83 ▲42.8057.75 ▼10.25
Media Library /wp-admin/upload.php1,398 ▼24.23 ▲0.0599.65 ▲0.3743.42 ▼0.31
URL Params /wp-admin/options-general.php?page=urlparams8441.9624.7131.17

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/url-params/urlparams.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/url-params/options.php:2

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === url-params === )
  • Tags: You are using too many tags: 12 tag instead of maximum 10
Please take inspiration from this readme.txt

url-params/urlparams.php 92% from 13 tests

The main PHP script in "URL Params" version 2.5 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("url-params.php" instead of "urlparams.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin199 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26039199

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
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%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin