Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼8.11ms] Passed 4 tests
Server-side resources used by JS Categories List Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 35.65 ▼6.90 |
Dashboard /wp-admin | 3.44 ▲0.09 | 45.49 ▼18.19 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 45.57 ▼0.28 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 80.95 ▼7.07 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 35.88 ▲2.68 |
Server storage [IO: ▲1.28MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 59 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_jcl_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for JS Categories List Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲57 | 14.18 ▼0.12 | 1.77 ▲0.04 | 41.91 ▼1.37 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▼0.07 | 106.98 ▼15.49 | 39.45 ▼5.39 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 2.04 ▼0.01 | 37.49 ▼1.58 | 31.00 ▲0.22 |
Add New Post /wp-admin/post-new.php | 6,354 ▲4,821 | 27.62 ▲4.39 | 922.51 ▲226.25 | 50.56 ▼14.47 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.21 ▼0.05 | 104.02 ▲2.53 | 44.73 ▲1.94 |
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 did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_jcl_widget
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
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
Even though everything seems fine, this is not 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 items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/jquery-categories-list/jquery-categories-list.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/jquery-categories-list/classes/legacy/class-jcl-legacy-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jquery-categories-list/classes/class-js-categories-list-block.php:114
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jquery-categories-list/classes/class-js-categories-list-rest-endpoints.php:99
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Here you can see a list of categories, those with sub-categories will habe a link on the right to expand its childs.), #2 (Here you can see a list of categories and its sub-categories expanded.)
jquery-categories-list/jquery-categories-list.php 85% from 13 tests
"JS Categories List Widget" version 4.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Requires at least: Required version must match the one declared in readme.txt ("5.8" instead of "6.1")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
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
No dangerous file extensions were detected30,913 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 28,251 |
JavaScript | 23 | 199 | 97 | 1,466 |
PHP | 7 | 119 | 163 | 638 |
PO File | 5 | 153 | 175 | 365 |
CSS | 4 | 25 | 10 | 124 |
Sass | 3 | 15 | 1 | 69 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 21.25 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 3 | 10.34% |
▷ Public methods | 17 | 58.62% |
▷ Protected methods | 7 | 24.14% |
▷ Private methods | 5 | 17.24% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 7 | |
▷ Global constants | 3 | 42.86% |
▷ Class constants | 4 | 57.14% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.17MB with 0.11MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 68.82KB | 23.90KB | ▼ 65.27% |
screenshot-2.png | 54.20KB | 17.85KB | ▼ 67.07% |
screenshot-3.png | 48.83KB | 17.13KB | ▼ 64.92% |