Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.73MB] [CPU: ▲4.47ms] Passed 4 tests
This is a short check of server-side resources used by WordPress REST API Authentication
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.24 ▲0.78 | 47.17 ▲9.19 |
Dashboard /wp-admin | 4.06 ▲0.76 | 52.00 ▲0.31 |
Posts /wp-admin/edit.php | 4.11 ▲0.75 | 54.98 ▲7.69 |
Add New Post /wp-admin/post-new.php | 6.61 ▲0.72 | 99.50 ▲4.92 |
Media Library /wp-admin/upload.php | 3.93 ▲0.69 | 41.50 ▲4.95 |
Server storage [IO: ▲2.84MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 157 new files
Database: no new tables, 12 new options
New WordPress options |
---|
widget_recent-comments |
mo_api_authentication_current_plugin_version |
mo_rest_api_protect_migrate |
mo_api_authentication_jwt_client_secret |
host_name |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
mo_api_authentication_jwt_signing_algorithm |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by WordPress REST API Authentication
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲70 | 14.63 ▲0.28 | 1.70 ▼0.02 | 42.94 ▲0.08 |
Dashboard /wp-admin | 2,210 ▲32 | 5.62 ▼0.09 | 88.93 ▼25.99 | 78.45 ▲32.28 |
Posts /wp-admin/edit.php | 2,128 ▲25 | 2.03 ▲0.09 | 38.75 ▲0.43 | 35.70 ▼0.26 |
Add New Post /wp-admin/post-new.php | 1,551 ▲25 | 23.56 ▲0.30 | 689.84 ▲4.22 | 60.05 ▲8.03 |
Media Library /wp-admin/upload.php | 1,427 ▲33 | 4.31 ▲0.12 | 95.34 ▼10.77 | 72.19 ▲29.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 9 options
- theysaidso_admin_options
- db_upgraded
- mo_api_authentication_jwt_client_secret
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- mo_api_authentication_jwt_signing_algorithm
- widget_recent-posts
- mo_rest_api_protect_migrate
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: There are too many tags (12 tag instead of maximum 10)
wp-rest-api-authentication/miniorange-api-authentication.php 85% from 13 tests
Analyzing the main PHP file in "WordPress REST API Authentication" version 3.0.0
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-rest-api-authentication.php" instead of "miniorange-api-authentication.php")
- Description: Keep the plugin description shorter than 140 characters (currently 185 characters long)
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
No dangerous file extensions were detected33,905 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 7,215 | 12 | 27,787 |
PHP | 35 | 740 | 1,305 | 5,432 |
SVG | 1 | 0 | 0 | 685 |
JavaScript | 1 | 0 | 8 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 10.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 123.00 |
Average method complexity | 3.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 100.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 28 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 91 | |
▷ Static methods | 45 | 49.45% |
▷ Public methods | 85 | 93.41% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 6.59% |
Functions | 33 | |
▷ Named functions | 32 | 96.97% |
▷ Anonymous functions | 1 | 3.03% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
102 compressed PNG files occupy 0.90MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/api-gateway.png | 3.96KB | 2.62KB | ▼ 33.77% |
admin/images/trial.png | 2.71KB | 2.83KB | 0.00% |
admin/images/controller.png | 5.58KB | 5.96KB | 0.00% |
admin/images/mologo.png | 12.82KB | 13.16KB | 0.00% |
admin/images/auth0.png | 1.69KB | 1.45KB | ▼ 14.31% |