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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼147.49ms] Passed 4 tests
Server-side resources used by ID4me
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 41.38 ▲17.02 |
Dashboard /wp-admin | 3.16 ▲0.10 | 47.63 ▲1.58 |
Posts /wp-admin/edit.php | 3.20 ▲0.10 | 47.10 ▼2.52 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 96.68 ▼577.91 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 36.36 ▼11.11 |
Server storage [IO: ▲1.94MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 223 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_id4me_authorities |
New WordPress options |
---|
id4me_version |
Browser metrics Passed 4 tests
A check of browser resources used by ID4me
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,832 ▲236 | 15.94 ▲0.61 | 14.33 ▲5.37 | 54.05 ▼3.77 |
Dashboard /wp-admin | 2,973 ▲39 | 5.89 ▼0.22 | 145.11 ▼10.78 | 125.91 ▼3.12 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.00 | 70.75 ▲0.48 | 98.40 ▼8.71 |
Add New Post /wp-admin/post-new.php | 1,672 ▼11 | 19.10 ▲0.43 | 413.00 ▲0.43 | 119.80 ▲4.93 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.05 ▲0.02 | 150.65 ▼37.71 | 126.02 ▼19.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 1 option
- id4me_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 130× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/id4me/vendor/composer/installers/src/Composer/Installers/CiviCrmInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/id4me/vendor/composer/installers/src/Composer/Installers/RoundcubeInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/id4me/vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/id4me/vendor/composer/installers/src/Composer/Installers/MauticInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/id4me/vendor/composer/installers/src/Composer/Installers/PortoInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/id4me/vendor/composer/installers/src/Composer/Installers/FuelInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/id4me/vendor/composer/installers/src/Composer/Installers/BitrixInstaller.php:26
- > PHP Fatal error
Uncaught Error: Class 'Id4me\\RP\\Exception\\ValidationException' not found in wp-content/plugins/id4me/vendor/id4me/id4me-rp/src/Exception/InvalidAuthorityIssuerException.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/id4me/vendor/composer/installers/src/Composer/Installers/OsclassInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/id4me/vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (ID4me login screen), #2 (ID4me setup screen)
id4me/id4me.php 92% from 13 tests
The entry point to "ID4me" version 1.1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Requires PHP: The required version number must match the one declared in readme.txt ("7.0" instead of "7.2")
Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin27,434 lines of code in 205 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 183 | 4,725 | 14,639 | 25,881 |
JSON | 4 | 0 | 0 | 503 |
JavaScript | 2 | 49 | 11 | 375 |
CSS | 2 | 0 | 2 | 207 |
LESS | 2 | 2 | 0 | 177 |
Markdown | 4 | 68 | 0 | 145 |
SVG | 4 | 2 | 1 | 74 |
YAML | 2 | 3 | 0 | 33 |
Dockerfile | 1 | 5 | 1 | 20 |
XML | 1 | 0 | 0 | 19 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 106)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 23.52 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 633.00 |
Average method complexity | 4.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 106.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 172 | |
▷ Abstract classes | 3 | 1.74% |
▷ Concrete classes | 169 | 98.26% |
▷ Final classes | 0 | 0.00% |
Methods | 1,067 | |
▷ Static methods | 39 | 3.66% |
▷ Public methods | 997 | 93.44% |
▷ Protected methods | 38 | 3.56% |
▷ Private methods | 32 | 3.00% |
Functions | 26 | |
▷ Named functions | 18 | 69.23% |
▷ Anonymous functions | 8 | 30.77% |
Constants | 206 | |
▷ Global constants | 21 | 10.19% |
▷ Class constants | 185 | 89.81% |
▷ Public constants | 185 | 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
7 PNG files occupy 0.34MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/id4me/id4me-rp/images/architecture.png | 60.13KB | 22.90KB | ▼ 61.91% |
screenshot-2.png | 25.80KB | 7.78KB | ▼ 69.83% |
assets/img/id4me-logo.png | 1.37KB | 0.58KB | ▼ 57.90% |
assets/screenshots/readme-register-form.png | 27.88KB | 10.95KB | ▼ 60.74% |
assets/screenshots/readme-register-data.png | 59.52KB | 20.61KB | ▼ 65.38% |