Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/social-locker/bizpanda/libs/onepress/licensing/licensing.php+65
Undefined index: Category
Server metrics [RAM: ▲0.32MB] [CPU: ▼142.56ms] Passed 4 tests
An overview of server-side resources used by OnePress Social Locker
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.97 ▲0.13 | 35.00 ▲6.86 |
Dashboard /wp-admin | 3.45 ▲0.39 | 40.94 ▼8.61 |
Posts /wp-admin/edit.php | 3.51 ▲0.40 | 39.03 ▲1.10 |
Add New Post /wp-admin/post-new.php | 5.80 ▲0.36 | 82.09 ▼569.58 |
Media Library /wp-admin/upload.php | 3.39 ▲0.39 | 29.64 ▲7.07 |
All Lockers /wp-admin/edit.php?post_type=opanda-item | 3.52 | 34.34 |
Global Settings /wp-admin/edit.php?post_type=opanda-item&page=settings-bizpanda | 3.78 | 47.32 |
How to use? /wp-admin/edit.php?post_type=opanda-item&page=how-to-use-bizpanda | 3.16 | 20.18 |
Stats & Reports /wp-admin/edit.php?post_type=opanda-item&page=stats-bizpanda | 3.45 | 36.15 |
Go Premium /wp-admin/edit.php?post_type=opanda-item&page=premium-sociallocker-next | 3.42 | 44.15 |
License Manager /wp-admin/edit.php?post_type=opanda-item&page=license-manager-sociallocker-next | 3.41 | 28.46 |
+ New Locker /wp-admin/edit.php?post_type=opanda-item&page=new-item-bizpanda | 3.41 | 27.26 |
Leads (0) /wp-admin/edit.php?post_type=opanda-item&page=leads-bizpanda | 3.44 | 37.11 |
Server storage [IO: ▲4.37MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 443 new files
Database: 3 new tables, 18 new options
New tables |
---|
wp_opanda_leads |
wp_opanda_leads_fields |
wp_opanda_stats_v2 |
New WordPress options |
---|
opanda_privacy_policy_text |
opanda_tracking |
opanda_privacy_enabled |
onp_default_license_sociallocker-next |
opanda_terms_enabled |
opanda_facebook_version |
factory_plugin_versions |
factory_plugin_activated_bizpanda |
opanda_facebook_app_id |
opanda_default_signin_locker_id |
... |
Browser metrics Passed 4 tests
A check of browser resources used by OnePress Social Locker
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,897 ▲271 | 15.82 ▼0.24 | 6.87 ▲0.00 | 77.26 ▲2.09 |
Dashboard /wp-admin | 3,129 ▲236 | 6.28 ▲0.17 | 121.25 ▼35.66 | 180.38 ▼25.55 |
Posts /wp-admin/edit.php | 2,929 ▲189 | 3.40 ▲0.16 | 69.80 ▼2.50 | 152.95 ▼6.67 |
Add New Post /wp-admin/post-new.php | 3,893 ▲187 | 19.40 ▲0.84 | 464.41 ▼2.16 | 185.77 ▲7.76 |
Media Library /wp-admin/upload.php | 1,873 ▲121 | 5.58 ▲0.10 | 151.22 ▲4.20 | 199.64 ▲7.36 |
All Lockers /wp-admin/edit.php?post_type=opanda-item | 2,661 | 3.39 | 69.18 | 151.20 |
Global Settings /wp-admin/edit.php?post_type=opanda-item&page=settings-bizpanda | 2,469 | 3.02 | 79.77 | 158.53 |
How to use? /wp-admin/edit.php?post_type=opanda-item&page=how-to-use-bizpanda | 1,589 | 2.42 | 55.56 | 141.32 |
Stats & Reports /wp-admin/edit.php?post_type=opanda-item&page=stats-bizpanda | 2,132 | 6.74 | 87.97 | 165.92 |
Go Premium /wp-admin/edit.php?post_type=opanda-item&page=premium-sociallocker-next | 2,338 | 2.52 | 75.13 | 172.21 |
License Manager /wp-admin/edit.php?post_type=opanda-item&page=license-manager-sociallocker-next | 1,463 | 2.44 | 59.77 | 215.91 |
+ New Locker /wp-admin/edit.php?post_type=opanda-item&page=new-item-bizpanda | 1,372 | 2.41 | 55.20 | 120.43 |
Leads (0) /wp-admin/edit.php?post_type=opanda-item&page=leads-bizpanda | 1,414 | 2.79 | 75.43 | 100.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure failed, leaving 3 tables in the database
- wp_opanda_leads_fields
- wp_opanda_leads
- wp_opanda_stats_v2
- This plugin did not uninstall successfully, leaving 18 options in the database
- factory_plugin_activated_bizpanda
- opanda_terms_use_pages
- opanda_facebook_version
- factory_plugin_versions
- opanda_default_signin_locker_id
- opanda_tracking
- factory_plugin_activated_sociallocker-next
- opanda_robust_key
- opanda_facebook_app_id
- opanda_default_social_locker_id
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=opanda-item&page=how-to-use-bizpanda
- > Notice in wp-content/plugins/social-locker/bizpanda/admin/pages/how-to-use.php+123
Trying to access array offset on value of type null
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
The following issues need your attention
- 222× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Factory325_Update' not found in wp-content/plugins/social-locker/plugin/updates/040105.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/social-locker/bizpanda/includes/assets-manager.php:1182
- > PHP Warning
require_once(OPANDA_BIZPANDA_DIR/includes/themes.php): failed to open stream: No such file or directory in wp-content/plugins/social-locker/bizpanda/includes/classes/themes-manager.class.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'FactoryForms328_Control' not found in wp-content/plugins/social-locker/bizpanda/libs/factory/forms/controls/checkbox.php:17
- > PHP Fatal error
Uncaught Error: Class 'FactoryForms328_Holder' not found in wp-content/plugins/social-locker/bizpanda/libs/factory/forms/controls/holders/accordion.php:17
- > PHP Fatal error
Uncaught Error: Class 'OPanda_StatsTable' not found in wp-content/plugins/social-locker/panda-items/signin-locker/admin/stats/profits.php:3
- > PHP Warning
require_once(OPANDA_BIZPANDA_DIR/admin/activation.php): failed to open stream: No such file or directory in wp-content/plugins/social-locker/bizpanda/admin/boot.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Factory325_Update' not found in wp-content/plugins/social-locker/plugin/updates/030009.php:8
- > PHP Warning
Use of undefined constant OPANDA_BIZPANDA_DIR - assumed 'OPANDA_BIZPANDA_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/social-locker/bizpanda/admin/boot.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/social-locker/panda-items/signin-locker/admin/help/gdpr.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: There are too many tags (77 tag instead of maximum 10)
social-locker/sociallocker-next.php 85% from 13 tests
The main file in "OnePress Social Locker" v. 5.6.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("social-locker.php" instead of "sociallocker-next.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 365 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin56,034 lines of code in 371 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 231 | 6,416 | 8,194 | 24,416 |
CSS | 62 | 1,703 | 450 | 17,103 |
JavaScript | 67 | 3,350 | 1,686 | 13,890 |
SVG | 1 | 0 | 0 | 565 |
HTML | 10 | 8 | 0 | 60 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 13.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 130.00 |
Average method complexity | 3.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 177 | |
▷ Abstract classes | 19 | 10.73% |
▷ Concrete classes | 158 | 89.27% |
▷ Final classes | 0 | 0.00% |
Methods | 959 | |
▷ Static methods | 150 | 15.64% |
▷ Public methods | 856 | 89.26% |
▷ Protected methods | 77 | 8.03% |
▷ Private methods | 26 | 2.71% |
Functions | 167 | |
▷ Named functions | 167 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 89 | |
▷ Global constants | 58 | 65.17% |
▷ Class constants | 31 | 34.83% |
▷ Public constants | 31 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
60 PNG files occupy 0.29MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bizpanda/libs/onepress/licensing/assets/img/trial-license-chip.png | 1.95KB | 0.73KB | ▼ 62.77% |
bizpanda/extras/visual-composer/assets/vc-icons.png | 3.72KB | 1.98KB | ▼ 46.68% |
bizpanda/libs/factory/bootstrap/assets/images/chosen-sprite.png | 0.63KB | 0.88KB | 0.00% |
bizpanda/assets/admin/img/menu-icon.png | 1.29KB | 1.26KB | ▼ 2.42% |
bizpanda/assets/admin/img/ajax-icon.png | 0.35KB | 0.25KB | ▼ 29.20% |