Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.87ms] Passed 4 tests
An overview of server-side resources used by Simple Page Embed
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 46.08 ▲5.37 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.59 ▼5.91 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 50.65 ▲0.26 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 88.13 ▼29.38 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.00 ▲3.56 |
SwiftNinjaPro Settings /wp-admin/admin.php?page=swiftninjapro-settings | 3.23 | 37.51 |
Facebook Embed /wp-admin/admin.php?page=swiftninjapro-facebook-embed | 3.29 | 35.32 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Simple Page Embed: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.76 ▲0.39 | 2.27 ▲0.43 | 42.51 ▼1.59 |
Dashboard /wp-admin | 2,209 ▲32 | 5.57 ▼0.03 | 84.33 ▼1.53 | 71.16 ▲29.96 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 1.99 ▼0.04 | 34.77 ▼4.83 | 37.68 ▲4.61 |
Add New Post /wp-admin/post-new.php | 1,563 ▲37 | 23.05 ▼0.48 | 770.01 ▲97.06 | 67.05 ▲7.20 |
Media Library /wp-admin/upload.php | 1,429 ▲32 | 4.12 ▼0.09 | 93.95 ▼10.49 | 68.86 ▲24.12 |
SwiftNinjaPro Settings /wp-admin/admin.php?page=swiftninjapro-settings | 797 | 2.00 | 24.85 | 27.31 |
Facebook Embed /wp-admin/admin.php?page=swiftninjapro-facebook-embed | 895 | 2.12 | 22.94 | 29.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=swiftninjapro-facebook-embed
- > Warning in wp-content/plugins/swiftninjapro-facebook-embed/templates/admin.php+94
Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)
SRP 50% 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
Please fix the following items
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/swiftninjapro-facebook-embed/templates/settings-info.php
- > /wp-content/plugins/swiftninjapro-facebook-embed/templates/admin.php
- > /wp-content/plugins/swiftninjapro-facebook-embed/swiftninjapro-facebook-embed.php
- > /wp-content/plugins/swiftninjapro-facebook-embed/main.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: embed, social, page, responsive, fb...
swiftninjapro-facebook-embed/swiftninjapro-facebook-embed.php Passed 13 tests
"Simple Page Embed" version 1.1.11's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
49 characters long description:
Embed a responsive Facebook page to your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected429 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 92 | 33 | 384 |
JavaScript | 1 | 5 | 0 | 30 |
CSS | 1 | 1 | 0 | 15 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
2 PNG files occupy 0.47MB with 0.27MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/example-image1.png | 476.84KB | 131.36KB | ▼ 72.45% |
assets/settings_icon.png | 3.27KB | 1.85KB | ▼ 43.48% |