78% jquery-manager

Code Review | jQuery Manager for WordPress

WordPress plugin jQuery Manager for WordPress scored78%from 54 tests.

About plugin

  • Plugin page: jquery-manager
  • Plugin version: 1.10.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.5
  • WordPress version: 6.3.1
  • First release: Jun 1, 2019
  • Latest release: Jul 20, 2020
  • Number of updates: 36
  • Update frequency: every 11.5 days
  • Top authors: remzicavdar (100%)

Code review

54 tests

User reviews

111 reviews

Install metrics

10,000+ active /79,630 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
Installer ran successfully

Server metrics [RAM: ▲0.22MB] [CPU: ▼7.15ms] Passed 4 tests

Analyzing server-side resources used by jQuery Manager for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1844.84 ▲1.73
Dashboard /wp-admin3.60 ▲0.2550.08 ▼11.75
Posts /wp-admin/edit.php3.65 ▲0.2955.59 ▲9.10
Add New Post /wp-admin/post-new.php6.12 ▲0.2382.91 ▼20.67
Media Library /wp-admin/upload.php3.44 ▲0.2138.34 ▲2.08
jQuery Manager /wp-admin/tools.php?page=wp-jquery-manager-plugin-settings3.4436.78

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 58 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
wp_jquery_manager_plugin_jquery_migrate_settings
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
wp_jquery_manager_plugin_jquery_settings

Browser metrics Passed 4 tests

This is an overview of browser requirements for jQuery Manager for WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,112 ▲34115.20 ▲0.454.94 ▲2.8237.24 ▼6.95
Dashboard /wp-admin2,389 ▲2046.63 ▲0.78134.07 ▲15.6851.87 ▲9.00
Posts /wp-admin/edit.php2,298 ▲2063.53 ▲1.5357.03 ▲15.7147.48 ▲10.36
Add New Post /wp-admin/post-new.php1,557 ▲2018.37 ▼0.11639.57 ▼41.2635.46 ▼20.42
Media Library /wp-admin/upload.php1,431 ▲464.33 ▲0.1584.15 ▼33.0249.45 ▲2.28
jQuery Manager /wp-admin/tools.php?page=wp-jquery-manager-plugin-settings1,2383.5951.5538.30

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/jquery-manager/tests/bootstrap.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/jquery-manager/tests/test-sample.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/jquery-manager/tests/php7.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
The official readme.txt might help

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

"jQuery Manager for WordPress" version 1.10.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 254 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected28,859 lines of code in 48 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript137,9567,12927,028
PHP8245377985
Markdown91560407
YAML93241143
Bourne Shell12111123
JSON40089
XML3205482
CSS1012

PHP code Passed 2 tests

This is a very shot review of 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 code0.39
Average class complexity25.75
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods44
▷ Static methods613.64%
▷ Public methods44100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions880.00%
▷ Anonymous functions220.00%
Constants15
▷ Global constants15100.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