Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼2.63ms] Passed 4 tests
Server-side resources used by SocialFlow
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.95 ▼3.73 |
Dashboard /wp-admin | 3.38 ▲0.07 | 44.34 ▼5.11 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 53.50 ▲7.11 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 80.73 ▼8.79 |
Media Library /wp-admin/upload.php | 3.35 ▲0.13 | 45.68 ▲14.75 |
Server storage [IO: ▲2.68MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 170 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
socialflow |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for SocialFlow
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲100 | 13.28 ▼1.48 | 1.77 ▼0.23 | 39.25 ▼3.65 |
Dashboard /wp-admin | 2,252 ▲64 | 5.85 ▲0.97 | 94.48 ▼7.44 | 80.57 ▲42.50 |
Posts /wp-admin/edit.php | 2,393 ▲304 | 5.28 ▲3.26 | 85.41 ▲47.90 | 32.51 ▼4.39 |
Add New Post /wp-admin/post-new.php | 1,782 ▲265 | 24.63 ▲7.06 | 811.81 ▲202.41 | 37.14 ▼25.75 |
Media Library /wp-admin/upload.php | 1,505 ▲123 | 4.83 ▲0.55 | 112.29 ▲14.33 | 85.42 ▲41.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method SocialFlow_Admin::uninstall() should not be called statically
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 fix the following
- 28× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/socialflow/views/ng-form/compose-form.php
- > /wp-content/plugins/socialflow/libs/class-wp-socialflow.php
- > /wp-content/plugins/socialflow/views/ng-form/social-tabs/social-tabs-list.php
- > /wp-content/plugins/socialflow/views/ng-form/social-tabs/social-tabs.php
- > /wp-content/plugins/socialflow/views/ng-form/social-tabs/messages-list/settings/advanced-setting.php
- > /wp-content/plugins/socialflow/views/ng-form/social-tabs/messages-list/message/message-twitter.php
- > /wp-content/plugins/socialflow/includes/post/class-socialflow-post-compose.php
- > /wp-content/plugins/socialflow/views/ng-form/stats/full.php
- > /wp-content/plugins/socialflow/views/ng-form/accounts/accounts.php
- > /wp-content/plugins/socialflow/includes/post/class-socialflow-post-accounts.php
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/socialflow/includes/class-sf-debug.php on line 20
- > PHP Warning
require_once(ABSPATHwp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/socialflow/includes/class-sf-debug.php on line 20
- > PHP Fatal error
Uncaught Error: Class 'SocialFlow_Admin_Settings_Page' not found in wp-content/plugins/socialflow/includes/settings/class-socialflow-admin-settings-categories.php:11
- > PHP Fatal error
Uncaught Error: Class 'SocialFlow_Admin_Settings_Page' not found in wp-content/plugins/socialflow/includes/settings/class-socialflow-admin-settings-messages.php:11
- > PHP Fatal error
Uncaught Error: Class 'SocialFlow_Admin_Settings_Page' not found in wp-content/plugins/socialflow/includes/settings/class-socialflow-admin-settings-accounts.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/socialflow/views/notice/debug-send.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/socialflow/views/ng-form/social-tabs/messages-list/message/input-show-check-box.php:19
- > PHP Fatal error
Uncaught Error: Class 'SocialFlow_Methods' not found in wp-content/plugins/socialflow/includes/class-socialflow.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/socialflow/views/notice/options-updated.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/socialflow/views/notice/not-authorized.php:11
- > PHP Warning
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 is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add an image for screenshot #5 (SocialFlow Post Meta Box with Stats)
socialflow/socialflow.php 92% from 13 tests
The primary PHP file in "SocialFlow" version 3.3.6 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 144 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
Success! There were no dangerous files found in this plugin32,288 lines of code in 153 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 47 | 4,401 | 18,574 | 21,634 |
PHP | 47 | 1,341 | 3,418 | 5,559 |
CSS | 3 | 426 | 322 | 2,488 |
Sass | 29 | 337 | 44 | 2,063 |
SVG | 20 | 63 | 20 | 426 |
JSON | 2 | 0 | 0 | 61 |
Markdown | 1 | 1 | 0 | 33 |
Handlebars | 4 | 0 | 0 | 24 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 26.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 2 | 6.25% |
▷ Concrete classes | 30 | 93.75% |
▷ Final classes | 0 | 0.00% |
Methods | 333 | |
▷ Static methods | 15 | 4.50% |
▷ Public methods | 261 | 78.38% |
▷ Protected methods | 62 | 18.62% |
▷ Private methods | 10 | 3.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 7 | 70.00% |
▷ Class constants | 3 | 30.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/reload.png | 0.75KB | 0.64KB | ▼ 14.15% |
assets/images/menu-icon.png | 0.57KB | 1.04KB | 0.00% |
assets/images/socialflow.png | 1.64KB | 1.38KB | ▼ 15.91% |
assets/images/thumb-nav.png | 0.39KB | 0.39KB | 0.00% |