Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲3.83MB] [CPU: ▼284.49ms] 75% from 4 tests
Server-side resources used by Simple Social Page Widget & Shortcode
Please take the time to fix the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,800.19ms on /wp-admin/options-general.php?page=simple-facebook-twitter-widget)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.68 ▲4.16 | 74.35 ▼1.81 |
Dashboard /wp-admin | 7.70 ▲4.29 | 57.96 ▲19.44 |
Posts /wp-admin/edit.php | 7.70 ▲4.06 | 61.21 ▲22.35 |
Add New Post /wp-admin/post-new.php | 9.79 ▲2.82 | 113.14 ▼1,177.93 |
Media Library /wp-admin/upload.php | 7.70 ▲4.40 | 58.84 ▲32.18 |
Freemius Debug [v.2.2.4] /wp-admin/admin.php?page=freemius | 7.70 | 45.55 |
Simple Facebook Settings /wp-admin/options-general.php?page=simple-facebook-twitter-widget | 7.70 | 1,800.19 |
Server storage [IO: ▲3.43MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 219 new files
Database: no new tables, 7 new options
New WordPress options |
---|
fs_api_cache |
fs_accounts |
fs_gdpr |
widget_simple_facebook_page_feed_widget |
fs_active_plugins |
simple-facebook-page-plugin |
fs_debug_mode |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Social Page Widget & Shortcode
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,811 ▲57 | 16.11 ▲0.54 | 38.56 ▲31.87 | 2.24 ▼0.54 |
Dashboard /wp-admin | 2,924 ▲73 | 6.01 ▼0.15 | 132.45 ▼11.33 | 182.22 ▲26.47 |
Posts /wp-admin/edit.php | 2,724 ▲36 | 3.24 ▼0.01 | 63.04 ▼1.44 | 147.47 ▲3.36 |
Add New Post /wp-admin/post-new.php | 1,650 ▼11 | 17.34 ▲1.34 | 425.03 ▲30.47 | 175.63 ▲0.47 |
Media Library /wp-admin/upload.php | 1,725 ▲30 | 5.53 ▲0.04 | 163.27 ▲12.31 | 295.21 ▲90.82 |
Freemius Debug [v.2.2.4] /wp-admin/admin.php?page=freemius | 1,451 | 2.54 | 55.03 | 127.44 |
Simple Facebook Settings /wp-admin/options-general.php?page=simple-facebook-twitter-widget | 1,263 | 2.63 | 56.03 | 164.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
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- fs_gdpr
- simple-facebook-page-plugin
- fs_api_cache
- widget_simple_facebook_page_feed_widget
- fs_active_plugins
- fs_debug_mode
- fs_accounts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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 take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/simple-facebook-twitter-widget/lib/freemius/templates/ajax-loader.php
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/simple-facebook-twitter-widget/lib/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/simple-facebook-twitter-widget/lib/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/simple-facebook-twitter-widget/lib/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/simple-facebook-twitter-widget/lib/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/simple-facebook-twitter-widget/lib/freemius/templates/account/partials/addon.php:9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/simple-facebook-twitter-widget/lib/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/simple-facebook-twitter-widget/lib/freemius/templates/partials/network-activation.php:6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/simple-facebook-twitter-widget/lib/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: facebook widget, facebook page shortcode, social widget, facebook page widget, social shortcode...
simple-facebook-twitter-widget/simple-facebook-page-plugin.php 85% from 13 tests
This is the main PHP file of "Simple Social Page Widget & Shortcode" version 1.7.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("simple-facebook-twitter-widget.php" instead of "simple-facebook-page-plugin.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin43,939 lines of code in 173 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 105 | 6,491 | 14,969 | 26,978 |
PO File | 12 | 5,571 | 6,688 | 12,092 |
Sass | 28 | 399 | 77 | 2,515 |
JavaScript | 8 | 150 | 111 | 1,493 |
CSS | 13 | 33 | 28 | 549 |
Markdown | 3 | 80 | 0 | 247 |
JSON | 2 | 0 | 0 | 37 |
YAML | 2 | 2 | 0 | 28 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,360)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 74.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,360.00 |
Average method complexity | 4.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 83.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 46 | |
▷ Abstract classes | 2 | 4.35% |
▷ Concrete classes | 44 | 95.65% |
▷ Final classes | 0 | 0.00% |
Methods | 1,051 | |
▷ Static methods | 166 | 15.79% |
▷ Public methods | 737 | 70.12% |
▷ Protected methods | 15 | 1.43% |
▷ Private methods | 299 | 28.45% |
Functions | 116 | |
▷ Named functions | 116 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 126 | |
▷ Global constants | 106 | 84.13% |
▷ Class constants | 20 | 15.87% |
▷ Public constants | 20 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
lib/chosen/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
lib/freemius/assets/img/simple-facebook-twitter-widget.png | 57.51KB | 10.59KB | ▼ 81.58% |
lib/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
lib/chosen/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |