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.14MB] [CPU: ▼2.38ms] Passed 4 tests
An overview of server-side resources used by Post & Page Sidebar Excerpts by Maui Marketing
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 43.96 ▲1.50 |
Dashboard /wp-admin | 3.45 ▲0.10 | 50.63 ▼16.73 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 50.75 ▲1.02 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 88.22 ▲4.68 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 40.53 ▲4.68 |
Server storage [IO: ▲2.85MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_mm_sidebar_page_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_mm_sidebar_post_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Post & Page Sidebar Excerpts by Maui Marketing
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲37 | 14.35 ▼0.22 | 1.86 ▲0.07 | 51.80 ▲1.86 |
Dashboard /wp-admin | 2,205 ▲25 | 5.65 ▼0.01 | 91.95 ▲0.23 | 39.10 ▼1.62 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 1.98 ▼0.06 | 39.46 ▼1.00 | 42.05 ▲1.80 |
Add New Post /wp-admin/post-new.php | 9,512 ▲7,986 | 32.47 ▲8.75 | 1,236.76 ▲600.52 | 327.37 ▲278.39 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.18 ▼0.01 | 101.65 ▲4.47 | 41.63 ▼0.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 8 options
- widget_theysaidso_widget
- widget_mm_sidebar_post_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_mm_sidebar_page_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
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
Even though everything seems fine, this is not an exhaustive test
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
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/post-page-sidebar-excerpts-by-maui-marketing/inc/mm-sidebar-post-widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/post-page-sidebar-excerpts-by-maui-marketing/mm-sidebar-excerpts.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/post-page-sidebar-excerpts-by-maui-marketing/inc/mm-sidebar-page-widget.php:3
- > 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 90% 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 to be fixed:
- Donate link: Invalid URI found ("none")
post-page-sidebar-excerpts-by-maui-marketing/mm-sidebar-excerpts.php 85% from 13 tests
"Post & Page Sidebar Excerpts by Maui Marketing" version 1.0.1'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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("post-page-sidebar-excerpts-by-maui-marketing.php" instead of "mm-sidebar-excerpts.php")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected664 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 82 | 23 | 586 |
CSS | 2 | 3 | 0 | 78 |
JavaScript | 1 | 2 | 5 | 0 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 27.33 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 4.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 2.81MB with 1.78MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-4.png | 2,500.28KB | 660.74KB | ▼ 73.57% |
assets/screenshot-3.png | 50.81KB | 29.04KB | ▼ 42.84% |
assets/screenshot-2.png | 135.73KB | 46.04KB | ▼ 66.08% |
assets/screenshot-1.png | 191.47KB | 54.60KB | ▼ 71.48% |