Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.88ms] Passed 4 tests
Analyzing server-side resources used by Display Embedded Videos by D.Biota
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 43.42 ▼4.42 |
Dashboard /wp-admin | 3.32 ▲0.02 | 51.20 ▼3.12 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.14 ▼1.92 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 94.99 ▼2.07 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.90 ▲1.96 |
Display Embedded Videos by D.Biota /wp-admin/options-general.php?page=display-embedded-videos-by-db | 3.21 | 32.62 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_displayembeddedvideosbydb |
New WordPress options |
---|
displayembeddedvideosbydb_tb_name |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
displayembeddedvideosbydb_flag_recreation |
displayembeddedvideosbydb_db_version |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Display Embedded Videos by D.Biota
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲152 | 13.66 ▼0.39 | 8.85 ▲6.77 | 45.11 ▲0.58 |
Dashboard /wp-admin | 2,216 ▲25 | 4.85 ▼0.01 | 101.00 ▼5.28 | 42.39 ▼3.05 |
Posts /wp-admin/edit.php | 2,102 ▲10 | 2.00 ▲0.01 | 40.69 ▼0.85 | 33.73 ▼2.49 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.36 ▲5.13 | 686.42 ▲46.36 | 51.48 ▲0.55 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.23 ▼0.04 | 100.04 ▼6.91 | 46.42 ▲2.85 |
Display Embedded Videos by D.Biota /wp-admin/options-general.php?page=display-embedded-videos-by-db | 953 | 2.22 | 26.40 | 29.93 |
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
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/display-embedded-videos-by-dbiota/display-embedded-videos-by-dbiota.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/display-embedded-videos-by-dbiota/uninstall.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/display-embedded-videos-by-dbiota/display-embedded-videos-by-dbiota-ajax-functions.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 17 tag instead of maximum 10
display-embedded-videos-by-dbiota/display-embedded-videos-by-dbiota.php Passed 13 tests
This is the main PHP file of "Display Embedded Videos by D.Biota" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
84 characters long description:
You can display a gallery of the embedded Youtube and Vimeo videos within your site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected695 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 234 | 128 | 553 |
JavaScript | 2 | 23 | 9 | 112 |
CSS | 2 | 8 | 1 | 30 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 20 | |
▷ Named functions | 20 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/gopro.png | 6.05KB | 2.68KB | ▼ 55.65% |