Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼157.31ms] Passed 4 tests
Analyzing server-side resources used by HTML5 Slideshow Presentations
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▲0.22 | 43.50 ▲13.96 |
Dashboard /wp-admin | 3.00 ▼0.06 | 35.32 ▼26.45 |
Posts /wp-admin/edit.php | 3.26 ▲0.14 | 62.16 ▼13.56 |
Add New Post /wp-admin/post-new.php | 5.54 ▲0.10 | 113.84 ▼598.24 |
Media Library /wp-admin/upload.php | 3.12 ▲0.11 | 49.23 ▲9.01 |
HTML5 Presentations /wp-admin/options-general.php?page=html5presentation-settings | 3.09 | 37.66 |
Add New /wp-admin/post-new.php?post_type=html5presentation | 3.22 | 61.47 |
HTML5 Presentations /wp-admin/edit.php?post_type=html5presentation | 3.16 | 44.76 |
Server storage [IO: ▲1.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 1 new option
New WordPress options |
---|
include-wp_footer |
Browser metrics Passed 4 tests
This is an overview of browser requirements for HTML5 Slideshow Presentations
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,738 ▲125 | 16.20 ▲0.65 | 7.93 ▼7.25 | 57.16 ▼3.00 |
Dashboard /wp-admin | 3,003 ▲72 | 6.06 ▼0.03 | 203.19 ▲6.12 | 142.03 ▲3.57 |
Posts /wp-admin/edit.php | 2,784 ▲45 | 2.70 ▲0.00 | 114.12 ▲18.69 | 104.72 ▼174.34 |
Add New Post /wp-admin/post-new.php | 1,714 ▲44 | 15.73 ▲1.00 | 490.63 ▼18.78 | 128.19 ▼7.43 |
Media Library /wp-admin/upload.php | 1,852 ▲45 | 5.05 ▲0.03 | 185.65 ▼17.68 | 137.24 ▲1.60 |
HTML5 Presentations /wp-admin/options-general.php?page=html5presentation-settings | 1,165 | 2.21 | 68.08 | 96.53 |
Add New /wp-admin/post-new.php?post_type=html5presentation | 3,066 | 9.05 | 552.88 | 284.63 |
HTML5 Presentations /wp-admin/edit.php?post_type=html5presentation | 1,485 | 2.63 | 83.69 | 89.26 |
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 were found after uninstall: 1 option
- include-wp_footer
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/html5-slideshow-presentations/html5presentation-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/html5-slideshow-presentations/html5-presentation-template.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/html5-slideshow-presentations/html5_slideshow_presentation.php:13
- > 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)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Sample slide.), #2 (Title slide edit screen.), #3 (Slide Management.), #4 (Plugin Options.), #5 (Create a WordPress Page, and choose your presentation.)
- Plugin Name: You should set the name of your plugin on the first line (
=== HTML5 Slideshow Presentations===
)
html5-slideshow-presentations/html5_slideshow_presentation.php 92% from 13 tests
The principal PHP file in "HTML5 Slideshow Presentations" v. 1.0.7 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("html5-slideshow-presentations.php" instead of "html5_slideshow_presentation.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected2,875 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 202 | 447 | 1,354 |
PHP | 4 | 180 | 37 | 904 |
CSS | 2 | 140 | 37 | 617 |
PHP code Passed 2 tests
This is a very shot review 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.43 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 27 | |
▷ Named functions | 27 | 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
11 PNG files occupy 0.24MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/wordpress-logo-small.png | 4.07KB | 3.74KB | ▼ 8.21% |
images/html5-icon.png | 1.58KB | 1.44KB | ▼ 8.48% |
images/example-graph.png | 26.33KB | 15.77KB | ▼ 40.08% |
images/zigzag.png | 0.15KB | 0.15KB | 0.00% |
images/wordpress-pie-chart.png | 34.18KB | 12.59KB | ▼ 63.16% |