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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼6.01ms] Passed 4 tests
A check of server-side resources used by Archive widget collapsed with CSS
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 37.63 ▼13.70 |
Dashboard /wp-admin | 3.39 ▲0.08 | 44.55 ▼10.01 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 49.94 ▲1.55 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 97.45 ▲7.49 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.49 ▼1.86 |
Archive widget collapsed with CSS /wp-admin/options-general.php?page=archive-widget-collapsed-with-css | 3.28 | 33.31 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_archive_widget_collapsed_with_css |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Archive widget collapsed with CSS
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 13.18 ▼1.12 | 1.67 ▼0.38 | 40.78 ▼5.13 |
Dashboard /wp-admin | 2,215 ▲24 | 4.81 ▼1.10 | 112.27 ▲13.32 | 38.58 ▼3.00 |
Posts /wp-admin/edit.php | 2,098 ▲6 | 2.06 ▲0.06 | 43.18 ▼4.44 | 37.02 ▼0.38 |
Add New Post /wp-admin/post-new.php | 1,543 ▲15 | 18.40 ▼4.81 | 602.55 ▼61.17 | 50.90 ▼18.67 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.16 ▼0.01 | 98.33 ▼1.08 | 42.12 ▼3.84 |
Archive widget collapsed with CSS /wp-admin/options-general.php?page=archive-widget-collapsed-with-css | 861 | 2.01 | 31.98 | 50.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_archive_widget_collapsed_with_css
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)
Good news, no errors were detected
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
Please fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/archive-widget-collapsed-with-css/awcwc-admin.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/archive-widget-collapsed-with-css/archive-widget-collapsed-with-css.php:17
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/archive-widget-collapsed-with-css/awcwc-widget-form.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Requires php: Version not formatted correctly
archive-widget-collapsed-with-css/archive-widget-collapsed-with-css.php Passed 13 tests
Analyzing the main PHP file in "Archive widget collapsed with CSS" version 1.0.1
62 characters long description:
Archive widget that is displayed in a collapsed form with CSS.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin595 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 1 | 0 | 368 |
PHP | 5 | 53 | 10 | 227 |
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.20 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
8 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pattern-1.png | 7.09KB | 5.63KB | ▼ 20.57% |
images/widjet_awcwc.png | 1.62KB | 1.53KB | ▼ 5.50% |
images/widjet_awcwc_setting.png | 3.39KB | 2.97KB | ▼ 12.37% |
images/widjet_awcwc_setting_ja.png | 3.57KB | 3.14KB | ▼ 11.98% |
images/pattern-4.png | 7.74KB | 6.84KB | ▼ 11.62% |