Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼11.67MB] [CPU: ▼2,440,549.97ms] Passed 4 tests
A check of server-side resources used by Easy Embed for Social Media Wall
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▼47.21 | 42.46 ▼9,762,200.53 |
Dashboard /wp-admin | 50.83 ▲47.44 | 9,771,664.39 ▲9,771,594.63 |
Posts /wp-admin/edit.php | 3.61 ▲0.21 | 49.94 ▼0.42 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.17 | 101.20 ▼6.36 |
Media Library /wp-admin/upload.php | 3.42 ▲0.15 | 40.90 ▲7.42 |
Easy Embed for Social Media Wall /wp-admin/options-general.php?page=eefsm-fb-api | 3.37 | 35.00 |
Server storage [IO: ▲1.34MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Easy Embed for Social Media Wall
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲162 | 13.51 ▼0.72 | 9.07 ▲7.47 | 44.65 ▲5.11 |
Dashboard /wp-admin | 2,218 ▲44 | 5.81 ▲0.21 | 90.46 ▼4.17 | 41.40 ▲4.10 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 2.29 ▲0.29 | 41.16 ▲3.36 | 38.35 ▲3.73 |
Add New Post /wp-admin/post-new.php | 1,550 ▲24 | 23.18 ▼0.35 | 661.15 ▼49.28 | 37.62 ▼32.16 |
Media Library /wp-admin/upload.php | 1,433 ▲33 | 4.28 ▼0.12 | 97.92 ▼19.20 | 47.08 ▼2.84 |
Easy Embed for Social Media Wall /wp-admin/options-general.php?page=eefsm-fb-api | 1,244 | 1.91 | 28.18 | 37.63 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=eefsm-fb-api
- > Notice in wp-content/plugins/easy-embed-for-social-media/admin/partials/easy-embed-for-Social-Media-admin-display.php+198
Trying to access array offset on value of type bool
- 13 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=eefsm-fb-api
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 13 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=eefsm-fb-api
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/easy-embed-for-social-media/admin/partials/easy-embed-for-Social-Media-admin-display.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_remote_get() in wp-content/plugins/easy-embed-for-social-media/public/partials/easy-embed-for-Social-Media-public-display.php:21
- > PHP Notice
Undefined variable: fb_page_id in wp-content/plugins/easy-embed-for-social-media/public/partials/easy-embed-for-Social-Media-public-display.php on line 20
- > PHP Notice
Undefined variable: access_token in wp-content/plugins/easy-embed-for-social-media/public/partials/easy-embed-for-Social-Media-public-display.php on line 18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 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
8 plugin tags: facebook, facebook live, wordpress plugin for facebook, video embed, wordpress plugin for facebook feed...
easy-embed-for-social-media/easy-embed-for-Social-Media.php 85% from 13 tests
"Easy Embed for Social Media Wall" version 1.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: The principal plugin file should be the same as the plugin slug ("easy-embed-for-social-media.php" instead of "easy-embed-for-Social-Media.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin787 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 181 | 639 | 611 |
CSS | 2 | 2 | 10 | 87 |
JavaScript | 2 | 5 | 54 | 83 |
SVG | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 5.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.24% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
18 PNG files occupy 0.65MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/cross.png | 2.67KB | 2.12KB | ▼ 20.80% |
admin/img/slide6.png | 20.96KB | 11.08KB | ▼ 47.12% |
admin/img/twitch-player.png | 6.97KB | 4.26KB | ▼ 38.90% |
admin/img/twitch-wall.png | 7.49KB | 4.16KB | ▼ 44.49% |
admin/img/slide5.png | 28.56KB | 16.82KB | ▼ 41.10% |