84% disable-jquery-migrate

Code Review | Disable jQuery Migrate

WordPress plugin Disable jQuery Migrate scored84%from 54 tests.

About plugin

  • Plugin page: disable-jquery-mi...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Oct 7, 2015
  • Latest release: Oct 7, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: ivanblagdan (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /6,710 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Disable jQuery Migrate
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.25 ▼5.86
Dashboard /wp-admin3.31 ▲0.0143.35 ▼7.57
Posts /wp-admin/edit.php3.36 ▲0.0050.39 ▲1.85
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.56 ▼14.00
Media Library /wp-admin/upload.php3.23 ▲0.0030.97 ▼2.82

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Disable jQuery Migrate
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.29 ▼1.081.99 ▲0.2842.60 ▼4.96
Dashboard /wp-admin2,206 ▲185.86 ▲0.03103.20 ▼7.0941.61 ▲2.32
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.0136.60 ▼1.2234.20 ▼0.59
Add New Post /wp-admin/post-new.php1,542 ▲2318.60 ▼4.53630.62 ▼38.2950.01 ▼4.06
Media Library /wp-admin/upload.php1,391 ▲34.15 ▼0.0395.18 ▼1.4942.11 ▼0.36

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/disable-jquery-migrate/disable-jquery-migrate.php:15

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === disable-jquery-migrate === )
Please take inspiration from this readme.txt

disable-jquery-migrate/disable-jquery-migrate.php Passed 13 tests

The main PHP file in "Disable jQuery Migrate" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
76 characters long description:
Disables loading of jquery-migrate on the frontent due to XSS vulnerability.

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
No dangerous file extensions were detected9 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1269

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.67
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected