Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.15MB] [CPU: ▲8.64ms] Passed 4 tests
A check of server-side resources used by eID Easy
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 53.38 ▲12.14 |
Dashboard /wp-admin | 3.44 ▲0.10 | 55.27 ▼4.52 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 59.82 ▲12.45 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 106.17 ▲14.51 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 48.07 ▲14.47 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 26 new files
Database: 1 new table, 16 new options
New tables |
---|
wp_idcard_users |
New WordPress options |
---|
lveid_enabled |
theysaidso_admin_options |
smartid_pt-id-card_enabled |
widget_recent-posts |
smartid_smartid_enabled |
smartid_idcard_enabled |
can_compress_scripts |
widget_recent-comments |
eideasy-eparaksts-mobile_enabled |
eideasy-itsme-login-standard_enabled |
... |
Browser metrics Passed 4 tests
Checking browser requirements for eID Easy
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲22 | 14.38 ▼0.19 | 1.96 ▼0.06 | 32.84 ▼10.41 |
Dashboard /wp-admin | 2,208 ▲34 | 5.57 ▲0.03 | 84.13 ▼16.65 | 41.92 ▼1.45 |
Posts /wp-admin/edit.php | 2,116 ▲19 | 1.95 ▼0.01 | 41.15 ▲5.79 | 36.86 ▲3.32 |
Add New Post /wp-admin/post-new.php | 1,550 ▲21 | 18.42 ▼4.52 | 626.30 ▼61.70 | 78.18 ▲20.18 |
Media Library /wp-admin/upload.php | 1,410 ▲7 | 4.20 ▲0.02 | 97.03 ▼11.91 | 41.72 ▼0.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_idcard_users
- Zombie WordPress options were found after uninstall: 16 options
- smartid_mobileid_enabled
- widget_theysaidso_widget
- smartid_lt-id-card_enabled
- eideasy-eparaksts-mobile_enabled
- eideasy-itsme-login-standard_enabled
- widget_recent-posts
- lveid_enabled
- db_upgraded
- widget_recent-comments
- smartid_pt-id-card_enabled
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/smart-id/api_manual_setup.php
- > /wp-content/plugins/smart-id/iframe_break_free_errorhandler.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/smart-id/admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/smart-id/templates/checkbox-template.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/smart-id/smart-id.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/smart-id/templates/login-button-template.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
smart-id/smart-id.php Passed 13 tests
The main file in "eID Easy" v. 4.9.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
100 characters long description:
Allow your visitors to login to Wordpress ID-card, Mobile-ID, Smart-ID mobile app and other methods.
Code Analysis Passed 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 detected1,065 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 152 | 50 | 875 |
HTML | 1 | 141 | 0 | 141 |
JavaScript | 1 | 9 | 4 | 47 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 22.25 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 4.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 27 | 100.00% |
▷ Public methods | 25 | 92.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 7.41% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/Smart-ID_login_btn.png | 3.46KB | 2.07KB | ▼ 40.14% |
img/eid_mobiilid_mark.png | 16.52KB | 6.37KB | ▼ 61.46% |
img/latvia_eid.png | 3.99KB | 2.12KB | ▼ 46.70% |
img/latvia-id-card.png | 5.99KB | 6.02KB | 0.00% |
img/lithuania_eid.png | 2.45KB | 1.68KB | ▼ 31.21% |