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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 43.20 ▲3.86 |
Dashboard /wp-admin | 3.46 ▲0.15 | 46.94 ▼3.17 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 51.55 ▼0.87 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 101.40 ▼8.35 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 40.06 ▲5.77 |
jQuery Migrate 0 /wp-admin/tools.php?page=jqmh | 3.36 | 33.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,050 ▲315 | 13.70 ▼0.59 | 9.57 ▲7.65 | 43.45 ▼0.36 |
Dashboard /wp-admin | 2,347 ▲162 | 5.86 ▼0.05 | 99.89 ▼6.27 | 42.63 ▲1.09 |
Posts /wp-admin/edit.php | 2,196 ▲107 | 2.04 ▲0.03 | 38.49 ▼4.17 | 33.96 ▼2.36 |
Add New Post /wp-admin/post-new.php | 1,654 ▲112 | 23.67 ▲5.52 | 650.99 ▲48.89 | 35.28 ▼27.66 |
Media Library /wp-admin/upload.php | 1,501 ▲113 | 4.24 ▲0.04 | 85.88 ▼7.33 | 42.91 ▲0.42 |
jQuery Migrate 0 /wp-admin/tools.php?page=jqmh | 984 | 2.10 | 25.20 | 27.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 41 | 343 | 674 | 1,379 |
PHP | 11 | 244 | 203 | 1,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 code | 0.29 |
Average class complexity | 62.00 |
▷ Minimum class complexity | 62.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 26 | 96.30% |
▷ Public methods | 24 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 11.11% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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