100% fast-video-and-image-display

Code Review | Fast Video and Image Display

WordPress plugin Fast Video and Image Display scored 100% from 54 tests.

About plugin

  • Plugin page: fast-video-and-im...
  • Plugin version: 2.5.2
  • PHP compatiblity: 5.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.0.2
  • WordPress version: 5.8.1
  • First release: May 27, 2016
  • Latest release: Dec 30, 2018
  • Number of updates: 59
  • Update frequency: every 16.1 days
  • Top authors: samperrow (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

30+ active / 2,260 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼146.93ms] Passed 4 tests

A check of server-side resources used by Fast Video and Image Display
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1435.53 ▲13.52
Dashboard /wp-admin3.08 ▲0.0256.53 ▲5.23
Posts /wp-admin/edit.php3.13 ▲0.0245.62 ▼3.46
Add New Post /wp-admin/post-new.php5.44 ▲0.0085.16 ▼586.54
Media Library /wp-admin/upload.php3.02 ▲0.0234.63 ▼2.93

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Fast Video and Image Display
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,685 ▲8915.89 ▲0.309.90 ▼1.6347.07 ▼3.91
Dashboard /wp-admin2,970 ▲395.94 ▲0.03142.27 ▼30.46101.43 ▼23.97
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0169.14 ▲1.2187.99 ▼1.43
Add New Post /wp-admin/post-new.php1,619 ▲421.49 ▲0.08289.98 ▼27.10108.89 ▼4.90
Media Library /wp-admin/upload.php1,812 ▲55.05 ▲0.01184.44 ▲8.18111.14 ▼25.87

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

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, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: shortcode, video, web speed, media display, web perf...

fast-video-and-image-display/admin.php 92% from 13 tests

"Fast Video and Image Display" version 2.5.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 ("fast-video-and-image-display.php" instead of "admin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin375 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP34230189
JavaScript220595
CSS215291

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity3.50
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected