Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.48ms] Passed 4 tests
This is a short check of server-side resources used by Lazy Embeds
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 36.69 ▼7.28 |
Dashboard /wp-admin | 3.32 ▲0.01 | 45.86 ▼2.01 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.69 ▼4.68 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.94 ▼9.94 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 31.86 ▼4.00 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Lazy Embeds
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.27 ▼1.11 | 2.05 ▲0.28 | 44.72 ▼0.89 |
Dashboard /wp-admin | 2,209 ▲24 | 5.91 ▲0.10 | 99.44 ▼5.26 | 38.83 ▼1.67 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.03 ▲0.01 | 36.56 ▼7.15 | 33.29 ▼2.83 |
Add New Post /wp-admin/post-new.php | 1,533 ▼1 | 23.35 ▲0.44 | 676.94 ▲63.57 | 57.28 ▼17.38 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.19 ▼0.03 | 96.43 ▼5.99 | 40.90 ▼2.70 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Lazy_Embeds\\Base' not found in wp-content/plugins/lazy-embeds/includes/class-vimeo.php:5
- > PHP Fatal error
Uncaught Error: Class 'Lazy_Embeds\\Base' not found in wp-content/plugins/lazy-embeds/includes/class-youtube.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: videos, vimeo, video, embed, embeds...
lazy-embeds/lazy-embeds.php Passed 13 tests
The principal PHP file in "Lazy Embeds" v. 1.0.0 is loaded by WordPress automatically on each request
43 characters long description:
Lazy embeds for the WordPress Block Editor.
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
Everything looks great! No dangerous files found in this plugin230 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 72 | 97 | 228 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 7.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 57.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 42.11% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
There were not PNG files found in your plugin