Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼1.97ms] Passed 4 tests
Analyzing server-side resources used by WP REST API Security
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.82 ▼4.14 |
Dashboard /wp-admin | 3.37 ▲0.06 | 45.39 ▼2.33 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 47.02 ▲1.12 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 92.34 ▼0.23 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.00 ▼1.16 |
REST API Security /wp-admin/options-general.php?page=wp-rest-api-security | 4.78 | 36.10 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WP REST API Security
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 13.19 ▼1.23 | 1.71 ▼0.12 | 42.81 ▼4.63 |
Dashboard /wp-admin | 2,211 ▲25 | 5.83 ▲0.95 | 102.30 ▼20.57 | 39.84 ▼6.86 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.02 ▲0.03 | 39.91 ▲2.26 | 35.58 ▲2.97 |
Add New Post /wp-admin/post-new.php | 1,530 ▲16 | 18.07 ▲0.44 | 654.99 ▼34.27 | 53.57 ▼7.70 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.15 ▼0.02 | 97.31 ▼1.01 | 41.84 ▲0.55 |
REST API Security /wp-admin/options-general.php?page=wp-rest-api-security | 2,354 | 2.02 | 33.05 | 40.85 |
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 detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: security, rest, api
wp-rest-api-security/wp-rest-api-security.php Passed 13 tests
The entry point to "WP REST API Security" version 1.1.2 is a PHP file that has certain tags in its header comment area
50 characters long description:
A UI to choose which REST API endpoints to enable.
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
Everything looks great! No dangerous files found in this plugin302 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 30 | 98 | 259 |
CSS | 1 | 0 | 0 | 27 |
JavaScript | 1 | 1 | 0 | 16 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
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 | 1 | |
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 | 15 | |
▷ Named functions | 15 | 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 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin