Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.08ms] Passed 4 tests
A check of server-side resources used by Login with Amazon
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 38.05 ▼3.19 |
Dashboard /wp-admin | 3.37 ▲0.07 | 50.75 ▼2.68 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 48.08 ▼2.95 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 87.87 ▼7.51 |
Media Library /wp-admin/upload.php | 3.30 ▲0.06 | 42.59 ▲6.60 |
Server storage [IO: ▲0.12MB] [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: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
loginwithamazon_client_id |
db_upgraded |
Browser metrics Passed 4 tests
Login with Amazon: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.33 ▲0.14 | 1.64 ▲0.03 | 41.83 ▲1.93 |
Dashboard /wp-admin | 2,202 ▲22 | 5.51 ▼0.12 | 89.51 ▼4.26 | 43.22 ▲4.71 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 2.00 ▲0.03 | 35.68 ▼4.89 | 36.00 ▲0.22 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 22.87 ▼0.25 | 689.56 ▲56.18 | 62.88 ▲8.23 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.18 ▼0.10 | 104.71 ▼8.48 | 47.91 ▼1.30 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- loginwithamazon_client_id
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 6× PHP files output text when accessed directly:
- > /wp-content/plugins/login-with-amazon/loginwithamazon.php
- > /wp-content/plugins/login-with-amazon/source/loginwithamazon/loginwithamazon.php
- > /wp-content/plugins/login-with-amazon/login_process.php
- > /wp-content/plugins/login-with-amazon/source/loginwithamazon/login_button.php
- > /wp-content/plugins/login-with-amazon/login_button.php
- > /wp-content/plugins/login-with-amazon/source/loginwithamazon/login_process.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/login-with-amazon/source/loginwithamazon/options.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/login-with-amazon/options.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: access, login with amazon, amazon, registration, login...
login-with-amazon/loginwithamazon.php 92% from 13 tests
The main file in "Login with Amazon" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("login-with-amazon.php" instead of "loginwithamazon.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected577 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 169 | 307 | 471 |
JavaScript | 3 | 6 | 28 | 53 |
Markdown | 1 | 22 | 0 | 53 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 42 | 100.00% |
▷ Public methods | 42 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There were not PNG files found in your plugin