10% speedy-video

Code Review | Speedy Video

WordPress plugin Speedy Video scored10%from 54 tests.

About plugin

  • Plugin page: speedy-video
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 4, 2018
  • Latest release: Jan 8, 2018
  • Number of updates: 12
  • Update frequency: every 0.6 days
  • Top authors: ragnew (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /641 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0042.91 ▼1.67
Dashboard /wp-admin3.35 ▲0.0053.12 ▼0.87
Posts /wp-admin/edit.php3.40 ▲0.0046.45 ▼5.28
Add New Post /wp-admin/post-new.php5.93 ▲0.0083.63 ▼12.00
Media Library /wp-admin/upload.php3.27 ▲0.0037.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.071.76 ▼0.3444.08 ▲0.52
Dashboard /wp-admin2,195 ▲185.63 ▲0.0988.01 ▼12.3041.87 ▲0.98
Posts /wp-admin/edit.php2,097 ▼32.02 ▲0.0535.51 ▼2.5133.44 ▼2.47
Add New Post /wp-admin/post-new.php1,526 ▼222.91 ▼0.37655.41 ▲2.2354.97 ▲4.20
Media Library /wp-admin/upload.php1,394 ▼64.21 ▼0.0697.38 ▼12.0944.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
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
PHP365226921,153
JavaScript24546
CSS2080

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 code0.12
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.30
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods1878.26%
▷ Protected methods00.00%
▷ Private methods521.74%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
admin/images/videoimage06.png4.63KB4.35KB▼ 5.97%
admin/images/Russell.png1.16KB1.03KB▼ 11.52%
admin/images/Salli.png0.97KB0.85KB▼ 12.40%
admin/images/videoimage05.png4.63KB4.35KB▼ 5.97%
admin/images/BlaclBlackAbstract.png30.58KB16.75KB▼ 45.24%