Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.25MB] [CPU: ▼6.50ms] Passed 4 tests
This is a short check of server-side resources used by Vimeo
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 41.78 ▲0.36 |
Dashboard /wp-admin | 3.59 ▲0.24 | 46.51 ▼16.40 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 49.40 ▲3.22 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.25 | 84.68 ▼12.16 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 37.31 ▲2.21 |
Vimeo Settings /wp-admin/options-general.php?page=vimeo_settings | 3.43 | 35.52 |
Server storage [IO: ▲1.17MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Vimeo
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,937 ▲191 | 14.02 ▼0.33 | 17.82 ▲16.03 | 43.06 ▲0.46 |
Dashboard /wp-admin | 2,207 ▲36 | 5.52 ▼0.14 | 82.06 ▼9.89 | 38.55 ▼0.11 |
Posts /wp-admin/edit.php | 2,115 ▲18 | 2.06 ▲0.06 | 35.08 ▼1.40 | 29.83 ▼5.47 |
Add New Post /wp-admin/post-new.php | 6,213 ▲4,687 | 27.36 ▲4.13 | 957.72 ▲333.82 | 38.32 ▼19.66 |
Media Library /wp-admin/upload.php | 1,470 ▲73 | 9.63 ▲5.37 | 230.20 ▲130.25 | 39.59 ▼4.11 |
Vimeo Settings /wp-admin/options-general.php?page=vimeo_settings | 1,461 | 6.36 | 56.81 | 72.34 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: product video, create, blocks, woocommerce video, vimeo...
vimeo/Core.php 77% from 13 tests
The main PHP file in "Vimeo" ver. 1.2.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("vimeo.php" instead of "Core.php")
- Description: Keep the plugin description shorter than 140 characters (currently 171 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,995 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 203 | 357 | 1,221 |
JavaScript | 5 | 7 | 1,582 | 770 |
CSS | 2 | 0 | 0 | 3 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 7.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 1 | 6.67% |
Methods | 73 | |
▷ Static methods | 6 | 8.22% |
▷ Public methods | 61 | 83.56% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 16.44% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 56 | |
▷ Global constants | 3 | 5.36% |
▷ Class constants | 53 | 94.64% |
▷ Public constants | 53 | 100.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.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
build/images/preview-example.78d08062.png | 53.80KB | 24.85KB | ▼ 53.80% |