Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.34ms] Passed 4 tests
Analyzing server-side resources used by Social Web Suite - Social Media Auto Post, Social Media Auto Publish and Schedule now with Gutenberg and WooCommerce support
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.39 ▼1.25 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.53 ▼16.79 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.78 ▲3.08 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.74 ▼9.21 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.72 ▼2.09 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Social Web Suite - Social Media Auto Post, Social Media Auto Publish and Schedule now with Gutenberg and WooCommerce support
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.17 ▼1.24 | 1.72 ▼0.07 | 43.50 ▲0.61 |
Dashboard /wp-admin | 2,209 ▲24 | 5.91 ▼0.06 | 94.56 ▼16.78 | 40.73 ▼5.46 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.00 ▲0.01 | 35.08 ▼1.79 | 35.78 ▲0.36 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 22.78 ▼0.35 | 670.70 ▼24.52 | 67.30 ▲13.85 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.23 ▲0.06 | 93.31 ▼14.79 | 42.06 ▼1.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/social-web-suite/includes/libs/class-socialwebsuite-setup.php+92
Use of undefined constant WP_UNINSTALL_PLUGIN - assumed 'WP_UNINSTALL_PLUGIN' (this will throw an Error in a future version of PHP)
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/social-web-suite/includes/admin/templates/admin-sharing-notice.php
- > /wp-content/plugins/social-web-suite/social-web-suite.php
- > /wp-content/plugins/social-web-suite/includes/admin/templates/admin-sharing-notice-not-public.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/social-web-suite/includes/admin/templates/post-meta-box.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/social-web-suite/includes/admin/templates/settings.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/social-web-suite/includes/admin/templates/admin-rate-notice.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/social-web-suite/includes/admin/templates/admin-notice.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/social-web-suite/includes/admin/templates/admin-optin.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
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
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 132 tag instead of maximum 10
social-web-suite/social-web-suite.php 92% from 13 tests
The main file in "Social Web Suite - Social Media Auto Post, Social Media Auto Publish and Schedule now with Gutenberg and WooCommerce support" v. 3.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 236 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin7,984 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 1,227 | 776 | 4,028 |
PO File | 8 | 776 | 888 | 2,456 |
CSS | 2 | 70 | 9 | 1,056 |
JavaScript | 2 | 53 | 36 | 415 |
SVG | 1 | 0 | 0 | 14 |
JSON | 1 | 0 | 0 | 11 |
Markdown | 1 | 3 | 0 | 4 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 84.33 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 270.00 |
Average method complexity | 4.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 153 | |
▷ Static methods | 98 | 64.05% |
▷ Public methods | 135 | 88.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 11.76% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
7 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/instagram_acc_small.png | 4.19KB | 2.45KB | ▼ 41.59% |
images/twitter_acc_small.png | 7.25KB | 2.70KB | ▼ 62.76% |
images/sws-logo-small.png | 6.82KB | 3.31KB | ▼ 51.43% |
images/facebook_acc_small.png | 5.55KB | 2.47KB | ▼ 55.45% |
images/sws-logo.png | 28.25KB | 9.22KB | ▼ 67.37% |