94% remove-jquery

Code Review | Remove jQuery from Theme

WordPress plugin Remove jQuery from Theme scored 94% from 54 tests.

About plugin

  • Plugin page: remove-jquery
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6.2
  • WordPress version: 5.8.1
  • First release: Mar 9, 2021
  • Latest release: Mar 9, 2021
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: MarcDK (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 222 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by Remove jQuery from Theme
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1233.25 ▲11.33
Dashboard /wp-admin3.06 ▲0.0142.68 ▼5.33
Posts /wp-admin/edit.php3.11 ▲0.0145.37 ▲1.04
Add New Post /wp-admin/post-new.php5.42 ▼0.0187.77 ▼570.53
Media Library /wp-admin/upload.php3.00 ▲0.0032.36 ▼2.35

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Remove jQuery from Theme
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,678 ▲7216.20 ▲0.4811.62 ▲1.8145.83 ▼4.49
Dashboard /wp-admin2,973 ▲395.93 ▼0.11158.48 ▲13.23107.28 ▼23.26
Posts /wp-admin/edit.php2,739 ▼02.70 ▼0.0173.51 ▲5.3779.37 ▼10.19
Add New Post /wp-admin/post-new.php1,672 ▼1118.90 ▲0.19385.64 ▲10.57111.89 ▼0.56
Media Library /wp-admin/upload.php1,807 ▼05.02 ▼0.03155.06 ▲1.20120.18 ▲1.96

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/remove-jquery/remove-jquery.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: jquery

remove-jquery/remove-jquery.php Passed 13 tests

The primary PHP file in "Remove jQuery from Theme" version 1.0 is used by WordPress to initiate all plugin functionality
41 characters long description:
Completely remove jQuery from your theme.

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
Success! There were no dangerous files found in this plugin8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14118

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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin