Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼291.13ms] Passed 4 tests
Analyzing server-side resources used by Headless SSO Plugin for WP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 56.77 ▼0.01 |
Dashboard /wp-admin | 3.45 ▲0.04 | 37.16 ▼2.32 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 42.83 ▲4.26 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 98.61 ▼1,165.36 |
Media Library /wp-admin/upload.php | 3.32 ▲0.03 | 29.65 ▲3.16 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Headless SSO Plugin for WP
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,827 ▲104 | 16.56 ▲0.86 | 5.69 ▼0.49 | 2.29 ▼0.46 |
Dashboard /wp-admin | 2,921 ▲60 | 6.91 ▲0.74 | 135.11 ▲3.19 | 183.91 ▲22.32 |
Posts /wp-admin/edit.php | 2,704 ▲10 | 3.01 ▼0.23 | 68.22 ▲0.99 | 144.02 ▼3.58 |
Add New Post /wp-admin/post-new.php | 1,699 ▼74 | 17.37 ▼3.69 | 418.88 ▼44.03 | 215.37 ▲60.47 |
Media Library /wp-admin/upload.php | 1,742 ▲47 | 6.03 ▲0.57 | 125.94 ▼22.21 | 212.19 ▲26.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% 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 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
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/headless-single-sign-on/headless-sso.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/headless-single-sign-on/headless-sso.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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
Please fix the following attributes:
- Tags: There are too many tags (11 tag instead of maximum 10)
headless-single-sign-on/headless-sso.php 92% from 13 tests
The principal PHP file in "Headless SSO Plugin for WP" v. 1.3.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("headless-single-sign-on.php" instead of "headless-sso.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin4,322 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 251 | 98 | 3,084 |
PHP | 7 | 176 | 80 | 1,228 |
JavaScript | 4 | 0 | 9 | 6 |
SVG | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
9 PNG files occupy 0.16MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/sad.png | 18.16KB | 8.79KB | ▼ 51.62% |
images/angry.png | 20.40KB | 9.65KB | ▼ 52.68% |
images/logo.png | 2.84KB | 1.59KB | ▼ 44.03% |
images/miniorange.png | 1.49KB | 1.34KB | ▼ 10.35% |
images/61456.png | 3.64KB | 3.62KB | ▼ 0.62% |