Benchmarks
Plugin footprint 65% 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: ▲5.36MB] [CPU: ▼232.34ms] 75% from 4 tests
Server-side resources used by One Click Login
It is recommended to improve the following
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.36MB on /wp-admin/crb_carbon_fields_container_one_click_login.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.54 ▲5.70 | 57.03 ▲26.99 |
Dashboard /wp-admin | 8.55 ▲5.50 | 79.80 ▲34.16 |
Posts /wp-admin/edit.php | 8.56 ▲5.45 | 79.17 ▲33.61 |
Add New Post /wp-admin/post-new.php | 10.36 ▲4.93 | 136.62 ▼1,013.18 |
Media Library /wp-admin/upload.php | 8.56 ▲5.55 | 63.70 ▲23.22 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 8.56 | 64.48 |
Server storage [IO: ▲16.68MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 1,196 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_accounts |
fs_gdpr |
fs_debug_mode |
fs_active_plugins |
Browser metrics Passed 4 tests
One Click Login: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,075 ▲493 | 20.67 ▲5.13 | 8.58 ▲0.86 | 45.31 ▼4.34 |
Dashboard /wp-admin | 3,357 ▲507 | 10.41 ▲4.44 | 206.67 ▲76.47 | 114.89 ▲0.55 |
Posts /wp-admin/edit.php | 3,133 ▲427 | 6.74 ▲4.07 | 110.35 ▲42.51 | 102.00 ▲7.74 |
Add New Post /wp-admin/post-new.php | 1,760 ▼282 | 19.44 ▲0.01 | 306.05 ▼72.32 | 115.23 ▲6.88 |
Media Library /wp-admin/upload.php | 1,906 ▲131 | 7.17 ▲2.17 | 139.04 ▼19.19 | 117.76 ▲3.55 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 1,893 | 6.46 | 109.04 | 69.93 |
One Click Login /wp-admin/crb_carbon_fields_container_one_click_login.php | 26 | 0.90 | 0.22 | 9.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/one-click-login/freemius/includes/class-freemius.php+8552
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 4 options in the database
- fs_debug_mode
- fs_active_plugins
- fs_accounts
- fs_gdpr
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/one-click-login/src/lib/carbon-fields3/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- > /wp-content/plugins/one-click-login/freemius/templates/ajax-loader.php
- > /wp-content/plugins/one-click-login/src/lib/carbon-fields2/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 430× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/one-click-login/src/lib/carbon-fields3/vendor/composer/installers/src/Composer/Installers/ChefInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/one-click-login/src/lib/carbon-fields2/vendor/composer/installers/src/Composer/Installers/BitrixInstaller.php:26
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/one-click-login/src/lib/carbon-fields3/vendor/htmlburger/carbon-fields/core/Field/Complex_Field.php:13
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Textarea_Field' not found in wp-content/plugins/one-click-login/src/lib/carbon-fields2/vendor/htmlburger/carbon-fields/core/Field/Rich_Text_Field.php:8
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/one-click-login/src/lib/carbon-fields2/vendor/composer/installers/src/Composer/Installers/FuelInstaller.php:4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/one-click-login/src/lib/carbon-fields3/vendor/htmlburger/carbon-fields/templates/Container/comment_meta.php:1
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Comparer\\Comparer' not found in wp-content/plugins/one-click-login/src/lib/carbon-fields2/vendor/htmlburger/carbon-fields/core/Container/Condition/Comparer/Custom_Comparer.php:7
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/one-click-login/src/lib/carbon-fields3/vendor/composer/installers/src/Composer/Installers/SiteDirectInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/one-click-login/src/lib/carbon-fields3/vendor/htmlburger/carbon-fields/core/Field/Oembed_Field.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/one-click-login/freemius/templates/partials/network-activation.php:6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/crb_carbon_fields_container_one_click_login.php
- > Network (severe)
wp-admin/crb_carbon_fields_container_one_click_login.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (17 tag instead of maximum 10)
one-click-login/plugin.php 92% from 13 tests
The main PHP file in "One Click Login" ver. 1.23.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("one-click-login.php" instead of "plugin.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected138,045 lines of code in 915 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 318 | 21,025 | 35,713 | 78,217 |
PHP | 437 | 11,879 | 27,432 | 49,215 |
PO File | 35 | 1,970 | 2,751 | 4,701 |
CSS | 49 | 618 | 1,266 | 2,278 |
Sass | 48 | 334 | 0 | 1,746 |
JSON | 15 | 0 | 0 | 1,240 |
Markdown | 9 | 155 | 0 | 597 |
YAML | 2 | 7 | 0 | 27 |
XML | 1 | 2 | 0 | 23 |
SVG | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,907)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 13.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,907.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 26 | |
Interfaces | 10 | |
Traits | 0 | |
Classes | 488 | |
▷ Abstract classes | 27 | 5.53% |
▷ Concrete classes | 461 | 94.47% |
▷ Final classes | 2 | 0.43% |
Methods | 3,130 | |
▷ Static methods | 355 | 11.34% |
▷ Public methods | 2,339 | 74.73% |
▷ Protected methods | 404 | 12.91% |
▷ Private methods | 387 | 12.36% |
Functions | 317 | |
▷ Named functions | 140 | 44.16% |
▷ Anonymous functions | 177 | 55.84% |
Constants | 188 | |
▷ Global constants | 112 | 59.57% |
▷ Class constants | 76 | 40.43% |
▷ Public constants | 76 | 100.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/one-click-login.png | 14.25KB | 6.77KB | ▼ 52.48% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |