Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼7.03ms] Passed 4 tests
A check of server-side resources used by Scan-to-Login
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 39.97 ▲3.50 |
Dashboard /wp-admin | 3.39 ▲0.04 | 47.59 ▼12.70 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 46.12 ▲0.23 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 82.15 ▼19.13 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.37 ▲3.71 |
Scan-to-Login /wp-admin/options-general.php?page=scantologin | 3.28 | 28.75 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 13 new options
New WordPress options |
---|
scantologin_demo_mode |
widget_recent-posts |
widget_recent-comments |
scantologin_merchant_id |
scantologin_site_id |
can_compress_scripts |
widget_theysaidso_widget |
scantologin_position |
scantologin_js_file |
scantologin_parent_container |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Scan-to-Login
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,922 ▲176 | 13.94 ▼0.49 | 8.52 ▲6.86 | 43.15 ▲2.27 |
Dashboard /wp-admin | 2,210 ▲19 | 5.90 ▲0.93 | 113.93 ▲9.66 | 43.35 ▲1.34 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 1.99 ▲0.01 | 33.47 ▼2.83 | 33.32 ▼2.47 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.28 ▲0.15 | 676.18 ▼0.61 | 56.23 ▲1.14 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.18 ▼0.06 | 96.26 ▼14.41 | 43.57 ▼1.39 |
Scan-to-Login /wp-admin/options-general.php?page=scantologin | 769 | 2.02 | 23.52 | 27.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
- The uninstall procedure has failed, leaving 13 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- scantologin_position
- scantologin_self_registration_allowed
- scantologin_parent_container
- scantologin_js_file
- scantologin_demo_mode
- widget_theysaidso_widget
- scantologin_merchant_id
- ...
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/scan-to-login/bootstrap.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_option() in wp-content/plugins/scan-to-login/scan-to-login.php:512
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
scan-to-login/scan-to-login.php Passed 13 tests
The principal PHP file in "Scan-to-Login" v. 2.1.201 is loaded by WordPress automatically on each request
31 characters long description:
Scan-to-Login Wordpress Plugin.
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
Everything looks great! No dangerous files found in this plugin1,042 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 75 | 36 | 605 |
JavaScript | 1 | 54 | 14 | 311 |
JSON | 2 | 0 | 0 | 82 |
CSS | 1 | 0 | 0 | 44 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 66.00 |
▷ Minimum class complexity | 66.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 8.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.15MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
772x250_samsung_verdana4.png | 115.88KB | 55.91KB | ▼ 51.75% |
available_for.png | 1.66KB | 0.46KB | ▼ 72.21% |
scan_to_login_logo.png | 6.53KB | 3.46KB | ▼ 46.97% |
icon.png | 22.05KB | 8.82KB | ▼ 60.02% |
appstore_icons.png | 1.98KB | 0.63KB | ▼ 68.36% |