84% wp-jquery-update-test

Code Review | Test jQuery Updates

WordPress plugin Test jQuery Updates scored84%from 54 tests.

About plugin

  • Plugin page: wp-jquery-update-...
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-alpha-5.6
  • WordPress version: 6.3.1
  • First release: Jun 26, 2020
  • Latest release: Dec 9, 2020
  • Number of updates: 9
  • Update frequency: every 19.5 days
  • Top authors: azaozz (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

4,000+ active /70,702 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.04MB] [CPU: ▼6.00ms] Passed 4 tests

Server-side resources used by Test jQuery Updates
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.65 ▼2.60
Dashboard /wp-admin3.36 ▲0.0145.89 ▼10.92
Posts /wp-admin/edit.php3.41 ▲0.0546.91 ▲1.32
Add New Post /wp-admin/post-new.php5.94 ▲0.0583.52 ▼11.81
Media Library /wp-admin/upload.php3.28 ▲0.0533.72 ▲1.91
Test jQuery Updates /wp-admin/plugins.php?page=wp-jquery-update-test3.2428.30

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Test jQuery Updates
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.24 ▼1.121.84 ▼0.1643.52 ▼8.38
Dashboard /wp-admin2,210 ▲284.86 ▼0.93103.65 ▲1.2141.96 ▼1.59
Posts /wp-admin/edit.php2,093 ▲42.14 ▲0.1134.81 ▼0.4532.54 ▼3.95
Add New Post /wp-admin/post-new.php1,536 ▲323.36 ▲0.07626.96 ▼72.3453.36 ▲1.69
Media Library /wp-admin/upload.php1,389 ▲44.18 ▼0.0595.99 ▼8.1143.29 ▲2.44
Test jQuery Updates /wp-admin/plugins.php?page=wp-jquery-update-test7672.0224.5626.41

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

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
Even though everything seems fine, this is not 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 items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-jquery-update-test/wp-jquery-update-test.php
    • > /wp-content/plugins/wp-jquery-update-test/class_wp_jquery_update_test.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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: jquery

wp-jquery-update-test/wp-jquery-update-test.php 92% from 13 tests

This is the main PHP file of "Test jQuery Updates" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Requires at least: Required version number should use periods and dots only (ex. "7.0" instead of "5.6-alpha")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin801 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript212396539
PHP26443262

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods1191.67%
▷ Public methods975.00%
▷ Protected methods00.00%
▷ Private methods325.00%
Functions0
▷ Named functions00.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