Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.91ms] Passed 4 tests
Analyzing server-side resources used by FitVids for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 38.43 ▲1.69 |
Dashboard /wp-admin | 3.34 ▲0.03 | 48.36 ▼4.27 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.83 ▼2.43 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 94.10 ▼5.26 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.67 ▲0.33 |
FitVids /wp-admin/themes.php?page=fitvids-wp | 3.37 | 33.79 |
Server storage [IO: ▲0.10MB] [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, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
FitVids for WordPress: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲167 | 13.57 ▼0.71 | 10.19 ▲8.60 | 42.37 ▲1.40 |
Dashboard /wp-admin | 2,202 ▲22 | 5.57 ▼0.08 | 94.52 ▲5.48 | 39.84 ▼6.05 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.00 ▼0.02 | 35.88 ▼2.70 | 33.22 ▼1.99 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 18.37 ▼4.79 | 664.70 ▼18.04 | 64.58 ▲6.42 |
Media Library /wp-admin/upload.php | 1,407 ▲13 | 4.28 ▲0.13 | 100.41 ▼1.80 | 44.59 ▲2.99 |
FitVids /wp-admin/themes.php?page=fitvids-wp | 976 | 2.00 | 22.43 | 27.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/fitvids-for-wordpress/uninstall.php
- > /wp-content/plugins/fitvids-for-wordpress/admin.php
- > /wp-content/plugins/fitvids-for-wordpress/help.php
- > /wp-content/plugins/fitvids-for-wordpress/fitvids-for-wordpress.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: fitvids, videos, responsive
fitvids-for-wordpress/fitvids-for-wordpress.php Passed 13 tests
The main PHP file in "FitVids for WordPress" ver. 3.0.13 adds more information about the plugin and also serves as the entry point for this plugin
81 characters long description:
This plugin makes videos responsive using the FitVids jQuery plugin on WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected304 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 35 | 9 | 240 |
JavaScript | 1 | 13 | 12 | 64 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 49.35KB | 29.15KB | ▼ 40.93% |