Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼4.98ms] Passed 4 tests
Analyzing server-side resources used by Blrt WP Embed
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 42.37 ▼0.11 |
Dashboard /wp-admin | 3.47 ▲0.17 | 49.52 ▼5.60 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 46.78 ▼2.56 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 87.45 ▼11.66 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 36.09 ▲0.79 |
Add New Gallery /wp-admin/admin.php?page=blrt-add-gallery | 3.39 | 41.77 |
Blrt Galleries /wp-admin/admin.php?page=blrt-galleries | 3.36 | 33.45 |
Blrt Web /wp-admin/admin.php?page=blrt-web | 3.36 | 33.13 |
Settings /wp-admin/admin.php?page=blrt-settings | 3.36 | 37.04 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 39 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_blrtwpembed |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
blrtwpembed_table_gallery_version |
blrtwpembed_table_previous_versions |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
blrt_web_settings |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Blrt WP Embed
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲120 | 13.22 ▼1.40 | 2.07 ▼0.19 | 42.43 ▼2.11 |
Dashboard /wp-admin | 2,260 ▲72 | 5.84 ▼0.07 | 99.65 ▼10.02 | 38.85 ▼5.51 |
Posts /wp-admin/edit.php | 2,143 ▲54 | 2.02 ▲0.01 | 39.20 ▲2.53 | 34.94 ▼0.83 |
Add New Post /wp-admin/post-new.php | 1,555 ▲41 | 23.48 ▲5.82 | 673.70 ▼5.97 | 54.65 ▼0.02 |
Media Library /wp-admin/upload.php | 1,445 ▲57 | 4.23 ▲0.07 | 100.95 ▲1.21 | 43.08 ▼0.21 |
Add New Gallery /wp-admin/admin.php?page=blrt-add-gallery | 1,098 | 2.09 | 32.32 | 77.56 |
Blrt Galleries /wp-admin/admin.php?page=blrt-galleries | 873 | 1.81 | 28.43 | 28.99 |
Blrt Web /wp-admin/admin.php?page=blrt-web | 1,129 | 3.36 | 51.91 | 89.03 |
Settings /wp-admin/admin.php?page=blrt-settings | 923 | 1.95 | 26.67 | 28.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_blrtwpembed
- Zombie WordPress options were found after uninstall: 9 options
- widget_theysaidso_widget
- blrtwpembed_table_gallery_version
- blrt_web_settings
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- blrtwpembed_table_previous_versions
- widget_recent-posts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/blrt-wp-embed/blrt-wp-embed.php
- > /wp-content/plugins/blrt-wp-embed/includes/blrt-web.php
- > /wp-content/plugins/blrt-wp-embed/includes/blrt-mcebutton.php
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/blrt-wp-embed/includes/shortcodes.php:4
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/blrt-wp-embed/includes/blrt-add-gallery.php on line 16
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/blrt-wp-embed/includes/blrt-galleries.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/blrt-wp-embed/includes/blrt-settings.php:5
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/blrt-wp-embed/includes/blrt-galleries.php on line 5
- > PHP Fatal error
Uncaught Error: Call to a member function get_col() on null in wp-content/plugins/blrt-wp-embed/includes/blrt-add-gallery.php:17
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=blrt-web
- > Javascript (severe) in unknown
https://blrt.com/user/themes/landio/js/landio.min.js 17871:4 Uncaught ReferenceError: htmlVideo is not defined
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: oembed, embed, blrt
blrt-wp-embed/blrt-wp-embed.php Passed 13 tests
The main PHP script in "Blrt WP Embed" version 1.6.9 is automatically included on every request by WordPress
83 characters long description:
Enable Blrts and Blrt Galleries in your pages and posts - just like YouTube videos.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,169 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 99 | 75 | 1,037 |
HTML | 2 | 2 | 3 | 113 |
JavaScript | 8 | 0 | 8 | 8 |
CSS | 7 | 0 | 7 | 7 |
SVG | 4 | 0 | 0 | 4 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 86.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 13.79% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
8 PNG files occupy 0.13MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/img/placeholder-l.png | 7.58KB | 6.76KB | ▼ 10.85% |
dist/img/preview_snippet.png | 21.91KB | 7.45KB | ▼ 66.00% |
dist/img/blrt_grn_20x20.png | 0.22KB | 0.22KB | 0.00% |
dist/img/preview_player.png | 37.95KB | 12.55KB | ▼ 66.92% |
dist/img/placeholder-xl.png | 10.94KB | 10.67KB | ▼ 2.47% |