Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin cannot be installed
- > Parse error in wp-content/plugins/floating-video/optionsPage.php+136
syntax error, unexpected end of file
Server metrics [RAM: ▼0.01MB] [CPU: ▼11.04ms] Passed 4 tests
This is a short check of server-side resources used by Floating Video
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 50.23 ▲9.45 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.60 ▼20.70 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.65 ▼0.62 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.28 ▼22.68 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.66 ▼0.15 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Floating Video
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.25 ▼1.12 | 2.15 ▲0.52 | 50.80 ▲9.48 |
Dashboard /wp-admin | 2,206 ▲18 | 5.91 ▲0.78 | 100.66 ▼18.94 | 44.74 ▼3.90 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.06 ▲0.02 | 35.72 ▼4.79 | 32.99 ▼3.22 |
Add New Post /wp-admin/post-new.php | 1,514 ▼5 | 17.77 ▼5.26 | 683.10 ▲41.51 | 56.94 ▼7.69 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.21 ▲0.02 | 94.23 ▼9.89 | 41.11 ▼5.25 |
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 did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 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
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/floating-video/floating_video_plugin.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/floating-video/video_player.php:20
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/floating-video/optionsPage.php on line 136
- > PHP Fatal error
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)
No browser issues were found
Optimizations
Plugin configuration 93% from 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
4 plugin tags: video, mp4, youtube, sticky
floating-video/floating_video_plugin.php 85% from 13 tests
The main file in "Floating Video" v. 1.3.1 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:
- Description: Please keep the plugin description shorter than 140 characters (currently 146 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("floating-video.php" instead of "floating_video_plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin888 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 69 | 23 | 432 |
HTML | 1 | 21 | 0 | 213 |
JavaScript | 2 | 19 | 5 | 162 |
CSS | 1 | 7 | 0 | 81 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.36MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/Sshot1.png | 44.53KB | 20.46KB | ▼ 54.04% |
img/volume.png | 67.02KB | 21.03KB | ▼ 68.63% |
img/full.png | 43.99KB | 14.59KB | ▼ 66.83% |
figure_1.png | 62.74KB | 19.25KB | ▼ 69.33% |
img/play.png | 74.77KB | 22.20KB | ▼ 70.30% |