Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.92MB] [CPU: ▼7.35ms] Passed 4 tests
This is a short check of server-side resources used by BlaatLogin: OAuth
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.64 ▲1.18 | 43.20 ▲2.56 |
Dashboard /wp-admin | 4.59 ▲1.28 | 52.49 ▲0.15 |
Posts /wp-admin/edit.php | 4.62 ▲1.27 | 54.65 ▲8.46 |
Add New Post /wp-admin/post-new.php | 5.83 ▼0.05 | 51.66 ▼40.23 |
Media Library /wp-admin/upload.php | 4.53 ▲1.30 | 41.34 ▲8.12 |
Install Plugins /wp-admin/themes.php?page=blaat_plugin_deps | 4.63 | 40.56 |
Server storage [IO: ▲0.52MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 74 new files
Database: 5 new tables, 9 new options
New tables |
---|
wp_bs_oauth_services_configured |
wp_bs_oauth_tokens |
wp_bs_oauth_services_known |
wp_bs_oauth_accounts |
wp_bs_oauth_userinfo_api_known |
New WordPress options |
---|
bs_oauth_dbversion |
bs_oauth_dataversion |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
bs_auth_signup_user_email |
Browser metrics Passed 4 tests
A check of browser resources used by BlaatLogin: OAuth
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲62 | 14.08 ▼0.71 | 1.70 ▲0.06 | 41.64 ▼4.40 |
Dashboard /wp-admin | 2,228 ▲51 | 5.64 ▼0.03 | 90.36 ▼12.25 | 46.98 ▲2.86 |
Posts /wp-admin/edit.php | 2,142 ▲39 | 2.02 ▲0.06 | 39.92 ▼5.12 | 39.98 ▼1.78 |
Add New Post /wp-admin/post-new.php | 1,555 ▲29 | 22.92 ▼0.27 | 591.89 ▼71.52 | 50.60 ▼3.86 |
Media Library /wp-admin/upload.php | 1,441 ▲38 | 4.20 ▼0.01 | 97.58 ▼2.63 | 45.68 ▲4.01 |
Install Plugins /wp-admin/themes.php?page=blaat_plugin_deps | 1,038 | 2.05 | 27.40 | 33.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie tables detected upon uninstall: 5 tables
- wp_bs_oauth_services_known
- wp_bs_oauth_accounts
- wp_bs_oauth_tokens
- wp_bs_oauth_userinfo_api_known
- wp_bs_oauth_services_configured
- Zombie WordPress options detected upon uninstall: 9 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- bs_auth_signup_user_email
- widget_recent-comments
- db_upgraded
- bs_oauth_dataversion
- widget_theysaidso_widget
- bs_oauth_dbversion
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/blaatschaap-oauth/oauth/test_oauth_client.php
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/blaatschaap-oauth/tgm/class-tgm-plugin-activation.php:1915
- > OAuth client
Checking the authentication state in URI /wp-content/plugins/blaatschaap-oauth/oauth/test_oauth_client.php
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/blaatschaap-oauth/tgm/class-tgm-plugin-activation.php:1915
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blaatschaap-oauth/bsauth.php:462
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/blaatschaap-oauth/tgm/class-tgm-plugin-activation.php:1915
- > OAuth client
Error: the dialog URL is not defined for this server
- > OAuth client
A valid access token is not available
- > OAuth client
Checking if OAuth access token was already retrieved from
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: sso, oauth, authentication
blaatschaap-oauth/blaat.php 85% from 13 tests
The entry point to "BlaatLogin: OAuth" version ","blaatschaap");... is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("blaatschaap-oauth.php" instead of "blaat.php")
- Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "","blaatschaap");...")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected8,446 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 1,112 | 3,648 | 6,919 |
PO File | 3 | 232 | 562 | 538 |
CSS | 3 | 97 | 66 | 391 |
JSON | 1 | 49 | 0 | 371 |
HTML | 1 | 28 | 1 | 124 |
SQL | 1 | 6 | 0 | 57 |
Markdown | 2 | 17 | 0 | 46 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 129)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 108.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 629.00 |
Average method complexity | 8.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 129.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 193 | |
▷ Static methods | 5 | 2.59% |
▷ Public methods | 172 | 89.12% |
▷ Protected methods | 20 | 10.36% |
▷ Private methods | 1 | 0.52% |
Functions | 39 | |
▷ Named functions | 39 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 8 | 72.73% |
▷ Class constants | 3 | 27.27% |
▷ 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
42 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icons/google.png | 0.95KB | 0.68KB | ▼ 28.19% |
icons/dropbox.png | 1.10KB | 0.95KB | ▼ 13.77% |
icons/vk.png | 0.87KB | 0.62KB | ▼ 29.26% |
css/paypal.png | 1.58KB | 1.63KB | 0.00% |
css/yandex.png | 0.65KB | 0.57KB | ▼ 12.99% |