Benchmarks
Plugin footprint Passed 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.00MB] [CPU: ▼274.83ms] Passed 4 tests
This is a short check of server-side resources used by Disable REST API and Require JWT / OAuth Authentication
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 36.77 ▲14.86 |
Dashboard /wp-admin | 3.06 ▲0.01 | 43.41 ▲4.25 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 36.98 ▼7.90 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 88.14 ▼1,090.21 |
Media Library /wp-admin/upload.php | 3.00 ▼0.00 | 33.06 ▼5.45 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Disable REST API and Require JWT / OAuth Authentication: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,674 ▲68 | 15.87 ▲0.03 | 9.63 ▲0.81 | 52.06 ▲2.78 |
Dashboard /wp-admin | 2,931 ▲81 | 5.95 ▼0.05 | 143.31 ▲8.59 | 109.50 ▲5.84 |
Posts /wp-admin/edit.php | 2,706 ▼0 | 2.69 ▼0.01 | 63.10 ▼7.46 | 92.39 ▲4.02 |
Add New Post /wp-admin/post-new.php | 1,853 ▲200 | 18.83 ▲0.20 | 357.53 ▼8.52 | 113.85 ▲12.00 |
Media Library /wp-admin/upload.php | 1,772 ▼0 | 5.00 ▼0.01 | 147.54 ▼8.02 | 107.63 ▼12.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: jwt, oauth, json, api, wp-api...
disable-rest-api-and-require-jwt-oauth-authentication/plugin.php 85% from 13 tests
"Disable REST API and Require JWT / OAuth Authentication" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("disable-rest-api-and-require-jwt-oauth-authentication.php" instead of "plugin.php")
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin26 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 6 | 15 | 26 |
PHP code Passed 2 tests
Analyzing 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.44 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin