Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/archives-calendar-widget/archives-calendar.php+64
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.20MB] [CPU: ▼6.95ms] Passed 4 tests
Analyzing server-side resources used by Archives Calendar Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 37.78 ▼0.13 |
Dashboard /wp-admin | 3.51 ▲0.16 | 47.49 ▼12.99 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 47.92 ▼1.49 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 84.21 ▼13.19 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 39.29 ▲5.75 |
Archives Calendar /wp-admin/options-general.php?page=Archives_Calendar_Widget | 3.43 | 28.09 |
Server storage [IO: ▲1.61MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 81 new files
Database: no new tables, 9 new options
New WordPress options |
---|
archivesCalendarThemer |
theysaidso_admin_options |
widget_archives_calendar |
db_upgraded |
archivesCalendar |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Archives Calendar Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲115 | 13.84 ▼0.89 | 8.32 ▲6.82 | 42.40 ▲3.71 |
Dashboard /wp-admin | 2,199 ▲28 | 5.53 ▼0.04 | 81.77 ▼5.54 | 37.85 ▲0.68 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▼0.03 | 37.62 ▼0.63 | 37.69 ▲7.67 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.39 ▼0.07 | 597.04 ▼10.82 | 105.57 ▲11.41 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.15 ▼0.09 | 99.80 ▼1.25 | 41.56 ▼1.73 |
Archives Calendar /wp-admin/options-general.php?page=Archives_Calendar_Widget | 1,588 | 2.07 | 26.23 | 31.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- archivesCalendarThemer
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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
The following issues need your attention
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/archives-calendar-widget/arw-settings-view.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/archives-calendar-widget/arw-settings.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/archives-calendar-widget/arw-widget.php:9
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/archives-calendar-widget/arw-widget-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/archives-calendar-widget/arw-settings.php:7
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Plugin settings), #2 (Calendar Theme selector with preview), #3 (Widget settings), #4 (Widgets with different themes on the same page)
archives-calendar-widget/archives-calendar.php 92% from 13 tests
"Archives Calendar Widget" version 1.0.15's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("archives-calendar-widget.php" instead of "archives-calendar.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected4,881 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Sass | 21 | 306 | 157 | 1,889 |
PHP | 8 | 239 | 101 | 1,608 |
PO File | 7 | 381 | 676 | 1,051 |
CSS | 11 | 61 | 5 | 315 |
JavaScript | 9 | 1 | 0 | 18 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 42 | |
▷ Named functions | 40 | 95.24% |
▷ Anonymous functions | 2 | 4.76% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/themer.png | 49.03KB | 16.67KB | ▼ 66.00% |