Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▲1.52ms] Passed 4 tests
Analyzing server-side resources used by 10Web Social Post Feed
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 41.49 ▼10.45 |
Dashboard /wp-admin | 3.43 ▲0.13 | 52.05 ▲6.49 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 55.78 ▲5.70 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 103.43 ▲4.35 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 42.45 ▲10.39 |
Uninstall /wp-admin/admin.php?page=uninstall_ffwd | 3.64 | 40.83 |
Speed & Image Optimization /wp-admin/admin.php?page=twb_facebook-feed | 3.62 | 41.43 |
Options /wp-admin/admin.php?page=options_ffwd | 3.40 | 42.19 |
Server storage [IO: ▲5.65MB] [DB: ▲0.05MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 412 new files
Database: 5 new tables, 12 new options
New tables |
---|
wp_wd_fb_theme |
wp_wd_fb_info |
wp_wd_fb_shortcode |
wp_wd_fb_data |
wp_wd_fb_option |
New WordPress options |
---|
ffwd_old_version |
twb_images_total_size |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
ffwd_autoupdate_time |
widget_ffwd_info |
widget_theysaidso_widget |
ffwd_admin_notice |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
10Web Social Post Feed: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,549 ▲803 | 14.51 ▼0.25 | 32.64 ▲30.75 | 37.95 ▼4.96 |
Dashboard /wp-admin | 2,247 ▲59 | 4.93 ▲0.04 | 101.77 ▼6.88 | 73.32 ▲35.50 |
Posts /wp-admin/edit.php | 2,807 ▲718 | 2.62 ▲0.60 | 73.16 ▲30.74 | 46.15 ▲8.52 |
Add New Post /wp-admin/post-new.php | 6,485 ▲4,943 | 20.92 ▲2.70 | 867.83 ▲257.31 | 39.35 ▼16.85 |
Media Library /wp-admin/upload.php | 1,438 ▲50 | 4.38 ▲0.15 | 97.44 ▲0.12 | 64.06 ▲19.90 |
Uninstall /wp-admin/admin.php?page=uninstall_ffwd | 934 | 1.83 | 26.31 | 32.92 |
Speed & Image Optimization /wp-admin/admin.php?page=twb_facebook-feed | 1,185 | 1.88 | 33.78 | 63.35 |
Options /wp-admin/admin.php?page=options_ffwd | 1,229 | 2.08 | 32.19 | 91.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure failed, leaving 5 tables in the database
- wp_wd_fb_info
- wp_wd_fb_data
- wp_wd_fb_shortcode
- wp_wd_fb_option
- wp_wd_fb_theme
- This plugin does not fully uninstall, leaving 12 options in the database
- twb_images_total_size
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- ffwd_autoupdate_time
- widget_ffwd_info
- ffwd_version
- theysaidso_admin_options
- db_upgraded
- ffwd_admin_notice
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 63× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Facebook\\HttpClients\\FacebookHttpClientInterface' not found in wp-content/plugins/wd-facebook-feed/framework/facebook-sdk/src/Facebook/HttpClients/FacebookCurlHttpClient.php:34
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\Exceptions\\FacebookSDKException' not found in wp-content/plugins/wd-facebook-feed/framework/facebook-sdk/src/Facebook/Exceptions/FacebookAuthenticationException.php:31
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\Helpers\\FacebookSignedRequestFromInputHelper' not found in wp-content/plugins/wd-facebook-feed/framework/facebook-sdk/src/Facebook/Helpers/FacebookJavaScriptHelper.php:31
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/wd-facebook-feed/framework/facebook-sdk/src/Facebook/GraphNodes/GraphGroup.php:31
- > PHP Fatal error
Uncaught Error: Interface 'Facebook\\HttpClients\\FacebookHttpClientInterface' not found in wp-content/plugins/wd-facebook-feed/framework/facebook-sdk/src/Facebook/HttpClients/FacebookStreamHttpClient.php:29
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNodeFactory' not found in wp-content/plugins/wd-facebook-feed/framework/facebook-sdk/src/Facebook/GraphNodes/GraphObjectFactory.php:34
- > PHP Fatal error
Uncaught Error: Interface 'Misd\\Linkify\\LinkifyInterface' not found in wp-content/plugins/wd-facebook-feed/framework/linkify/Linkify.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Facebook\\PersistentData\\PersistentDataInterface' not found in wp-content/plugins/wd-facebook-feed/framework/facebook-sdk/src/Facebook/PersistentData/FacebookSessionPersistentDataHandler.php:33
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/wd-facebook-feed/framework/facebook-sdk/src/Facebook/GraphNodes/GraphPicture.php:31
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\Exceptions\\FacebookSDKException' not found in wp-content/plugins/wd-facebook-feed/framework/facebook-sdk/src/Facebook/Exceptions/FacebookClientException.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
wd-facebook-feed/facebook-feed-wd.php 92% from 13 tests
The principal PHP file in "10Web Social Post Feed" v. 1.2.9 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wd-facebook-feed.php" instead of "facebook-feed-wd.php")
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
These items require your attention
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/wd-facebook-feed/framework/facebook-sdk/fb_ca_chain_bundle.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 123 | 2,294 | 7,138 | 18,350 |
CSS | 20 | 680 | 100 | 6,724 |
JavaScript | 24 | 798 | 975 | 6,552 |
SVG | 42 | 0 | 2 | 1,179 |
PO File | 2 | 190 | 301 | 443 |
Markdown | 3 | 53 | 0 | 173 |
HTML | 1 | 1 | 0 | 7 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 117)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 18.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 538.00 |
Average method complexity | 3.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 117.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 6 | |
Traits | 1 | |
Classes | 108 | |
▷ Abstract classes | 2 | 1.85% |
▷ Concrete classes | 106 | 98.15% |
▷ Final classes | 0 | 0.00% |
Methods | 858 | |
▷ Static methods | 93 | 10.84% |
▷ Public methods | 764 | 89.04% |
▷ Protected methods | 74 | 8.62% |
▷ Private methods | 20 | 2.33% |
Functions | 55 | |
▷ Named functions | 45 | 81.82% |
▷ Anonymous functions | 10 | 18.18% |
Constants | 53 | |
▷ Global constants | 16 | 30.19% |
▷ Class constants | 37 | 69.81% |
▷ Public constants | 37 | 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
162 PNG files occupy 2.71MB with 1.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/wd_fb_shortcode.png | 18.61KB | 1.16KB | ▼ 93.78% |
css/images/ui-bg_glass_100_f6f6f6_1x400.png | 0.26KB | 0.12KB | ▼ 53.44% |
images/plus.png | 1.20KB | 1.17KB | ▼ 2.92% |
images/views/logo.png | 8.25KB | 4.60KB | ▼ 44.26% |
images/ffwd/ffwd_views.png | 10.64KB | 3.91KB | ▼ 63.23% |