Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.83MB] [CPU: ▼1.30ms] Passed 4 tests
A check of server-side resources used by Social Media Auto Publish
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.34 ▲0.87 | 48.66 ▲4.82 |
Dashboard /wp-admin | 4.17 ▲0.86 | 52.09 ▲3.32 |
Posts /wp-admin/edit.php | 4.22 ▲0.86 | 50.05 ▼0.54 |
Add New Post /wp-admin/post-new.php | 6.71 ▲0.82 | 86.31 ▼12.80 |
Media Library /wp-admin/upload.php | 4.03 ▲0.80 | 45.63 ▲11.30 |
Suggest a Feature /wp-admin/admin.php?page=social-media-auto-publish-suggest-features | 4.05 | 35.64 |
Settings /wp-admin/admin.php?page=social-media-auto-publish-settings | 5.27 | 40.70 |
Logs /wp-admin/admin.php?page=social-media-auto-publish-log | 4.05 | 36.87 |
About /wp-admin/admin.php?page=social-media-auto-publish-about | 4.26 | 41.11 |
Server storage [IO: ▲4.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 364 new files
Database: no new tables, 93 new options
New WordPress options |
---|
xyz_smap_lnpost_permission |
xyz_smap_twmessage |
xyz_smap_ig_app_sel_mode |
xyz_smap_lnapikey |
xyz_smap_smapsoln_userid_tw |
xyz_smap_lnaf |
xyz_smap_peer_verification |
xyz_smap_credit_dismiss |
xyz_smap_twtr_char_limit |
xyz_smap_igapplication_secret |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Social Media Auto Publish
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲46 | 14.68 ▲0.23 | 1.78 ▼0.16 | 44.18 ▼0.78 |
Dashboard /wp-admin | 2,235 ▲58 | 5.58 ▼0.06 | 80.12 ▼6.57 | 57.78 ▲21.02 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 2.01 ▼0.01 | 34.48 ▼5.32 | 34.95 ▼3.27 |
Add New Post /wp-admin/post-new.php | 1,565 ▲30 | 23.29 ▲4.94 | 754.10 ▲120.15 | 52.44 ▼20.63 |
Media Library /wp-admin/upload.php | 1,446 ▲46 | 4.28 ▲0.04 | 106.99 ▲9.22 | 68.51 ▲26.11 |
Suggest a Feature /wp-admin/admin.php?page=social-media-auto-publish-suggest-features | 1,119 | 1.69 | 23.89 | 54.00 |
Settings /wp-admin/admin.php?page=social-media-auto-publish-settings | 3,284 | 1.99 | 30.65 | 106.04 |
Logs /wp-admin/admin.php?page=social-media-auto-publish-log | 1,146 | 1.67 | 23.84 | 34.21 |
About /wp-admin/admin.php?page=social-media-auto-publish-about | 2,196 | 1.74 | 25.46 | 44.86 |
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 does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- xyz_credit_link
- theysaidso_admin_options
- xyz_smap_tb_af
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Please take a closer look at the following
- 104× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/social-media-auto-publish/api/Facebook/GraphNodes/GraphApplication.php:32
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/social-media-auto-publish/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:13
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/social-media-auto-publish/api/Facebook/GraphNodes/GraphAchievement.php:31
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/social-media-auto-publish/vendor/guzzlehttp/promises/src/FulfilledPromise.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Facebook\\PseudoRandomString\\PseudoRandomStringGeneratorInterface' not found in wp-content/plugins/social-media-auto-publish/api/Facebook/PseudoRandomString/OpenSslPseudoRandomStringGenerator.php:28
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/social-media-auto-publish/api/Facebook/GraphNodes/GraphEvent.php:31
- > PHP Fatal error
Uncaught Error: Interface 'Facebook\\Http\\RequestBodyInterface' not found in wp-content/plugins/social-media-auto-publish/api/Facebook/Http/RequestBodyUrlEncoded.php:31
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/social-media-auto-publish/vendor/psr/http-message/src/ServerRequestInterface.php:43
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/social-media-auto-publish/vendor/psr/http-message/src/RequestInterface.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Facebook\\PseudoRandomString\\PseudoRandomStringGeneratorInterface' not found in wp-content/plugins/social-media-auto-publish/api/Facebook/PseudoRandomString/McryptPseudoRandomStringGenerator.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 20 tag instead of maximum 10
social-media-auto-publish/social-media-auto-publish.php 92% from 13 tests
The main PHP file in "Social Media Auto Publish" ver. 3.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 190 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin45,237 lines of code in 304 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 250 | 4,739 | 13,181 | 27,578 |
PO File | 9 | 3,240 | 4,136 | 8,726 |
Markdown | 21 | 1,514 | 0 | 4,094 |
SVG | 1 | 0 | 0 | 2,671 |
JSON | 15 | 0 | 0 | 1,409 |
CSS | 2 | 197 | 8 | 630 |
YAML | 3 | 16 | 3 | 70 |
JavaScript | 1 | 3 | 0 | 36 |
XML | 2 | 0 | 0 | 23 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 10.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 28 | |
Interfaces | 31 | |
Traits | 4 | |
Classes | 194 | |
▷ Abstract classes | 7 | 3.61% |
▷ Concrete classes | 187 | 96.39% |
▷ Final classes | 35 | 18.72% |
Methods | 1,569 | |
▷ Static methods | 201 | 12.81% |
▷ Public methods | 1,347 | 85.85% |
▷ Protected methods | 40 | 2.55% |
▷ Private methods | 182 | 11.60% |
Functions | 199 | |
▷ Named functions | 61 | 30.65% |
▷ Anonymous functions | 138 | 69.35% |
Constants | 98 | |
▷ Global constants | 9 | 9.18% |
▷ Class constants | 89 | 90.82% |
▷ Public constants | 75 | 84.27% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
24 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/linkedin.png | 0.87KB | 0.87KB | 0.00% |
images/star.png | 3.35KB | 0.83KB | ▼ 75.35% |
images/new_star.png | 4.65KB | 1.93KB | ▼ 58.47% |
images/edit.png | 3.18KB | 2.07KB | ▼ 34.91% |
images/delete.png | 3.59KB | 2.18KB | ▼ 39.36% |