84% rest-xmlrpc-data-checker

Code Review | REST XML-RPC Data Checker

WordPress plugin REST XML-RPC Data Checker scored84%from 54 tests.

About plugin

  • Plugin page: rest-xmlrpc-data-...
  • Plugin version: 1.4.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.0
  • WordPress version: 6.3.1
  • First release: Nov 11, 2018
  • Latest release: Aug 4, 2022
  • Number of updates: 32
  • Update frequency: every 42.7 days
  • Top authors: enrico.sorcinelli (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /7,388 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1040.82 ▼2.13
Dashboard /wp-admin3.55 ▲0.2546.52 ▼7.02
Posts /wp-admin/edit.php3.66 ▲0.3150.00 ▲1.46
Add New Post /wp-admin/post-new.php6.13 ▲0.2492.45 ▼23.46
Media Library /wp-admin/upload.php3.47 ▲0.2437.99 ▲3.39
REST XML-RPC Data Checker /wp-admin/options-general.php?page=rest_xmlrpc_data_checker_settings5.8048.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.29 ▼1.393.86 ▲1.9943.80 ▼1.72
Dashboard /wp-admin2,210 ▲224.86 ▼0.04106.75 ▼12.4540.80 ▼9.48
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0440.04 ▲1.7834.19 ▼0.79
Add New Post /wp-admin/post-new.php1,539 ▲2523.53 ▲5.96605.26 ▼50.7347.04 ▼12.63
Media Library /wp-admin/upload.php1,392 ▲44.15 ▼0.0693.91 ▲1.0043.43 ▲2.47
REST XML-RPC Data Checker /wp-admin/options-general.php?page=rest_xmlrpc_data_checker_settings3,8113.47146.4435.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP142947511,417
PO File1121202439
CSS4317124
JavaScript3131860

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 code0.32
Average class complexity20.14
▷ Minimum class complexity2.00
▷ Maximum class complexity39.00
Average method complexity3.39
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods56
▷ Static methods1323.21%
▷ Public methods5089.29%
▷ Protected methods47.14%
▷ Private methods23.57%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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