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
Install script ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▼7.60ms] Passed 4 tests
A check of server-side resources used by WP2Social Auto Publish
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.30 | 41.47 ▼2.20 |
Dashboard /wp-admin | 3.59 ▲0.24 | 48.88 ▼12.90 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 55.53 ▲6.45 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 84.40 ▼16.47 |
Media Library /wp-admin/upload.php | 3.52 ▲0.28 | 40.45 ▲1.19 |
Settings /wp-admin/admin.php?page=facebook-auto-publish-settings | 3.88 | 40.10 |
Suggest a Feature /wp-admin/admin.php?page=facebook-auto-publish-suggest-feature | 3.53 | 34.24 |
Logs /wp-admin/admin.php?page=facebook-auto-publish-log | 3.50 | 32.80 |
About /wp-admin/admin.php?page=facebook-auto-publish-about | 3.75 | 38.43 |
Server storage [IO: ▲2.27MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 165 new files
Database: no new tables, 39 new options
New WordPress options |
---|
xyz_fbap_application_secret |
xyz_fbap_app_sel_mode |
xyz_fbap_application_id |
widget_theysaidso_widget |
xyz_fbap_post_logs |
xyz_fbap_dnt_shw_notice |
xyz_credit_link |
widget_recent-posts |
xyz_fbap_premium_version_ads |
xyz_fbap_pages_ids |
... |
Browser metrics Passed 4 tests
Checking browser requirements for WP2Social Auto Publish
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲71 | 14.36 ▲0.01 | 1.61 ▼0.12 | 43.13 ▲1.51 |
Dashboard /wp-admin | 2,238 ▲64 | 5.60 ▲0.00 | 93.66 ▼9.04 | 88.24 ▲44.35 |
Posts /wp-admin/edit.php | 2,146 ▲46 | 1.97 ▲0.01 | 36.72 ▲0.20 | 34.23 ▲3.19 |
Add New Post /wp-admin/post-new.php | 1,716 ▲190 | 21.96 ▼1.69 | 711.89 ▲47.47 | 54.20 ▲3.71 |
Media Library /wp-admin/upload.php | 1,443 ▲46 | 4.11 ▼0.11 | 115.73 ▲8.38 | 43.81 ▼2.09 |
Settings /wp-admin/admin.php?page=facebook-auto-publish-settings | 1,839 | 1.79 | 30.11 | 135.72 |
Suggest a Feature /wp-admin/admin.php?page=facebook-auto-publish-suggest-feature | 1,116 | 1.66 | 23.15 | 37.10 |
Logs /wp-admin/admin.php?page=facebook-auto-publish-log | 1,131 | 1.65 | 25.80 | 35.30 |
About /wp-admin/admin.php?page=facebook-auto-publish-about | 2,184 | 1.65 | 25.96 | 47.30 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-comments
- xyz_fbap_premium_version_ads
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- xyz_credit_link
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Please fix the following items
- 42× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Facebook\\HttpClients\\FacebookHttpClientInterface' not found in wp-content/plugins/facebook-auto-publish/vendor/facebook/graph-sdk/src/Facebook/HttpClients/FacebookStreamHttpClient.php:29
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\FileUpload\\FacebookFile' not found in wp-content/plugins/facebook-auto-publish/vendor/facebook/graph-sdk/src/Facebook/FileUpload/FacebookVideo.php:31
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\Collection' not found in wp-content/plugins/facebook-auto-publish/vendor/facebook/graph-sdk/src/Facebook/GraphNodes/GraphNode.php:31
- > PHP Fatal error
Uncaught Error: Interface 'Facebook\\PseudoRandomString\\PseudoRandomStringGeneratorInterface' not found in wp-content/plugins/facebook-auto-publish/vendor/facebook/graph-sdk/src/Facebook/PseudoRandomString/OpenSslPseudoRandomStringGenerator.php:28
- > PHP Fatal error
Uncaught Error: Interface 'Facebook\\Http\\RequestBodyInterface' not found in wp-content/plugins/facebook-auto-publish/vendor/facebook/graph-sdk/src/Facebook/Http/RequestBodyMultipart.php:37
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\Exceptions\\FacebookSDKException' not found in wp-content/plugins/facebook-auto-publish/vendor/facebook/graph-sdk/src/Facebook/Exceptions/FacebookServerException.php:31
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\Collection' not found in wp-content/plugins/facebook-auto-publish/vendor/facebook/graph-sdk/src/Facebook/GraphNodes/GraphEdge.php:35
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\Helpers\\FacebookSignedRequestFromInputHelper' not found in wp-content/plugins/facebook-auto-publish/vendor/facebook/graph-sdk/src/Facebook/Helpers/FacebookCanvasHelper.php:31
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/facebook-auto-publish/vendor/facebook/graph-sdk/src/Facebook/GraphNodes/GraphGroup.php:31
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\Helpers\\FacebookSignedRequestFromInputHelper' not found in wp-content/plugins/facebook-auto-publish/vendor/facebook/graph-sdk/src/Facebook/Helpers/FacebookJavaScriptHelper.php:31
- > 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)
No browser errors were detected
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
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
facebook-auto-publish/facebook-auto-publish.php 92% from 13 tests
The main PHP file in "WP2Social Auto Publish" ver. 2.4.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 262 characters long)
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
No dangerous file extensions were detected18,531 lines of code in 118 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 101 | 1,535 | 5,916 | 9,120 |
PO File | 9 | 2,267 | 2,358 | 5,988 |
SVG | 1 | 0 | 0 | 2,671 |
CSS | 2 | 134 | 11 | 616 |
JSON | 2 | 0 | 0 | 104 |
JavaScript | 1 | 4 | 0 | 23 |
XML | 1 | 0 | 0 | 7 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 5.99 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 5 | |
Traits | 1 | |
Classes | 71 | |
▷ Abstract classes | 1 | 1.41% |
▷ Concrete classes | 70 | 98.59% |
▷ Final classes | 0 | 0.00% |
Methods | 528 | |
▷ Static methods | 20 | 3.79% |
▷ Public methods | 483 | 91.48% |
▷ Protected methods | 26 | 4.92% |
▷ Private methods | 19 | 3.60% |
Functions | 43 | |
▷ Named functions | 39 | 90.70% |
▷ Anonymous functions | 4 | 9.30% |
Constants | 27 | |
▷ Global constants | 5 | 18.52% |
▷ Class constants | 22 | 81.48% |
▷ Public constants | 22 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
23 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/suggest.png | 3.30KB | 0.85KB | ▼ 74.28% |
images/tick.png | 0.91KB | 0.87KB | ▼ 4.30% |
images/xyz_logo.png | 9.26KB | 3.02KB | ▼ 67.36% |
images/twitter-logo.png | 3.37KB | 0.94KB | ▼ 72.07% |
images/pause.png | 6.80KB | 4.51KB | ▼ 33.71% |