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.05MB] [CPU: ▼4.82ms] Passed 4 tests
A check of server-side resources used by Bit Social (Beta)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.94 ▲2.05 |
Dashboard /wp-admin | 3.42 ▲0.07 | 45.35 ▼12.66 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 43.25 ▼2.57 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 91.29 ▼6.10 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.36 ▲2.45 |
Server storage [IO: ▲2.30MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 131 new files
Database: 6 new tables, 10 new options
New tables |
---|
wp_bit_social_schedules |
wp_bit_social_accounts |
wp_bit_social_custom_apps |
wp_bit_social_settings |
wp_bit_social_logs |
wp_bit_social_groups |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
bit_social_secret_key |
can_compress_scripts |
bit_social_version |
bit_social_installed |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
bit_social_db_version |
Browser metrics Passed 4 tests
An overview of browser requirements for Bit Social (Beta)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲96 | 14.08 ▼0.33 | 1.71 ▼0.03 | 44.49 ▲2.22 |
Dashboard /wp-admin | 2,251 ▲70 | 5.64 ▼0.03 | 82.61 ▼19.95 | 37.55 ▼7.18 |
Posts /wp-admin/edit.php | 2,153 ▲53 | 1.98 ▼0.06 | 38.30 ▲2.54 | 33.19 ▼2.26 |
Add New Post /wp-admin/post-new.php | 1,564 ▲29 | 18.19 ▼0.10 | 623.67 ▼30.95 | 68.46 ▲2.16 |
Media Library /wp-admin/upload.php | 1,453 ▲53 | 4.22 ▲0.08 | 97.65 ▼9.50 | 41.85 ▼3.41 |
Custom Apps /wp-admin/admin.php?page=bit-social#/apps | 1,130 | 6.35 | 154.98 | 53.47 |
Settings /wp-admin/admin.php?page=bit-social#/settings/general | 1,155 | 9.76 | 182.35 | 66.33 |
Accounts /wp-admin/admin.php?page=bit-social#/accounts | 1,367 | 9.00 | 199.18 | 41.36 |
Logs /wp-admin/admin.php?page=bit-social#/logs | 1,289 | 8.53 | 152.98 | 44.92 |
Schedules /wp-admin/admin.php?page=bit-social#/schedules | 1,240 | 8.20 | 153.51 | 36.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- bit_social_secret_key
Smoke tests 75% 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 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
- 29× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Trait 'BitApps\\Social\\Utils\\WpPost' not found in wp-content/plugins/bit-social/backend/app/HTTP/Controllers/WpPostController.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'BitApps\\Social\\Core\\Database\\Model' not found in wp-content/plugins/bit-social/backend/app/Model/Group.php:7
- > PHP Fatal error
Trait 'BitApps\\Social\\Core\\Http\\Request\\Validator\\ValidateAttributes' not found in wp-content/plugins/bit-social/backend/core/Http/Request/Validator/Validator.php on line 5
- > PHP Fatal error
Trait 'BitApps\\Social\\Utils\\Common' not found in wp-content/plugins/bit-social/backend/app/HTTP/Controllers/ScheduleController.php on line 13
- > PHP Fatal error
Trait 'BitApps\\Social\\Core\\Database\\Relations' not found in wp-content/plugins/bit-social/backend/core/Database/Model.php on line 74
- > PHP Fatal error
Trait 'BitApps\\Social\\Utils\\Common' not found in wp-content/plugins/bit-social/backend/app/HTTP/Controllers/RetryController.php on line 13
- > PHP Fatal error
Uncaught Error: Interface 'BitApps\\Social\\HTTP\\Services\\Interfaces\\AuthServiceInterface' not found in wp-content/plugins/bit-social/backend/app/HTTP/Services/Social/TwitterService/TwitterOAuth1Service.php:12
- > PHP Fatal error
Trait 'BitApps\\Social\\Core\\Http\\IpTool' not found in wp-content/plugins/bit-social/backend/core/Http/Request/Request.php on line 16
- > PHP Fatal error
Uncaught Error: Interface 'BitApps\\Social\\HTTP\\Services\\Interfaces\\PlatformAppInfoResolverInterface' not found in wp-content/plugins/bit-social/backend/app/HTTP/Services/Social/AppInfo/FacebookAppInfoResolver.php:8
- > PHP Fatal error
Trait 'BitApps\\Social\\Utils\\Common' not found in wp-content/plugins/bit-social/backend/app/HTTP/Services/Social/FacebookService/RetryFacebookService.php on line 10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: twitter, linkedin, facebook, post scheduler, schedule...
bit-social/index.php 85% from 13 tests
The main PHP script in "Bit Social (Beta)" version 0.1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bit-social.php" instead of "index.php")
- Requires PHP: Required version does not match the one declared in readme.txt ("7.0" instead of "5.6")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected9,270 lines of code in 110 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 104 | 2,224 | 2,184 | 8,741 |
JavaScript | 2 | 8 | 62 | 486 |
CSS | 2 | 6 | 7 | 37 |
JSON | 1 | 0 | 0 | 5 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 13.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 110.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 29 | |
Interfaces | 4 | |
Traits | 9 | |
Classes | 81 | |
▷ Abstract classes | 2 | 2.47% |
▷ Concrete classes | 79 | 97.53% |
▷ Final classes | 34 | 43.04% |
Methods | 702 | |
▷ Static methods | 131 | 18.66% |
▷ Public methods | 607 | 86.47% |
▷ Protected methods | 14 | 1.99% |
▷ Private methods | 81 | 11.54% |
Functions | 18 | |
▷ Named functions | 1 | 5.56% |
▷ Anonymous functions | 17 | 94.44% |
Constants | 43 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 43 | 100.00% |
▷ Public constants | 43 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin