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.09MB] [CPU: ▼5.18ms] Passed 4 tests
An overview of server-side resources used by Collapsible Pages Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 37.82 ▼8.74 |
Dashboard /wp-admin | 3.40 ▲0.09 | 46.46 ▲0.17 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 49.83 ▲1.88 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 81.87 ▼14.03 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.17 ▲2.52 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_collapsible_pages_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Collapsible Pages Widget: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲162 | 13.57 ▼1.16 | 9.13 ▲7.43 | 39.98 ▲0.53 |
Dashboard /wp-admin | 2,206 ▲21 | 4.88 ▼1.00 | 111.34 ▲0.43 | 42.32 ▲2.48 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▼0.07 | 39.20 ▲1.89 | 35.40 ▲0.37 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.25 ▲4.98 | 615.38 ▼43.53 | 47.65 ▼12.48 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.19 ▼0.02 | 101.62 ▼1.45 | 45.56 ▲0.21 |
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
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- widget_collapsible_pages_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/collapsible-pages-widget/collapsible-pages-widget.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Node' not found in wp-content/plugins/collapsible-pages-widget/node-test.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: fold, nested, folding, pages, collapsible...
collapsible-pages-widget/collapsible-pages-widget.php Passed 13 tests
The main PHP file in "Collapsible Pages Widget" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
34 characters long description:
A brief description of the plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin498 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 100 | 72 | 438 |
CSS | 1 | 10 | 0 | 33 |
JavaScript | 1 | 8 | 0 | 27 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 82.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 17.14% |
Functions | 5 | |
▷ Named functions | 1 | 20.00% |
▷ Anonymous functions | 4 | 80.00% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin