84% jquery-enabler

Code Review | jQuery Enabler

WordPress plugin jQuery Enabler scored 84% from 54 tests.

About plugin

  • Plugin page: jquery-enabler
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 23, 2013
  • Latest release: Aug 26, 2013
  • Number of updates: 10
  • Update frequency: every 15.6 days
  • Top authors: bstaruk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,627 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

A check of server-side resources used by jQuery Enabler
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0139.01 ▼6.55
Dashboard /wp-admin3.31 ▲0.0047.30 ▼0.31
Posts /wp-admin/edit.php3.36 ▲0.0046.94 ▼3.82
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.53 ▼0.20
Media Library /wp-admin/upload.php3.23 ▲0.0033.71 ▼0.40

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for jQuery Enabler
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,879 ▲14413.97 ▼0.318.15 ▲6.4039.51 ▼9.52
Dashboard /wp-admin2,206 ▲155.89 ▼0.01108.81 ▲2.6242.34 ▼3.79
Posts /wp-admin/edit.php2,089 ▼32.03 ▲0.0236.55 ▼6.2436.18 ▼2.07
Add New Post /wp-admin/post-new.php1,533 ▼123.32 ▲0.16642.48 ▼34.7364.05 ▲10.40
Media Library /wp-admin/upload.php1,391 ▲34.21 ▼0.0397.42 ▼9.3943.07 ▼1.06

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

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 take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/jquery-enabler/jQuery-Enabler.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Requires at least: The plugin version is formatted incorrectly
The official readme.txt might help

jquery-enabler/jQuery-Enabler.php 92% from 13 tests

The entry point to "jQuery Enabler" version 1.1.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("jquery-enabler.php" instead of "jQuery-Enabler.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin16 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16816

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin