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: ▲3.28MB] [CPU: ▲13.87ms] 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 / | 6.72 ▲3.25 | 53.25 ▲14.86 |
Dashboard /wp-admin | 6.60 ▲3.30 | 64.83 ▲19.24 |
Posts /wp-admin/edit.php | 6.65 ▲3.29 | 64.90 ▲17.17 |
Add New Post /wp-admin/post-new.php | 9.18 ▲3.29 | 111.32 ▲9.33 |
Media Library /wp-admin/upload.php | 6.52 ▲3.29 | 51.90 ▲14.10 |
Server storage [IO: ▲6.97MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 977 new files
Database: no new tables, 11 new options
New WordPress options |
---|
auth_settings_access_users_pending |
auth_settings_access_users_approved |
widget_recent-posts |
widget_recent-comments |
auth_version |
auth_settings_access_users_blocked |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
auth_settings |
... |
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 / | 3,176 ▲430 | 13.28 ▼1.01 | 1.87 ▲0.17 | 40.94 ▼2.13 |
Dashboard /wp-admin | 2,578 ▲398 | 4.88 ▼0.72 | 99.91 ▲8.90 | 48.70 ▲9.70 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.03 ▲0.02 | 39.47 ▲2.56 | 36.19 ▲1.78 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.65 ▲0.67 | 601.45 ▼55.52 | 59.15 ▲3.14 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.30 ▲0.17 | 94.73 ▼17.42 | 40.15 ▼8.12 |
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: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
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
- 440× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\KoblitzPrime' not found in wp-content/plugins/authorizer/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/secp224k1.php:19
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\Prime' not found in wp-content/plugins/authorizer/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/prime192v3.php:19
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\Handler' not found in wp-content/plugins/authorizer/vendor/monolog/monolog/src/Monolog/Handler/GroupHandler.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Google\\Auth\\FetchAuthTokenInterface' not found in wp-content/plugins/authorizer/vendor/google/auth/src/CredentialsLoader.php:31
- > PHP Fatal error
Uncaught Error: Class 'League\\OAuth2\\Client\\OptionProvider\\PostAuthOptionProvider' not found in wp-content/plugins/authorizer/vendor/league/oauth2-client/src/OptionProvider/HttpBasicAuthOptionProvider.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/authorizer/vendor/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php:19
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\SymmetricKey' not found in wp-content/plugins/authorizer/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/BlockCipher.php:22
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/authorizer/vendor/monolog/monolog/src/Monolog/Handler/BufferHandler.php:28
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/authorizer/vendor/monolog/monolog/src/Monolog/Handler/InsightOpsHandler.php:22
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Math\\BigInteger\\Engines\\Engine' not found in wp-content/plugins/authorizer/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/PHP.php:24
- > 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 (12 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.6.3.1 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 151 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 plugin102,656 lines of code in 915 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 787 | 14,774 | 50,403 | 71,979 |
JavaScript | 18 | 4,675 | 4,367 | 16,790 |
Markdown | 46 | 2,241 | 0 | 6,351 |
JSON | 37 | 2 | 0 | 3,465 |
PO File | 2 | 722 | 1,122 | 2,930 |
Sass | 2 | 48 | 53 | 550 |
CSS | 7 | 20 | 15 | 226 |
YAML | 8 | 14 | 2 | 220 |
XML | 4 | 4 | 7 | 89 |
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 147)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 13.97 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 670.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 147.00 |
Code structure | ||
---|---|---|
Namespaces | 92 | |
Interfaces | 63 | |
Traits | 22 | |
Classes | 695 | |
▷ Abstract classes | 226 | 32.52% |
▷ Concrete classes | 469 | 67.48% |
▷ Final classes | 66 | 14.07% |
Methods | 4,169 | |
▷ Static methods | 799 | 19.17% |
▷ Public methods | 3,100 | 74.36% |
▷ Protected methods | 514 | 12.33% |
▷ Private methods | 555 | 13.31% |
Functions | 187 | |
▷ Named functions | 38 | 20.32% |
▷ Anonymous functions | 149 | 79.68% |
Constants | 558 | |
▷ Global constants | 45 | 8.06% |
▷ Class constants | 513 | 91.94% |
▷ Public constants | 467 | 91.03% |
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 |
sample-theme-add-branding/extend/authorizer/example/images/w-logo-blue.png | 3.04KB | 3.09KB | 0.00% |
vendor/components/multi-select/img/switch.png | 3.01KB | 0.64KB | ▼ 78.70% |
images/authorizer-banner-400x300.png | 36.64KB | 12.84KB | ▼ 64.96% |
images/authorizer-banner-800x600.png | 69.62KB | 24.89KB | ▼ 64.24% |