Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.71ms] Passed 4 tests
Analyzing server-side resources used by Post Embeds - Customize your WordPress post embeds
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.65 ▼10.74 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.76 ▼8.36 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 51.16 ▼0.34 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 89.59 ▼3.38 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.22 ▲1.47 |
Post Embeds /wp-admin/options-general.php?page=vg_post_embeds | 3.20 | 33.41 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
vg_post_embeds_settings |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Post Embeds - Customize your WordPress post embeds
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.38 ▲0.08 | 2.11 ▲0.08 | 39.79 ▼6.24 |
Dashboard /wp-admin | 2,199 ▲19 | 5.64 ▼0.02 | 92.72 ▼10.62 | 38.50 ▼7.46 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▼0.05 | 42.06 ▲4.90 | 38.26 ▲3.27 |
Add New Post /wp-admin/post-new.php | 1,548 ▲15 | 23.06 ▼0.08 | 659.77 ▼5.24 | 54.57 ▲2.72 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.23 ▲0.01 | 99.38 ▼6.12 | 46.18 ▲2.33 |
Post Embeds /wp-admin/options-general.php?page=vg_post_embeds | 1,063 | 2.02 | 28.03 | 24.98 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- vg_post_embeds_settings
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)
The smoke test was a success, however most plugin functionality was not tested
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
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/post-embeds/templates/default.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function has_post_thumbnail() in wp-content/plugins/post-embeds/templates/parts/image.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/post-embeds/templates/social-bird.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/post-embeds/templates/social-mark.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/post-embeds/templates/404.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: post, embeds, design
post-embeds/post-embeds.php 92% from 13 tests
The principal PHP file in "Post Embeds - Customize your WordPress post embeds" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
- Requires PHP: The required version number did not match the one declared in readme.txt ("5.6" instead of "5.6.20")
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
Everything looks great! No dangerous files found in this plugin1,937 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 142 | 213 | 951 |
Sass | 4 | 170 | 0 | 793 |
JavaScript | 1 | 44 | 26 | 179 |
JSON | 1 | 0 | 0 | 11 |
CSS | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview 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.51 |
Average class complexity | 84.00 |
▷ Minimum class complexity | 84.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 5.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 89.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 10.53% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin