Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲1.04MB] [CPU: ▲2.44ms] Passed 4 tests
Server-side resources used by eID-Login
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.53 ▲1.06 | 46.78 ▲9.66 |
Dashboard /wp-admin | 4.36 ▲1.05 | 50.20 ▲1.21 |
Posts /wp-admin/edit.php | 4.41 ▲1.05 | 49.24 ▲2.38 |
Add New Post /wp-admin/post-new.php | 6.89 ▲1.01 | 96.58 ▲1.88 |
Media Library /wp-admin/upload.php | 4.28 ▲1.05 | 40.01 ▲4.28 |
eID-Login /wp-admin/options-general.php?page=eidlogin-settings | 7.16 | 54.68 |
Server storage [IO: ▲2.74MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 300 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_eidlogin_eid_attributes |
wp_eidlogin_eid_responsedata |
wp_eidlogin_eid_continuedata |
wp_eidlogin_eid_users |
New WordPress options |
---|
eidlogin_version |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for eID-Login
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.33 ▼0.08 | 1.71 ▼0.03 | 44.79 ▲0.03 |
Dashboard /wp-admin | 2,199 ▲24 | 5.66 ▼0.01 | 83.78 ▼19.20 | 39.11 ▼1.05 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.98 ▼0.04 | 34.80 ▼6.07 | 33.42 ▼3.06 |
Add New Post /wp-admin/post-new.php | 1,540 ▲12 | 18.23 ▼4.85 | 633.60 ▼62.76 | 61.54 ▲2.66 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.20 ▲0.03 | 102.57 ▲4.13 | 42.95 ▼3.72 |
eID-Login /wp-admin/options-general.php?page=eidlogin-settings | 779 | 2.05 | 32.77 | 26.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% 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
Almost there! Just fix the following items
- 150× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\CallExpression' not found in wp-content/plugins/eidlogin/vendor/twig/twig/src/Node/Expression/FunctionExpression.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig\\Error\\Error' not found in wp-content/plugins/eidlogin/vendor/twig/twig/src/Error/SyntaxError.php:20
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\AbstractExpression' not found in wp-content/plugins/eidlogin/vendor/twig/twig/src/Node/Expression/ArrowFunctionExpression.php:22
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\AbstractExpression' not found in wp-content/plugins/eidlogin/vendor/twig/twig/src/Node/Expression/GetAttrExpression.php:19
- > PHP Fatal error
Uncaught Error: Class 'Twig\\Error\\Error' not found in wp-content/plugins/eidlogin/vendor/twig/twig/src/Sandbox/SecurityError.php:21
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\AbstractExpression' not found in wp-content/plugins/eidlogin/vendor/twig/twig/src/Node/Expression/NameExpression.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/eidlogin/vendor/twig/twig/src/Node/Expression/Binary/InBinary.php:16
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/eidlogin/vendor/twig/twig/src/Node/Expression/Binary/SpaceshipBinary.php:16
- > PHP Fatal error
Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/eidlogin/vendor/twig/twig/src/TokenParser/WithTokenParser.php:25
- > PHP Fatal error
Uncaught Error: Class 'Twig\\Sandbox\\SecurityError' not found in wp-content/plugins/eidlogin/vendor/twig/twig/src/Sandbox/SecurityNotAllowedFilterError.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: security, authentication, eid
eidlogin/eidlogin.php 92% from 13 tests
The principal PHP file in "eID-Login" v. 1.0.5 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 377 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected46,663 lines of code in 283 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 246 | 7,574 | 20,515 | 40,560 |
XSD | 17 | 275 | 358 | 3,473 |
PO File | 1 | 150 | 154 | 664 |
HTML | 8 | 107 | 4 | 534 |
JavaScript | 1 | 86 | 77 | 509 |
JSON | 3 | 1 | 0 | 476 |
CSS | 3 | 70 | 8 | 301 |
SVG | 2 | 0 | 1 | 128 |
reStructuredText | 1 | 8 | 5 | 10 |
Markdown | 1 | 4 | 0 | 8 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 109)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 28.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 644.00 |
Average method complexity | 4.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 109.00 |
Code structure | ||
---|---|---|
Namespaces | 36 | |
Interfaces | 11 | |
Traits | 0 | |
Classes | 224 | |
▷ Abstract classes | 12 | 5.36% |
▷ Concrete classes | 212 | 94.64% |
▷ Final classes | 56 | 26.42% |
Methods | 1,848 | |
▷ Static methods | 129 | 6.98% |
▷ Public methods | 1,679 | 90.85% |
▷ Protected methods | 52 | 2.81% |
▷ Private methods | 117 | 6.33% |
Functions | 105 | |
▷ Named functions | 83 | 79.05% |
▷ Anonymous functions | 22 | 20.95% |
Constants | 432 | |
▷ Global constants | 38 | 8.80% |
▷ Class constants | 394 | 91.20% |
▷ Public constants | 394 | 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
4 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
saml/images/help-icon.png | 0.58KB | 0.44KB | ▼ 23.22% |
admin/images/saml-wordpress.png | 49.87KB | 15.78KB | ▼ 68.36% |
admin/images/login-screenshot.png | 19.69KB | 4.24KB | ▼ 78.47% |
saml/images/eID-Login.png | 2.62KB | 1.80KB | ▼ 31.31% |