Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- This plugin did not install gracefully
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.96ms] Passed 4 tests
Analyzing server-side resources used by Speedy Video
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.00 | 42.91 ▼1.67 |
Dashboard /wp-admin | 3.35 ▲0.00 | 53.12 ▼0.87 |
Posts /wp-admin/edit.php | 3.40 ▲0.00 | 46.45 ▼5.28 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.00 | 83.63 ▼12.00 |
Media Library /wp-admin/upload.php | 3.27 ▲0.00 | 37.07 ▼0.71 |
Server storage [IO: ▲1.46MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 113 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Speedy Video: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▲0.07 | 1.76 ▼0.34 | 44.08 ▲0.52 |
Dashboard /wp-admin | 2,195 ▲18 | 5.63 ▲0.09 | 88.01 ▼12.30 | 41.87 ▲0.98 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.02 ▲0.05 | 35.51 ▼2.51 | 33.44 ▼2.47 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 22.91 ▼0.37 | 655.41 ▲2.23 | 54.97 ▲4.20 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.21 ▼0.06 | 97.38 ▼12.09 | 44.35 ▼5.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 17× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/speedy-video/admin/sampleTracks/Ivy.php
- > /wp-content/plugins/speedy-video/public/partials/speedyvideo-public-display.php
- > /wp-content/plugins/speedy-video/admin/sampleTracks/Justin.php
- > /wp-content/plugins/speedy-video/admin/sampleTracks/Matthew.php
- > /wp-content/plugins/speedy-video/admin/sampleTracks/Aditi.php
- > /wp-content/plugins/speedy-video/admin/sampleTracks/Kendra.php
- > /wp-content/plugins/speedy-video/admin/sampleTracks/Amy.php
- > /wp-content/plugins/speedy-video/admin/sampleTracks/Nicole.php
- > /wp-content/plugins/speedy-video/admin/partials/speedyvideo-admin-display.php
- > /wp-content/plugins/speedy-video/admin/sampleTracks/Brian.php
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 83% from 29 tests
readme.txt 81% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Donate link: Invalid URI found ("")
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== speedy-video ===
) - Stable tag: Empty value
speedy-video/speedyvideo.php 85% from 13 tests
The main file in "Speedy Video" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("speedy-video.php" instead of "speedyvideo.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,159 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 522 | 692 | 1,153 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
A short 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.12 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 18 | 78.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 21.74% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
51 PNG files occupy 0.97MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/videoimage06.png | 4.63KB | 4.35KB | ▼ 5.97% |
admin/images/Russell.png | 1.16KB | 1.03KB | ▼ 11.52% |
admin/images/Salli.png | 0.97KB | 0.85KB | ▼ 12.40% |
admin/images/videoimage05.png | 4.63KB | 4.35KB | ▼ 5.97% |
admin/images/BlaclBlackAbstract.png | 30.58KB | 16.75KB | ▼ 45.24% |