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
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/collapsing-archives/collapscat.php+57
compact(): Undefined variable: selected
Server metrics [RAM: ▲0.16MB] [CPU: ▼4.15ms] Passed 4 tests
Server-side resources used by Collapsing Categories
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 41.22 ▼0.65 |
Dashboard /wp-admin | 3.47 ▲0.12 | 47.88 ▼12.85 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 48.35 ▲3.43 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 90.85 ▼6.52 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 35.21 ▲3.49 |
Server storage [IO: ▲0.46MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: no new tables, 12 new options
New WordPress options |
---|
theysaidso_admin_options |
collapsCatVersion |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
collapsCatOrigStyle |
collapsCatDefaultStyles |
widget_recent-comments |
widget_theysaidso_widget |
collapsCatSidebarId |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Collapsing Categories
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲21 | 14.24 ▼0.10 | 1.81 ▼0.04 | 42.68 ▼0.97 |
Dashboard /wp-admin | 2,198 ▲18 | 5.67 ▼0.00 | 90.92 ▼2.31 | 40.36 ▼5.07 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.09 ▲0.10 | 38.78 ▲3.50 | 36.14 ▲2.95 |
Add New Post /wp-admin/post-new.php | 6,366 ▲4,835 | 27.60 ▲4.84 | 928.19 ▲266.32 | 63.89 ▲10.51 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.19 ▼0.00 | 93.14 ▼1.12 | 38.97 ▼2.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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 were found after uninstall: 12 options
- widget_recent-comments
- collapsCatDefaultStyles
- collapsCatOptions
- collapsCatStyle
- widget_theysaidso_widget
- collapsCatOrigStyle
- can_compress_scripts
- collapsCatVersion
- db_upgraded
- widget_recent-posts
- ...
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 9× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: expand in wp-content/plugins/collapsing-archives/symbols.php on line 5
- > PHP Notice
Undefined variable: expand in wp-content/plugins/collapsing-archives/symbols.php on line 2
- > PHP Notice
Undefined variable: number in wp-content/plugins/collapsing-archives/processOptions.php on line 2
- > PHP Notice
Undefined variable: expand in wp-content/plugins/collapsing-archives/symbols.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/collapsing-archives/collapscat.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/collapsing-archives/defaults.php:3
- > PHP Notice
Undefined variable: expand in wp-content/plugins/collapsing-archives/symbols.php on line 18
- > PHP Notice
Undefined variable: expand in wp-content/plugins/collapsing-archives/symbols.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/collapsing-archives/processOptions.php:33
- > 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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Please add an image for screenshot #3 (Advanced options)
collapsing-archives/collapscat.php 85% from 13 tests
"Collapsing Categories" version 3.0.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("collapsing-archives.php" instead of "collapscat.php")
- Description: If Twitter did it, so should we! Keep the description under 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
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in 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/custom.png | 3.12KB | 1.94KB | ▼ 37.83% |
img/default.png | 2.18KB | 1.59KB | ▼ 26.95% |
screenshot-2.png | 266.92KB | 83.09KB | ▼ 68.87% |
img/block.png | 2.14KB | 1.59KB | ▼ 25.69% |
screenshot-1.png | 73.78KB | 25.04KB | ▼ 66.06% |