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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.55MB] [CPU: ▼291.28ms] Passed 4 tests
Server-side resources used by Magic Embeds
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.10 ▲0.58 | 56.04 ▲5.17 |
Dashboard /wp-admin | 3.96 ▲0.55 | 37.02 ▲2.89 |
Posts /wp-admin/edit.php | 4.18 ▲0.54 | 39.99 ▲1.69 |
Add New Post /wp-admin/post-new.php | 7.49 ▲0.52 | 96.67 ▼1,174.88 |
Media Library /wp-admin/upload.php | 3.91 ▲0.61 | 30.68 ▲6.62 |
Embed Facebook /wp-admin/options-general.php?page=embedfacebook | 3.93 | 27.52 |
Server storage [IO: ▲0.85MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 45 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_wef_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Magic Embeds
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,995 ▲241 | 17.80 ▲1.57 | 43.57 ▲37.38 | 19.58 ▲17.06 |
Dashboard /wp-admin | 2,943 ▲56 | 6.47 ▼0.03 | 130.81 ▼14.41 | 169.74 ▲3.42 |
Posts /wp-admin/edit.php | 2,730 ▲39 | 3.45 ▲0.02 | 63.71 ▼1.96 | 140.90 ▼6.38 |
Add New Post /wp-admin/post-new.php | 1,775 ▲114 | 21.45 ▲4.69 | 461.96 ▲8.94 | 173.07 ▲13.48 |
Media Library /wp-admin/upload.php | 1,734 ▲36 | 5.74 ▲0.05 | 148.32 ▲1.89 | 207.82 ▲10.76 |
Embed Facebook /wp-admin/options-general.php?page=embedfacebook | 4,622 | 3.04 | 60.16 | 161.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_wef_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-embed-facebook/templates/custom-embeds/photo.php
- > /wp-content/plugins/wp-embed-facebook/templates/custom-embeds/album.php
- 71× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: type in wp-content/plugins/wp-embed-facebook/templates/custom-embeds/social-plugin.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-embed-facebook/templates/custom-embeds/photo.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'SIGAMI\\WP_Embed_FB\\Plugin' not found in wp-content/plugins/wp-embed-facebook/templates/custom-embeds/post.php:19
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-embed-facebook/templates/custom-embeds/album.php on line 20
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-embed-facebook/templates/custom-embeds/album.php on line 13
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-embed-facebook/templates/custom-embeds/post.php on line 13
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-embed-facebook/templates/custom-embeds/post.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-embed-facebook/templates/custom-embeds/post.php on line 8
- > PHP Notice
Undefined variable: fb_data in wp-content/plugins/wp-embed-facebook/templates/custom-embeds/page.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-embed-facebook/templates/custom-embeds/page.php:25
- > PHP Notice
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
wp-embed-facebook/wp-embed-facebook.php 92% from 13 tests
This is the main PHP file of "Magic Embeds" version 3.0.10, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 334 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected4,205 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 442 | 1,053 | 3,252 |
Sass | 2 | 68 | 10 | 480 |
JavaScript | 4 | 75 | 59 | 433 |
CSS | 3 | 4 | 3 | 40 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 26.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 95.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 1 | 7.14% |
▷ Concrete classes | 13 | 92.86% |
▷ Final classes | 4 | 30.77% |
Methods | 124 | |
▷ Static methods | 96 | 77.42% |
▷ Public methods | 116 | 93.55% |
▷ Protected methods | 3 | 2.42% |
▷ Private methods | 5 | 4.03% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.60MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/banners/WPEmbedFBExtended.png | 564.55KB | 239.05KB | ▼ 57.66% |
inc/banners/icon-128x128.png | 10.29KB | 4.36KB | ▼ 57.64% |
inc/banners/icon-256x256.png | 13.23KB | 5.32KB | ▼ 59.78% |
templates/images/share.png | 0.71KB | 0.78KB | 0.00% |
templates/images/like.png | 0.68KB | 0.78KB | 0.00% |