Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲2.51MB] [CPU: ▼171.07ms] Passed 4 tests
A check of server-side resources used by Authorizer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.29 ▲2.45 | 39.17 ▲9.92 |
Dashboard /wp-admin | 5.65 ▲2.59 | 50.09 ▲7.51 |
Posts /wp-admin/edit.php | 5.69 ▲2.58 | 49.35 ▲11.06 |
Add New Post /wp-admin/post-new.php | 7.93 ▲2.50 | 87.76 ▼712.76 |
Media Library /wp-admin/upload.php | 5.51 ▲2.51 | 43.09 ▲17.92 |
Server storage [IO: ▲6.69MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 962 new files
Database: no new tables, 5 new options
New WordPress options |
---|
auth_settings_access_users_blocked |
auth_settings |
auth_version |
auth_settings_access_users_pending |
auth_settings_access_users_approved |
Browser metrics Passed 4 tests
Checking browser requirements for Authorizer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,194 ▲593 | 16.26 ▲0.60 | 4.91 ▼0.38 | 71.57 ▼7.43 |
Dashboard /wp-admin | 3,450 ▲551 | 6.70 ▲0.50 | 121.22 ▼9.73 | 176.42 ▲1.04 |
Posts /wp-admin/edit.php | 2,760 ▲20 | 3.24 ▲0.16 | 64.15 ▼0.75 | 139.19 ▼2.55 |
Add New Post /wp-admin/post-new.php | 3,732 ▼9 | 18.72 ▲0.00 | 410.51 ▼25.62 | 158.65 ▼16.75 |
Media Library /wp-admin/upload.php | 1,775 ▲23 | 5.51 ▼0.01 | 140.96 ▲1.83 | 182.73 ▲1.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 4 options
- auth_version
- auth_settings_access_users_approved
- auth_settings_access_users_blocked
- auth_settings_access_users_pending
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
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 442× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/authorizer/vendor/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php:28
- > PHP Fatal error
Uncaught Error: Interface 'CAS_Languages_LanguageInterface' not found in wp-content/plugins/authorizer/vendor/apereo/phpcas/source/CAS/Languages/English.php:43
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\Handler' not found in wp-content/plugins/authorizer/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php:41
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/authorizer/vendor/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php:24
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/authorizer/vendor/monolog/monolog/src/Monolog/Handler/MailHandler.php:24
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Processor\\MemoryProcessor' not found in wp-content/plugins/authorizer/vendor/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php:20
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\Binary' not found in wp-content/plugins/authorizer/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/sect571r1.php:21
- > PHP Fatal error
Uncaught Error: Class 'Google\\Service\\Resource' not found in wp-content/plugins/authorizer/vendor/google/apiclient-services/src/Webfonts/Resource/Webfonts.php:30
- > PHP Fatal error
Uncaught Error: Class 'League\\OAuth2\\Client\\Provider\\AbstractProvider' not found in wp-content/plugins/authorizer/vendor/thenetworg/oauth2-azure/src/Provider/Azure.php:14
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\AsymmetricKey' not found in wp-content/plugins/authorizer/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC.php:58
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
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
Attributes that require attention:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
authorizer/authorizer.php 92% from 13 tests
The primary PHP file in "Authorizer" version 3.3.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 143 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin97,419 lines of code in 907 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 779 | 14,234 | 50,640 | 67,890 |
JavaScript | 18 | 4,674 | 4,367 | 16,782 |
Markdown | 40 | 2,022 | 0 | 5,878 |
JSON | 39 | 2 | 0 | 3,172 |
PO File | 2 | 629 | 893 | 2,534 |
Sass | 2 | 48 | 53 | 548 |
CSS | 8 | 20 | 15 | 229 |
YAML | 8 | 14 | 1 | 141 |
XML | 6 | 6 | 7 | 117 |
Python | 1 | 22 | 25 | 72 |
HTML | 1 | 13 | 2 | 39 |
make | 1 | 4 | 0 | 9 |
Dockerfile | 1 | 3 | 7 | 5 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 127)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 13.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 661.00 |
Average method complexity | 3.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 127.00 |
Code structure | ||
---|---|---|
Namespaces | 91 | |
Interfaces | 61 | |
Traits | 21 | |
Classes | 691 | |
▷ Abstract classes | 222 | 32.13% |
▷ Concrete classes | 469 | 67.87% |
▷ Final classes | 52 | 11.09% |
Methods | 4,038 | |
▷ Static methods | 756 | 18.72% |
▷ Public methods | 3,016 | 74.69% |
▷ Protected methods | 495 | 12.26% |
▷ Private methods | 527 | 13.05% |
Functions | 182 | |
▷ Named functions | 39 | 21.43% |
▷ Anonymous functions | 143 | 78.57% |
Constants | 539 | |
▷ Global constants | 46 | 8.53% |
▷ Class constants | 493 | 91.47% |
▷ Public constants | 461 | 93.51% |
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
4 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/authorizer-banner-800x600.png | 69.62KB | 24.89KB | ▼ 64.24% |
images/authorizer-banner-400x300.png | 36.64KB | 12.84KB | ▼ 64.96% |
vendor/components/multi-select/img/switch.png | 3.01KB | 0.64KB | ▼ 78.70% |
sample-theme-add-branding/extend/authorizer/example/images/w-logo-blue.png | 3.04KB | 3.09KB | 0.00% |