Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/collapsing-categories/collapscat.php+57
compact(): Undefined variable: selected
Server metrics [RAM: ▲0.17MB] [CPU: ▼3.05ms] Passed 4 tests
An overview of server-side resources used by Collapsing Categories
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 38.30 ▼3.36 |
Dashboard /wp-admin | 3.47 ▲0.16 | 49.62 ▼1.68 |
Posts /wp-admin/edit.php | 3.59 ▲0.22 | 48.08 ▲0.50 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 90.09 ▼7.65 |
Media Library /wp-admin/upload.php | 3.40 ▲0.16 | 37.40 ▲3.56 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 12 new options
New WordPress options |
---|
theysaidso_admin_options |
collapsCatOptions |
collapsCatDefaultStyles |
widget_recent-posts |
db_upgraded |
collapsCatStyle |
can_compress_scripts |
collapsCatSidebarId |
widget_theysaidso_widget |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Collapsing Categories
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲31 | 14.67 ▲0.41 | 1.52 ▼0.08 | 36.12 ▼8.48 |
Dashboard /wp-admin | 2,198 ▲18 | 5.58 ▼0.07 | 93.72 ▲2.53 | 41.81 ▲1.51 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.98 ▼0.02 | 39.29 ▼1.37 | 35.80 ▼0.88 |
Add New Post /wp-admin/post-new.php | 6,366 ▲4,840 | 27.52 ▲4.56 | 822.38 ▲199.99 | 63.37 ▲15.02 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.20 ▲0.01 | 96.42 ▼3.22 | 42.81 ▼0.42 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 12 options
- collapsCatSidebarId
- can_compress_scripts
- collapsCatOptions
- widget_recent-posts
- collapsCatVersion
- widget_theysaidso_widget
- collapsCatDefaultStyles
- collapsCatOrigStyle
- db_upgraded
- collapsCatStyle
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
The following issues need your attention
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: expand in wp-content/plugins/collapsing-categories/symbols.php on line 15
- > PHP Notice
Undefined variable: expand in wp-content/plugins/collapsing-categories/symbols.php on line 8
- > PHP Notice
Undefined variable: number in wp-content/plugins/collapsing-categories/processOptions.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/collapsing-categories/collapscat.php:34
- > PHP Notice
Undefined variable: expand in wp-content/plugins/collapsing-categories/symbols.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/collapsing-categories/processOptions.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/collapsing-categories/defaults.php:3
- > PHP Notice
Undefined variable: expand in wp-content/plugins/collapsing-categories/symbols.php on line 18
- > PHP Notice
Undefined variable: expand in wp-content/plugins/collapsing-categories/symbols.php on line 2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: Screenshot #3 (Advanced options) image missing
collapsing-categories/collapscat.php 85% from 13 tests
This is the main PHP file of "Collapsing Categories" version 3.0.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("collapsing-categories.php" instead of "collapscat.php")
- Description: The description should be shorter than 140 characters (currently 291 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,851 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 66 | 104 | 1,183 |
JavaScript | 6 | 22 | 81 | 470 |
PO File | 2 | 32 | 170 | 90 |
JSON | 2 | 0 | 0 | 76 |
Sass | 2 | 2 | 0 | 18 |
Bourne Again Shell | 1 | 2 | 1 | 13 |
CSS | 2 | 1 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 8 | 100.00% |
▷ Public methods | 6 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 25.00% |
Functions | 18 | |
▷ Named functions | 17 | 94.44% |
▷ Anonymous functions | 1 | 5.56% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.34MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/default.png | 2.18KB | 1.59KB | ▼ 26.95% |
img/custom.png | 3.12KB | 1.94KB | ▼ 37.83% |
img/block.png | 2.14KB | 1.59KB | ▼ 25.69% |
screenshot-1.png | 73.78KB | 25.04KB | ▼ 66.06% |
screenshot-2.png | 266.92KB | 83.09KB | ▼ 68.87% |