Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼6.27ms] Passed 4 tests
This is a short check of server-side resources used by Amazing Posts Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 35.46 ▼3.71 |
Dashboard /wp-admin | 3.37 ▲0.06 | 44.00 ▼9.16 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 47.12 ▲0.54 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 80.09 ▼10.76 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.41 ▼1.46 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_pj_ap_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Amazing Posts 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,870 ▲109 | 13.82 ▼0.53 | 7.82 ▲6.15 | 39.78 ▼8.02 |
Dashboard /wp-admin | 2,192 ▲14 | 5.56 ▼0.05 | 82.45 ▼30.76 | 38.71 ▼8.30 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.99 ▼0.00 | 38.30 ▲3.56 | 35.47 ▲2.41 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.04 ▼0.07 | 666.90 ▼27.03 | 58.17 ▼3.94 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.14 ▲0.00 | 94.94 ▼22.77 | 45.28 ▼1.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_pj_ap_widget
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
The following issues need your attention
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/amazing-post-widget/views/amaz-hover.php
- > /wp-content/plugins/amazing-post-widget/views/admin-amazing.php
- > /wp-content/plugins/amazing-post-widget/views/amaz-columns.php
- > /wp-content/plugins/amazing-post-widget/views/amaz-fullwidth-img.php
- > /wp-content/plugins/amazing-post-widget/amazing-posts-widget.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: post, custom post types, widget, thumbnails, posts
amazing-post-widget/amazing-posts-widget.php 85% from 13 tests
The main file in "Amazing Posts Widget" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("amazing-post-widget.php" instead of "amazing-posts-widget.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 159 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,936 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 149 | 273 | 1,051 |
PHP | 6 | 118 | 149 | 632 |
CSS | 2 | 31 | 89 | 253 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin