Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲1.14MB] [CPU: ▲4.61ms] Passed 4 tests
Analyzing server-side resources used by Disable XML-RPC-API
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.59 ▲1.13 | 47.43 ▲7.30 |
Dashboard /wp-admin | 4.44 ▲1.14 | 52.90 ▲4.55 |
Posts /wp-admin/edit.php | 4.55 ▲1.20 | 55.52 ▲9.57 |
Add New Post /wp-admin/post-new.php | 7.04 ▲1.15 | 102.25 ▼2.99 |
Media Library /wp-admin/upload.php | 4.36 ▲1.13 | 46.92 ▲10.06 |
Server storage [IO: ▲0.92MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
- The plugin illegally modified 1 file (0.85KB) outside of "wp-content/plugins/disable-xml-rpc-api/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 117 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
dsxmlrpc-settings |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Disable XML-RPC-API
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.35 ▼1.23 | 1.44 ▼0.18 | 40.10 ▼3.06 |
Dashboard /wp-admin | 2,243 ▲58 | 5.90 ▲0.02 | 98.57 ▼17.63 | 40.36 ▼3.72 |
Posts /wp-admin/edit.php | 2,129 ▲40 | 2.03 ▼0.01 | 39.04 ▲4.80 | 35.40 ▲4.14 |
Add New Post /wp-admin/post-new.php | 1,567 ▲34 | 18.52 ▼4.65 | 680.10 ▼2.41 | 61.77 ▲6.04 |
Media Library /wp-admin/upload.php | 1,428 ▲37 | 4.24 ▲0.02 | 94.49 ▼7.80 | 41.61 ▼3.01 |
Security Settings /wp-admin/admin.php?page=Security Settings#tab=security-settings | 1,578 | 3.49 | 56.01 | 47.33 |
Speed Up WordPress /wp-admin/admin.php?page=Security Settings#tab=speed-up-wordpress | 1,580 | 3.40 | 50.84 | 35.54 |
Backup/Restore Settings /wp-admin/admin.php?page=Security Settings#tab=backup-restore-settings | 1,573 | 3.66 | 48.35 | 33.38 |
XML-RPC Settings /wp-admin/admin.php?page=Security Settings#tab=xml-rpc-settings | 1,578 | 3.64 | 48.81 | 37.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/disable-xml-rpc-api/admin/admin.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2 in disable-xml-rpc-api/assets to your readme.txt
disable-xml-rpc-api/disable-xml-rpc-api.php Passed 13 tests
The principal PHP file in "Disable XML-RPC-API" v. 2.1.5 is loaded by WordPress automatically on each request
102 characters long description:
Lightweight plugin to disable XML-RPC API and Pingbacks,Trackbacks for faster and more secure website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin12,187 lines of code in 90 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 20 | 3,037 | 3,414 | 6,180 |
PHP | 64 | 1,789 | 973 | 5,906 |
JavaScript | 4 | 29 | 11 | 99 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 21.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 152.00 |
Average method complexity | 6.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 53 | |
▷ Abstract classes | 2 | 3.77% |
▷ Concrete classes | 51 | 96.23% |
▷ Final classes | 0 | 0.00% |
Methods | 203 | |
▷ Static methods | 34 | 16.75% |
▷ Public methods | 203 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 26 | |
▷ Named functions | 24 | 92.31% |
▷ Anonymous functions | 2 | 7.69% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/logo-icon.png | 3.11KB | 1.53KB | ▼ 50.66% |
lib/skelet/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |