10% jquery-ui-widgets

Code Review | jQuery UI Widgets

WordPress plugin jQuery UI Widgets scored10%from 54 tests.

About plugin

  • Plugin page: jquery-ui-widgets
  • Plugin version: 0.60
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.8
  • WordPress version: 6.3.1
  • First release: Jun 7, 2012
  • Latest release: Sep 13, 2017
  • Number of updates: 52
  • Update frequency: every 48.0 days
  • Top authors: dgwyer (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

3,000+ active /105,133 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/jquery-ui-widgets/jquery-ui-widgets.php+78
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.12MB] [CPU: ▼7.03ms] Passed 4 tests

This is a short check of server-side resources used by jQuery UI Widgets
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1749.12 ▲2.51
Dashboard /wp-admin3.44 ▲0.0955.45 ▼12.86
Posts /wp-admin/edit.php3.49 ▲0.1358.43 ▲8.05
Add New Post /wp-admin/post-new.php6.02 ▲0.13104.23 ▼16.08
Media Library /wp-admin/upload.php3.36 ▲0.1339.68 ▼1.67
jQuery UI Widgets /wp-admin/options-general.php?page=jquery-ui-widgets/jquery-ui-widgets.php3.3335.42

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
jquiw_options

Browser metrics Passed 4 tests

jQuery UI Widgets: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,031 ▲27014.35 ▼0.2722.75 ▲21.0144.50 ▲0.85
Dashboard /wp-admin2,199 ▲225.54 ▼0.0288.64 ▼12.4537.68 ▼5.90
Posts /wp-admin/edit.php2,107 ▲72.02 ▲0.0338.58 ▲1.6538.00 ▲3.74
Add New Post /wp-admin/post-new.php1,552 ▲2623.53 ▲5.97656.89 ▼49.3960.98 ▼0.30
Media Library /wp-admin/upload.php1,407 ▲74.20 ▼0.0197.77 ▼16.9046.83 ▼2.54
jQuery UI Widgets /wp-admin/options-general.php?page=jquery-ui-widgets/jquery-ui-widgets.php1,4972.1428.2960.99

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% 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 | 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
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/jquery-ui-widgets/jquery-ui-widgets.php:30
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/jquery-ui-widgets/jquery-ui-widgets.php on line 30

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=jquery-ui-widgets/jquery-ui-widgets.php
    • > Network (severe)
    wp-content/plugins/wp-content-filter/images/wpgo_plugins_logo.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=jquery-ui-widgets/jquery-ui-widgets.php
    • > Network (severe)
    wp-content/plugins/wp-content-filter/images/twitter.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=jquery-ui-widgets/jquery-ui-widgets.php
    • > Network (severe)
    wp-content/plugins/wp-content-filter/images/facebook.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=jquery-ui-widgets/jquery-ui-widgets.php
    • > Network (severe)
    wp-content/plugins/wp-content-filter/images/yt.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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 need to be fixed:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
The official readme.txt is a good inspiration

jquery-ui-widgets/jquery-ui-widgets.php Passed 13 tests

The main PHP script in "jQuery UI Widgets" version 0.60 is automatically included on every request by WordPress
76 characters long description:
Simple, clean, and flexible way to add jQuery UI widgets to your site pages.

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
Good job! No executable or dangerous file extensions detected3,219 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS27083262,660
PHP16073559

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/wpgo_plugins_logo.png7.61KB3.85KB▼ 49.41%
images/info.png0.52KB0.46KB▼ 10.55%
images/facebook.png1.89KB1.10KB▼ 41.73%
images/twitter.png2.09KB1.30KB▼ 38.02%
images/yt.png1.38KB1.10KB▼ 20.55%