Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼4.37ms] Passed 4 tests
Analyzing server-side resources used by Collapsible Widget Area
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 35.65 ▼4.48 |
Dashboard /wp-admin | 3.47 ▲0.16 | 46.67 ▼4.85 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 49.39 ▲4.50 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.17 | 92.68 ▼5.97 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 34.11 ▼2.16 |
Collapsible Widget Options /wp-admin/options-general.php?page=collapsible-widgets | 3.35 | 32.39 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_collapsible-widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Collapsible Widget Area
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.22 ▼1.54 | 1.73 ▼0.14 | 42.64 ▼1.27 |
Dashboard /wp-admin | 2,213 ▲25 | 5.91 ▲1.02 | 98.48 ▼5.38 | 38.85 ▼3.50 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.00 ▼0.04 | 36.80 ▲1.85 | 35.02 ▲6.35 |
Add New Post /wp-admin/post-new.php | 1,536 ▲7 | 23.04 ▲4.64 | 614.81 ▼33.77 | 57.78 ▲1.19 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.29 ▲0.06 | 98.10 ▲0.41 | 41.58 ▼2.86 |
Collapsible Widget Options /wp-admin/options-general.php?page=collapsible-widgets | 938 | 2.06 | 24.82 | 28.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- db_upgraded
- widget_collapsible-widget
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/collapsible-widget-area/class.collapsible-widget.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/collapsible-widget-area/collapsible-widget-area.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (An accordion-style interface in the TwentyEleven WordPress theme's Main Sidebar, with the "UI Lightness" jQueryUI theme applied), #2 (An accordion-style interface in the TwentyEleven WordPress theme's Main Sidebar, with the "UI Darkness" jQueryUI theme applied), #3 (A tabbed interface in the TwentyEleven Footer Area One, with the "Base" jQueryUI theme applied), #4 (A tabbed interface in the TwentyEleven Footer Area One, with the "Cupertino" jQueryUI theme applied)
collapsible-widget-area/collapsible-widget-area.php Passed 13 tests
The primary PHP file in "Collapsible Widget Area" version 1.0 is used by WordPress to initiate all plugin functionality
113 characters long description:
Allows you to set up a tabbed or accordion-style widget area to be displayed wherever you choose within WordPress
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
Good job! No executable or dangerous file extensions detected907 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 91 | 97 | 624 |
Markdown | 1 | 80 | 0 | 147 |
JavaScript | 4 | 20 | 28 | 132 |
CSS | 1 | 1 | 1 | 4 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 53.00 |
▷ Minimum class complexity | 46.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 4.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 96.55% |
▷ Protected methods | 1 | 3.45% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 compressed PNG files occupy 0.03MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 6.94KB | 6.87KB | ▼ 1.00% |
screenshot-1.png | 6.35KB | 6.24KB | ▼ 1.65% |
screenshot-3.png | 7.05KB | 6.91KB | ▼ 1.99% |
screenshot-4.png | 8.82KB | 8.70KB | ▼ 1.27% |