Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼1.31ms] Passed 4 tests
This is a short check of server-side resources used by Stormpath
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 42.85 ▲5.89 |
Dashboard /wp-admin | 3.62 ▲0.27 | 54.35 ▼7.33 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 49.64 ▲1.80 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 87.55 ▼2.88 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 36.96 ▲3.19 |
Stormpath /wp-admin/options-general.php?page=stormpath | 3.44 | 33.66 |
Server storage [IO: ▲3.75MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 671 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Stormpath
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.30 ▼1.00 | 4.47 ▲2.87 | 36.38 ▼2.88 |
Dashboard /wp-admin | 2,217 ▲25 | 4.85 ▼0.06 | 111.23 ▼7.84 | 40.61 ▼2.90 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.05 ▲0.01 | 39.61 ▲3.10 | 36.12 ▲1.09 |
Add New Post /wp-admin/post-new.php | 1,528 ▼0 | 23.25 ▲5.08 | 621.77 ▲4.77 | 47.21 ▼10.26 |
Media Library /wp-admin/upload.php | 1,399 ▲8 | 4.27 ▲0.05 | 98.44 ▲4.58 | 43.96 ▼0.04 |
Stormpath /wp-admin/options-general.php?page=stormpath | 848 | 2.03 | 26.09 | 25.71 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/stormpath/includes/admin/settings.php
- > /wp-content/plugins/stormpath/vendor/firebase/php-jwt/tests/bootstrap.php
- 307× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Stormpath\\Provider\\ProviderAccountRequest' not found in wp-content/plugins/stormpath/vendor/stormpath/sdk/src/Provider/LinkedInProviderAccountRequest.php:28
- > PHP Fatal error
Uncaught Error: Class 'Stormpath\\Resource\\AbstractCollectionResource' not found in wp-content/plugins/stormpath/vendor/stormpath/sdk/src/Resource/AccountList.php:23
- > PHP Fatal error
Uncaught Error: Class 'Stormpath\\Mfa\\Factor' not found in wp-content/plugins/stormpath/vendor/stormpath/sdk/src/Mfa/SmsFactor.php:26
- > PHP Fatal error
Uncaught Error: Class 'Stormpath\\Resource\\InstanceResource' not found in wp-content/plugins/stormpath/vendor/stormpath/sdk/src/Mfa/Factor.php:26
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/stormpath/vendor/guzzlehttp/psr7/tests/ServerRequestTest.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Discovery\\Exception' not found in wp-content/plugins/stormpath/vendor/php-http/discovery/src/Exception/ClassInstantiationFailedException.php:12
- > PHP Fatal error
Uncaught Error: Class 'Stormpath\\Resource\\AbstractCollectionResource' not found in wp-content/plugins/stormpath/vendor/stormpath/sdk/src/Mail/UnmodeledEmailTemplateList.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Client\\Common\\Plugin' not found in wp-content/plugins/stormpath/vendor/php-http/client-common/src/Plugin/HeaderAppendPlugin.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Client\\Common\\Plugin' not found in wp-content/plugins/stormpath/vendor/php-http/client-common/src/Plugin/HeaderSetPlugin.php:15
- > PHP Fatal error
Uncaught Error: Class 'Stormpath\\Resource\\AbstractCollectionResource' not found in wp-content/plugins/stormpath/vendor/stormpath/sdk/src/Resource/ApiKeyList.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% 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
These attributes need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== stormpath ===
)
stormpath/stormpath.php 92% from 13 tests
"Stormpath" version 0.1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 97% from 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 plugin74,809 lines of code in 543 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 458 | 34,985 | 34,456 | 67,675 |
YAML | 25 | 140 | 89 | 3,204 |
JSON | 17 | 0 | 0 | 2,290 |
Markdown | 33 | 901 | 0 | 1,340 |
XML | 6 | 11 | 25 | 194 |
Bourne Shell | 3 | 22 | 4 | 84 |
make | 1 | 7 | 0 | 22 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 11.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 591.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 83 | |
Interfaces | 49 | |
Traits | 18 | |
Classes | 380 | |
▷ Abstract classes | 14 | 3.68% |
▷ Concrete classes | 366 | 96.32% |
▷ Final classes | 54 | 14.75% |
Methods | 3,001 | |
▷ Static methods | 160 | 5.33% |
▷ Public methods | 2,727 | 90.87% |
▷ Protected methods | 108 | 3.60% |
▷ Private methods | 166 | 5.53% |
Functions | 208 | |
▷ Named functions | 32 | 15.38% |
▷ Anonymous functions | 176 | 84.62% |
Constants | 613 | |
▷ Global constants | 23 | 3.75% |
▷ Class constants | 590 | 96.25% |
▷ Public constants | 590 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/dashicon.png | 1.55KB | 0.68KB | ▼ 56.21% |