90% wee-remove-xmlrpc-methods

Code Review | Remove XML-RPC Methods

WordPress plugin Remove XML-RPC Methods scored90%from 54 tests.

About plugin

  • Plugin page: wee-remove-xmlrpc...
  • Plugin version: 1.4.0
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Feb 10, 2020
  • Latest release: Aug 7, 2023
  • Number of updates: 18
  • Update frequency: every 70.8 days
  • Top authors: walterebert (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /5,757 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.50ms] Passed 4 tests

Server-side resources used by Remove XML-RPC Methods
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.76 ▲0.42
Dashboard /wp-admin3.32 ▼0.0346.89 ▼14.37
Posts /wp-admin/edit.php3.37 ▲0.0153.01 ▼0.72
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.10 ▼15.31
Media Library /wp-admin/upload.php3.24 ▲0.0139.77 ▲3.79

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
wee_remove_xmlrpc_methods_default_ping_status_original
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Remove XML-RPC Methods
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲5213.26 ▼1.054.98 ▲2.6344.75 ▼0.72
Dashboard /wp-admin2,221 ▲154.87 ▼0.00108.08 ▼1.1639.39 ▼3.46
Posts /wp-admin/edit.php2,100 ▼32.01 ▲0.0242.70 ▲3.0937.25 ▲1.51
Add New Post /wp-admin/post-new.php1,547 ▲1523.06 ▼0.16721.49 ▲22.8756.79 ▲2.92
Media Library /wp-admin/upload.php1,397 ▼34.25 ▲0.0197.99 ▼5.2948.12 ▲1.36

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: xml-rpc

wee-remove-xmlrpc-methods/wee-remove-xmlrpc-methods.php Passed 13 tests

The entry point to "Remove XML-RPC Methods" version 1.4.0 is a PHP file that has certain tags in its header comment area
50 characters long description:
Remove all methods from the WordPress XML-RPC API.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin39 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP183039

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin