84% silence-jquery-migrate-installed-message

Code Review | Silence jQuery Migrate Installed Message

WordPress plugin Silence jQuery Migrate Installed Message scored84%from 54 tests.

About plugin

  • Plugin page: silence-jquery-mi...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.0
  • WordPress version: 6.3.1
  • First release: Jul 24, 2018
  • Latest release: May 12, 2022
  • Number of updates: 5
  • Update frequency: every 278.0 days
  • Top authors: cdayjr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,485 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

A check of server-side resources used by Silence jQuery Migrate Installed Message
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.40 ▼2.68
Dashboard /wp-admin3.31 ▲0.0047.73 ▼10.40
Posts /wp-admin/edit.php3.36 ▲0.0049.86 ▼0.65
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.87 ▼8.89
Media Library /wp-admin/upload.php3.23 ▲0.0038.45 ▲3.99

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Silence jQuery Migrate Installed Message
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.22 ▼0.151.61 ▼0.1642.54 ▼3.56
Dashboard /wp-admin2,202 ▲285.50 ▼0.0978.20 ▼22.4839.56 ▼3.85
Posts /wp-admin/edit.php2,110 ▲72.11 ▲0.1240.02 ▲5.2534.37 ▼0.95
Add New Post /wp-admin/post-new.php1,540 ▲1423.20 ▲0.21641.51 ▲1.4035.72 ▼23.31
Media Library /wp-admin/upload.php1,415 ▲154.21 ▼0.1198.54 ▼4.2446.87 ▲2.64

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • 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
Good news, no errors were detected

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 perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/silence-jquery-migrate-installed-message/silence-jquery-migrate-installed-message.php

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: jquery migrate, console message

silence-jquery-migrate-installed-message/silence-jquery-migrate-installed-message.php Passed 13 tests

The entry point to "Silence jQuery Migrate Installed Message" version 1.0.1 is a PHP file that has certain tags in its header comment area
62 characters long description:
Silence the "JQMIGRATE: Migrate is installed" console message.

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 plugin30 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP121930

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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 are no PNG files in this plugin