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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 35.53 ▲13.52 |
Dashboard /wp-admin | 3.08 ▲0.02 | 56.53 ▲5.23 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 45.62 ▼3.46 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.00 | 85.16 ▼586.54 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,685 ▲89 | 15.89 ▲0.30 | 9.90 ▼1.63 | 47.07 ▼3.91 |
Dashboard /wp-admin | 2,970 ▲39 | 5.94 ▲0.03 | 142.27 ▼30.46 | 101.43 ▼23.97 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.01 | 69.14 ▲1.21 | 87.99 ▼1.43 |
Add New Post /wp-admin/post-new.php | 1,619 ▲4 | 21.49 ▲0.08 | 289.98 ▼27.10 | 108.89 ▼4.90 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.05 ▲0.01 | 184.44 ▲8.18 | 111.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 42 | 30 | 189 |
JavaScript | 2 | 20 | 5 | 95 |
CSS | 2 | 15 | 2 | 91 |
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 code | 0.20 |
Average class complexity | 3.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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 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