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.24MB] [CPU: ▼6.48ms] Passed 4 tests
Server-side resources used by i4a Single Sign-On
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 43.23 ▲2.54 |
Dashboard /wp-admin | 3.64 ▲0.29 | 51.02 ▼11.79 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 52.04 ▲2.49 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 84.36 ▼19.15 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 40.96 ▲10.66 |
Import Roles /wp-admin/admin.php?page=Internet4Associations_import | 3.46 | 33.81 |
Settings /wp-admin/admin.php?page=Internet4Associations | 3.52 | 35.24 |
Help /wp-admin/admin.php?page=Internet4Associations_help | 3.47 | 31.15 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for i4a Single Sign-On
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲108 | 13.21 ▼1.38 | 2.00 ▲0.28 | 43.09 ▼3.28 |
Dashboard /wp-admin | 2,239 ▲51 | 5.82 ▲0.94 | 99.90 ▼18.97 | 75.93 ▲27.03 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 1.98 ▼0.03 | 39.15 ▲3.05 | 33.72 ▼3.24 |
Add New Post /wp-admin/post-new.php | 1,542 ▲12 | 23.12 ▲4.79 | 772.87 ▲144.97 | 54.02 ▲1.88 |
Media Library /wp-admin/upload.php | 1,415 ▲24 | 4.25 ▲0.06 | 112.40 ▲12.82 | 72.52 ▲28.10 |
Import Roles /wp-admin/admin.php?page=Internet4Associations_import | 817 | 2.02 | 22.76 | 26.43 |
Settings /wp-admin/admin.php?page=Internet4Associations | 916 | 1.95 | 26.41 | 28.57 |
Help /wp-admin/admin.php?page=Internet4Associations_help | 868 | 2.02 | 25.70 | 29.28 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=Internet4Associations_import
- > Warning in wp-content/plugins/internet4associations-single-sign-on/src/i4aAuth/Views/Internet4AssociationsImport.php+90
include_once(wp-content/plugins/internet4associations-single-sign-on/assets/templates/importDisabled.tpl): failed to open stream: No such file or directory
- > GET request to /wp-admin/admin.php?page=Internet4Associations_import
- > Warning in wp-content/plugins/internet4associations-single-sign-on/src/i4aAuth/Views/Internet4AssociationsImport.php+90
include_once(): Failed opening 'wp-content/plugins/internet4associations-single-sign-on/assets/templates/importDisabled.tpl' for inclusion (include_path='.:/usr/share/php')
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP\\Views\\Page' not found in wp-content/plugins/internet4associations-single-sign-on/src/i4aAuth/Views/Render.php:5
- > PHP Fatal error
Trait 'WP\\Traits\\Helpers' not found in wp-content/plugins/internet4associations-single-sign-on/src/WP/Views/Page.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'WP\\Views\\View' not found in wp-content/plugins/internet4associations-single-sign-on/src/i4aAuth/Views/Internet4AssociationsHelp.php:5
- > PHP Fatal error
Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/internet4associations-single-sign-on/src/Internet4Associations/Request.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP\\Views\\Form' not found in wp-content/plugins/internet4associations-single-sign-on/src/WP/Views/View.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP\\Views\\View' not found in wp-content/plugins/internet4associations-single-sign-on/src/i4aAuth/Views/Internet4Associations.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP\\Views\\View' not found in wp-content/plugins/internet4associations-single-sign-on/src/i4aAuth/Views/Internet4AssociationsImport.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Contributors: The plugin contributors field is missing
internet4associations-single-sign-on/i4a-single-sign-on.php 92% from 13 tests
The main file in "i4a Single Sign-On" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("internet4associations-single-sign-on.php" instead of "i4a-single-sign-on.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,436 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 299 | 80 | 1,430 |
JavaScript | 1 | 1 | 0 | 6 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 10.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 16 | |
▷ Abstract classes | 2 | 12.50% |
▷ Concrete classes | 14 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 94 | |
▷ Static methods | 36 | 38.30% |
▷ Public methods | 57 | 60.64% |
▷ Protected methods | 25 | 26.60% |
▷ Private methods | 12 | 12.77% |
Functions | 31 | |
▷ Named functions | 20 | 64.52% |
▷ Anonymous functions | 11 | 35.48% |
Constants | 11 | |
▷ Global constants | 11 | 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
5 PNG files occupy 0.29MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/favicon.png | 3.74KB | 0.67KB | ▼ 82.19% |
assets/images/i4a-header-logo-new.png | 81.01KB | 2.83KB | ▼ 96.51% |
assets/images/i4a-header-logo.png | 81.01KB | 2.83KB | ▼ 96.51% |
assets/images/logo.png | 17.01KB | 7.65KB | ▼ 55.01% |
assets/screenshot-1.png | 118.06KB | 35.63KB | ▼ 69.82% |