84% enable-jquery-migrate-helper

Code Review | Enable jQuery Migrate Helper

WordPress plugin Enable jQuery Migrate Helper scored 84% from 54 tests.

About plugin

  • Plugin page: enable-jquery-mig...
  • Plugin version: 1.4.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.3
  • WordPress version: 6.3.1
  • First release: Aug 10, 2020
  • Latest release: Jul 31, 2023
  • Number of updates: 16
  • Update frequency: every 68.2 days
  • Top authors: Clorith (100%)

Code review

54 tests

User reviews

107 reviews

Install metrics

100,000+ active / 1,802,471 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.17MB] [CPU: ▼2.13ms] Passed 4 tests

Analyzing server-side resources used by Enable jQuery Migrate Helper
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1843.20 ▲3.86
Dashboard /wp-admin3.46 ▲0.1546.94 ▼3.17
Posts /wp-admin/edit.php3.57 ▲0.2151.55 ▼0.87
Add New Post /wp-admin/post-new.php6.06 ▲0.17101.40 ▼8.35
Media Library /wp-admin/upload.php3.39 ▲0.1640.06 ▲5.77
jQuery Migrate 0 /wp-admin/tools.php?page=jqmh3.3633.17

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Enable jQuery Migrate Helper
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,050 ▲31513.70 ▼0.599.57 ▲7.6543.45 ▼0.36
Dashboard /wp-admin2,347 ▲1625.86 ▼0.0599.89 ▼6.2742.63 ▲1.09
Posts /wp-admin/edit.php2,196 ▲1072.04 ▲0.0338.49 ▼4.1733.96 ▼2.36
Add New Post /wp-admin/post-new.php1,654 ▲11223.67 ▲5.52650.99 ▲48.8935.28 ▼27.66
Media Library /wp-admin/upload.php1,501 ▲1134.24 ▲0.0485.88 ▼7.3342.91 ▲0.42
jQuery Migrate 0 /wp-admin/tools.php?page=jqmh9842.1025.2027.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • 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
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following items
  • 10× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/enable-jquery-migrate-helper/templates/email/weekly.php
    • > /wp-content/plugins/enable-jquery-migrate-helper/class-jquery-migrate-helper.php
    • > /wp-content/plugins/enable-jquery-migrate-helper/templates/admin-notices/deprecated-scripts.php
    • > /wp-content/plugins/enable-jquery-migrate-helper/templates/email/automatic-downgrade.php
    • > /wp-content/plugins/enable-jquery-migrate-helper/admin/settings.php
    • > /wp-content/plugins/enable-jquery-migrate-helper/admin/logs.php
    • > /wp-content/plugins/enable-jquery-migrate-helper/enable-jquery-migrate-helper.php
    • > /wp-content/plugins/enable-jquery-migrate-helper/templates/admin-notices/no-longer-needed.php
    • > /wp-content/plugins/enable-jquery-migrate-helper/admin/header.php
    • > /wp-content/plugins/enable-jquery-migrate-helper/templates/admin-notices/welcome.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: update, jquery, javascript

enable-jquery-migrate-helper/enable-jquery-migrate-helper.php Passed 13 tests

The main file in "Enable jQuery Migrate Helper" v. 1.4.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
97 characters long description:
Enable support for old and outdated plugins and themes during a jQuery update transitional phase.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin2,395 lines of code in 52 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript413436741,379
PHP112442031,016

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity62.00
▷ Minimum class complexity62.00
▷ Maximum class complexity62.00
Average method complexity3.15
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods27
▷ Static methods2696.30%
▷ Public methods2488.89%
▷ Protected methods00.00%
▷ Private methods311.11%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
There were not PNG files found in your plugin