Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.76ms] Passed 4 tests
This is a short check of server-side resources used by SMNTCS Disable REST API User Endpoints
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.23 ▼3.18 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.60 ▼16.48 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.89 ▼0.19 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 77.30 ▼22.99 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.14 ▼0.40 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for SMNTCS Disable REST API User Endpoints
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.32 ▲0.04 | 1.82 ▲0.17 | 43.95 ▼1.39 |
Dashboard /wp-admin | 2,195 ▲21 | 5.54 ▼0.06 | 86.28 ▼0.12 | 40.00 ▼1.71 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.94 ▼0.01 | 35.50 ▼0.18 | 34.23 ▲0.91 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.49 ▲0.32 | 659.50 ▼17.59 | 55.13 ▲2.86 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.20 ▲0.02 | 98.26 ▼4.99 | 43.15 ▼2.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: endpoints, rest api, security
smntcs-disable-rest-api-user-endpoints/smntcs-disable-rest-api-endpoints.php 85% from 13 tests
This is the main PHP file of "SMNTCS Disable REST API User Endpoints" version 2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("smntcs-disable-rest-api-user-endpoints.php" instead of "smntcs-disable-rest-api-endpoints.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "5.5")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin9,278 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 9,072 |
XML | 3 | 18 | 16 | 84 |
Markdown | 1 | 33 | 0 | 49 |
JavaScript | 5 | 4 | 3 | 48 |
PHP | 1 | 7 | 30 | 17 |
YAML | 1 | 0 | 0 | 8 |
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.50 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin