Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼2.99ms] Passed 4 tests
This is a short check of server-side resources used by AWS Slideshow
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 35.99 ▼6.72 |
Dashboard /wp-admin | 3.41 ▲0.11 | 48.85 ▼2.22 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 52.65 ▲5.11 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 87.96 ▼8.13 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 44.61 ▲8.77 |
Server storage [IO: ▲5.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 689 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_awsslideshow_slides |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
awsslideshow_db_version |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AWS Slideshow
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,073 ▲338 | 14.26 ▼0.39 | 16.33 ▲14.31 | 45.06 ▼4.91 |
Dashboard /wp-admin | 2,222 ▲31 | 5.82 ▲0.92 | 99.87 ▼6.57 | 39.12 ▼8.17 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 1.99 ▼0.07 | 41.01 ▲5.80 | 35.18 ▼0.56 |
Add New Post /wp-admin/post-new.php | 1,550 ▲17 | 23.18 ▼0.25 | 599.59 ▼93.43 | 59.63 ▲1.83 |
Media Library /wp-admin/upload.php | 1,407 ▲22 | 4.22 ▲0.06 | 108.84 ▲3.29 | 43.41 ▲0.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/awsslideshow/awsslideshow.php
- > /wp-content/plugins/awsslideshow/includes/class-aws-slideshows-list-table.php
- > /wp-content/plugins/awsslideshow/includes/class-aws-slideshows-model.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/awsslideshow/includes/class-aws-slideshows-widget.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/awsslideshow/views/slideshows/new.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/awsslideshow/views/slideshows/edit.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/awsslideshow/views/slideshows/default.php:4
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #2, #3, #4, #5 in awsslideshow/assets to your readme.txt
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== awsslideshow ===
)
awsslideshow/awsslideshow.php 92% from 13 tests
The entry point to "AWS Slideshow" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 196 characters long)
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 detected34,769 lines of code in 64 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 30 | 6,195 | 9,441 | 18,918 |
CSS | 11 | 1,305 | 266 | 10,577 |
SVG | 3 | 0 | 3 | 2,820 |
HTML | 9 | 141 | 39 | 987 |
LESS | 1 | 151 | 275 | 811 |
PHP | 8 | 326 | 96 | 621 |
Markdown | 2 | 34 | 0 | 35 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 18.25 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 1 | 2.33% |
▷ Public methods | 40 | 93.02% |
▷ Protected methods | 1 | 2.33% |
▷ Private methods | 2 | 4.65% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
608 compressed PNG files occupy 1.81MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/icons/ionicons/png/512/android-social.png | 3.76KB | 4.16KB | 0.00% |
css/icons/ionicons/png/512/android-playstore.png | 3.09KB | 3.35KB | 0.00% |
css/icons/ionicons/png/512/clock.png | 5.73KB | 6.47KB | 0.00% |
css/icons/ionicons/png/512/arrow-right-c.png | 1.62KB | 1.67KB | 0.00% |
css/icons/ionicons/png/512/ios7-clock.png | 2.70KB | 2.96KB | 0.00% |