83% dequeue-jquery

Code Review | dequeue jquery

WordPress plugin dequeue jquery scored83%from 54 tests.

About plugin

  • Plugin page: dequeue-jquery
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 13, 2023
  • Latest release: Apr 13, 2023
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: lusha (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /99 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
This plugin's installer ran successfully

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

A check of server-side resources used by dequeue jquery
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.43 ▲4.51
Dashboard /wp-admin3.31 ▼0.0342.94 ▼16.53
Posts /wp-admin/edit.php3.36 ▲0.0146.58 ▼0.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0179.16 ▼20.02
Media Library /wp-admin/upload.php3.24 ▲0.0134.60 ▲0.68
Dequeue jquery /wp-admin/admin.php?page=jquery-dequeue3.2030.17
Codeway.ir /wp-admin/admin.php?page=codewayir-slug3.2029.55

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

dequeue jquery: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲9514.25 ▼0.272.05 ▲0.4942.33 ▲3.88
Dashboard /wp-admin2,225 ▲485.62 ▼0.0188.76 ▲2.6535.71 ▼9.59
Posts /wp-admin/edit.php2,127 ▲271.95 ▼0.0340.36 ▼4.1036.16 ▼4.66
Add New Post /wp-admin/post-new.php1,548 ▲2223.06 ▼0.43657.05 ▼2.1655.35 ▲3.50
Media Library /wp-admin/upload.php1,421 ▲184.22 ▲0.0795.50 ▼1.1440.44 ▼4.91
Dequeue jquery /wp-admin/admin.php?page=jquery-dequeue7951.9923.6331.29
Codeway.ir /wp-admin/admin.php?page=codewayir-slug7991.9925.1528.51

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dequeue-jquery/option-page/option-page.php:70

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 75% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Contributors: There were no tags found
  • Requires at least: Invalid version format
  • Contributors: The plugin contributors field is not present
  • Tags: There were no tags found
The official readme.txt might help

dequeue-jquery/jquery-dequeue.php 92% from 13 tests

The entry point to "dequeue jquery" version 1.7 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("dequeue-jquery.php" instead of "jquery-dequeue.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin108 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3784367
PO File1112941

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 were not PNG files found in your plugin