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.03MB] [CPU: ▼9.26ms] Passed 4 tests
A check of server-side resources used by WP AAI@EduHr Auth
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.12 ▲1.38 |
Dashboard /wp-admin | 3.35 ▲0.00 | 48.83 ▼8.79 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 44.39 ▼22.42 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 84.96 ▼7.19 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.44 ▲3.26 |
WP AAI@EduHr Auth /wp-admin/options-general.php?page=WP_AAIEduHr_Auth_Settings | 3.26 | 29.22 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WP AAI@EduHr Auth
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲52 | 14.13 ▼0.21 | 1.70 ▲0.08 | 43.69 ▼0.49 |
Dashboard /wp-admin | 2,205 ▲28 | 5.58 ▼0.04 | 84.45 ▲0.10 | 39.56 ▼2.65 |
Posts /wp-admin/edit.php | 2,086 ▼17 | 1.96 ▲0.02 | 35.87 ▼3.05 | 31.64 ▼3.66 |
Add New Post /wp-admin/post-new.php | 1,532 ▲3 | 23.19 ▼0.07 | 678.13 ▼13.87 | 47.55 ▼4.63 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.24 ▲0.03 | 126.38 ▲21.18 | 49.93 ▲3.71 |
WP AAI@EduHr Auth /wp-admin/options-general.php?page=WP_AAIEduHr_Auth_Settings | 885 | 2.04 | 22.51 | 27.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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 fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-aaieduhr-auth/wp-aaieduhr-auth.php
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/wp-aaieduhr-auth/templates/auth_message.php on line 11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-aaieduhr-auth/templates/auth_message.php on line 7
- > PHP Notice
Undefined variable: attributes in wp-content/plugins/wp-aaieduhr-auth/templates/auth_message.php on line 11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-aaieduhr-auth/templates/auth_message.php on line 2
- > PHP Notice
Undefined variable: attributes in wp-content/plugins/wp-aaieduhr-auth/templates/auth_message.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-aaieduhr-auth/templates/auth_message.php on line 11
- > PHP Notice
Undefined variable: attributes in wp-content/plugins/wp-aaieduhr-auth/templates/auth_message.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function home_url() in wp-content/plugins/wp-aaieduhr-auth/templates/auth_message.php:24
- > PHP Warning
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
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Requires php: The plugin version is formatted incorrectly
wp-aaieduhr-auth/wp-aaieduhr-auth.php Passed 13 tests
The primary PHP file in "WP AAI@EduHr Auth" version 0.0.10 is used by WordPress to initiate all plugin functionality
87 characters long description:
Plugin that replaces the default WordPress authentication with SimpleSAMLphp AAI@EduHr.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin886 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 313 | 578 | 831 |
CSS | 1 | 6 | 2 | 42 |
Markdown | 1 | 2 | 0 | 13 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 24.80 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 35 | 56.45% |
▷ Public methods | 48 | 77.42% |
▷ Protected methods | 9 | 14.52% |
▷ Private methods | 5 | 8.06% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin