Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.21MB] [CPU: ▼7.79ms] Passed 4 tests
An overview of server-side resources used by REST XML-RPC Data Checker
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 40.82 ▼2.13 |
Dashboard /wp-admin | 3.55 ▲0.25 | 46.52 ▼7.02 |
Posts /wp-admin/edit.php | 3.66 ▲0.31 | 50.00 ▲1.46 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 92.45 ▼23.46 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 37.99 ▲3.39 |
REST XML-RPC Data Checker /wp-admin/options-general.php?page=rest_xmlrpc_data_checker_settings | 5.80 | 48.26 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for REST XML-RPC Data Checker
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.29 ▼1.39 | 3.86 ▲1.99 | 43.80 ▼1.72 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼0.04 | 106.75 ▼12.45 | 40.80 ▼9.48 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.04 | 40.04 ▲1.78 | 34.19 ▼0.79 |
Add New Post /wp-admin/post-new.php | 1,539 ▲25 | 23.53 ▲5.96 | 605.26 ▼50.73 | 47.04 ▼12.63 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.15 ▼0.06 | 93.91 ▲1.00 | 43.43 ▲2.47 |
REST XML-RPC Data Checker /wp-admin/options-general.php?page=rest_xmlrpc_data_checker_settings | 3,811 | 3.47 | 146.44 | 35.89 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
The following issues need your attention
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: params in wp-content/plugins/rest-xmlrpc-data-checker/php/adminpages/settings.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/rest-xmlrpc-data-checker/php/adminpages/settings.php:14
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/rest-xmlrpc-data-checker/php/adminpages/settings.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/rest-xmlrpc-data-checker/php/adminpages/credits.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/rest-xmlrpc-data-checker/php/adminpages/user-fields.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/rest-xmlrpc-data-checker/php/adminpages/users-list.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/rest-xmlrpc-data-checker/php/adminpages/users-list-status-column.php:15
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: json, security, api, admin, theme...
rest-xmlrpc-data-checker/rest-xmlrpc-data-checker.php Passed 13 tests
"REST XML-RPC Data Checker" version 1.4.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
102 characters long description:
A WordPress plugin that allow to check JSON REST and XML-RPC API requests and grant access permissions
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 plugin2,040 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 294 | 751 | 1,417 |
PO File | 1 | 121 | 202 | 439 |
CSS | 4 | 31 | 7 | 124 |
JavaScript | 3 | 13 | 18 | 60 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 20.14 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 3.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 13 | 23.21% |
▷ Public methods | 50 | 89.29% |
▷ Protected methods | 4 | 7.14% |
▷ Private methods | 2 | 3.57% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
No PNG images were found in this plugin