Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼142.28ms] Passed 4 tests
This is a short check of server-side resources used by External Login
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.00 ▲0.17 | 35.93 ▲3.87 |
Dashboard /wp-admin | 3.32 ▲0.27 | 57.75 ▲10.53 |
Posts /wp-admin/edit.php | 3.44 ▲0.33 | 47.34 ▼3.63 |
Add New Post /wp-admin/post-new.php | 5.67 ▲0.24 | 85.09 ▼570.28 |
Media Library /wp-admin/upload.php | 3.27 ▲0.27 | 34.41 ▲0.92 |
External Login /wp-admin/options-general.php?page=external-login | 3.27 | 44.70 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 42 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by External Login
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲136 | 15.81 ▼0.11 | 13.23 ▲4.22 | 46.96 ▼2.73 |
Dashboard /wp-admin | 2,972 ▲35 | 6.07 ▼0.09 | 142.77 ▼4.39 | 115.08 ▲4.95 |
Posts /wp-admin/edit.php | 2,741 ▲2 | 2.70 ▼0.00 | 63.38 ▼5.84 | 81.98 ▼6.49 |
Add New Post /wp-admin/post-new.php | 1,883 ▲211 | 19.13 ▲0.05 | 408.22 ▼10.24 | 123.52 ▲17.91 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.04 ▲0.03 | 147.93 ▼6.23 | 122.35 ▲5.08 |
External Login /wp-admin/options-general.php?page=external-login | 2,562 | 2.58 | 63.76 | 101.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=external-login
- > Notice in wp-content/plugins/external-login/views/form_elements/repeater_field.php+33
Undefined index: slug
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 items
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/external-login/views/modal.php
- > /wp-content/plugins/external-login/views/form_elements/role_field.php
- > /wp-content/plugins/external-login/views/form_elements/button.php
- > /wp-content/plugins/external-login/views/partials/wpconfig_option_set_message.php
- 47× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/external-login/views/form_elements/checkbox_field.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/external-login/options/options_external_login.php:3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/external-login/views/partials/wpconfig_option_set_message.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/external-login/views/form_elements/button.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function exlog_is_wpconfig_option_set() in wp-content/plugins/external-login/views/form_elements/repeater_field.php:20
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/external-login/views/form_elements/repeater_field.php on line 2
- > PHP Notice
Undefined variable: form_field in wp-content/plugins/external-login/views/form_elements/text_field.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/external-login/options/cleanup.php:3
- > PHP Notice
Undefined variable: form_field in wp-content/plugins/external-login/views/form_elements/button.php on line 6
- > PHP Notice
Undefined variable: exlog_test_results_data in wp-content/plugins/external-login/views/test_results.php on line 1
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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 need to be fixed:
- Tags: You are using too many tags: 21 tag instead of maximum 10
- Screenshots: Screenshot #1 (Main Settings View) image missing
external-login/external-login.php Passed 13 tests
Analyzing the main PHP file in "External Login" version 1.11.2
61 characters long description:
A plugin to allow login and syncing from a secondary database
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected2,575 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 187 | 54 | 1,450 |
JavaScript | 5 | 91 | 36 | 537 |
Sass | 5 | 49 | 1 | 326 |
CSS | 1 | 5 | 0 | 239 |
SVG | 1 | 0 | 1 | 23 |
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.43 |
Average class complexity | 5.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 10 | |
▷ Static methods | 2 | 20.00% |
▷ Public methods | 6 | 60.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 40.00% |
Functions | 31 | |
▷ Named functions | 28 | 90.32% |
▷ Anonymous functions | 3 | 9.68% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin