83% jquery-cookie-url-fix

Code Review | jQuery Cookie Url Fix

WordPress plugin jQuery Cookie Url Fix scored83%from 54 tests.

About plugin

  • Plugin page: jquery-cookie-url...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-3.6.1
  • WordPress version: 6.3.1
  • First release: Oct 14, 2013
  • Latest release: Oct 14, 2013
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: rutkoski (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,320 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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by jQuery Cookie Url Fix
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.37 ▼1.47
Dashboard /wp-admin3.31 ▲0.0155.38 ▼2.87
Posts /wp-admin/edit.php3.36 ▲0.0051.23 ▼0.22
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.40 ▲0.16
Media Library /wp-admin/upload.php3.23 ▲0.0037.73 ▲1.19

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for jQuery Cookie Url Fix
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.61 ▲0.241.89 ▲0.0845.34 ▲0.85
Dashboard /wp-admin2,198 ▲215.55 ▼0.1590.08 ▼13.2637.38 ▼3.66
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0334.34 ▼7.0237.49 ▲1.81
Add New Post /wp-admin/post-new.php1,531 ▲523.29 ▲5.86704.73 ▲20.0454.59 ▲5.68
Media Library /wp-admin/upload.php1,400 ▲34.19 ▼0.0096.71 ▼5.2448.69 ▲2.35

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jquery-cookie-url-fix/jquery_cookie_url_fix.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid url: ""
The official readme.txt might help

jquery-cookie-url-fix/jquery_cookie_url_fix.php 85% from 13 tests

Analyzing the main PHP file in "jQuery Cookie Url Fix" version 0.1
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("jquery-cookie-url-fix.php" instead of "jquery_cookie_url_fix.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 182 characters long)

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 plugin7 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12146
JavaScript1091

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems 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
There were not PNG files found in your plugin