Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.39ms] Passed 4 tests
Analyzing server-side resources used by html5-slideshow
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.28 ▼5.45 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.71 ▼10.44 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.99 ▼4.14 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.13 ▼5.53 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.69 ▲0.42 |
Server storage [IO: ▲1.00MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by html5-slideshow
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.11 ▼1.25 | 1.94 ▲0.24 | 43.83 ▲6.86 |
Dashboard /wp-admin | 2,206 ▲17 | 5.90 ▲0.92 | 104.90 ▼17.17 | 39.52 ▼2.16 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.05 ▲0.03 | 35.25 ▼1.94 | 33.05 ▲3.35 |
Add New Post /wp-admin/post-new.php | 1,535 ▲15 | 23.16 ▼0.14 | 603.81 ▼16.79 | 73.59 ▲10.32 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.23 ▼0.02 | 98.00 ▼0.00 | 41.50 ▼0.95 |
Uninstaller [IO: ▲1.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the followingThis plugin does not fully uninstall, leaving 6 options in the database
- Uninstaller has failed for this plugin, leaving 15 files (1.00MB) in the plugin directory
- (new file) img/photos/4.jpg
- (new file) img/arrows.png
- (new file) img/bg.jpg
- (new file) classes/ht5_list_table.php
- (new file) index.php
- (new file) html5-slideshow.html
- (new file) img/photos/2.jpg
- (new file) img/photos/3.jpg
- (new file) readme.txt
- (new file) img/photos/1.jpg
- ...
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/html5-slideshow/index.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/html5-slideshow/classes/ht5_list_table.php on line 5
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/html5-slideshow/classes/ht5_list_table.php on line 5
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/html5-slideshow/classes/ht5_list_table.php on line 5
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #1 (Show all images of slider.), #2 (Add new image), #3 (Demo version)
html5-slideshow/index.php 85% from 13 tests
"html5-slideshow" version 3.1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("html5-slideshow.php" instead of "index.php")
- Description: Keep the plugin description shorter than 140 characters (currently 185 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin637 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 53 | 29 | 391 |
CSS | 1 | 30 | 10 | 133 |
JavaScript | 1 | 46 | 28 | 89 |
HTML | 1 | 9 | 0 | 24 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 78.95% |
▷ Protected methods | 4 | 21.05% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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 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 0.72MB with 0.49MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/arrows.png | 7.35KB | 3.35KB | ▼ 54.44% |
screenshot-1.png | 74.82KB | 22.20KB | ▼ 70.33% |
screenshot-2.png | 220.56KB | 61.52KB | ▼ 72.11% |
screenshot-3.png | 430.96KB | 109.88KB | ▼ 74.50% |