84% deactivate-xml-rpc-service

Code Review | Deactivate XML-RPC Service

WordPress plugin Deactivate XML-RPC Service scored 84% from 54 tests.

About plugin

  • Plugin page: deactivate-xml-rp...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.2
  • WordPress version: 6.3.1
  • First release: Sep 12, 2017
  • Latest release: Mar 18, 2023
  • Number of updates: 12
  • Update frequency: every 167.8 days
  • Top authors: DeveloperWil (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 2,339 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Deactivate XML-RPC Service
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.29 ▼6.08
Dashboard /wp-admin3.31 ▲0.0053.36 ▲1.18
Posts /wp-admin/edit.php3.36 ▲0.0049.60 ▲0.95
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.90 ▼2.75
Media Library /wp-admin/upload.php3.23 ▲0.0039.08 ▲3.51

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Deactivate XML-RPC Service: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.31 ▼1.061.58 ▼0.2640.83 ▲0.45
Dashboard /wp-admin2,206 ▲184.85 ▼1.02110.58 ▼8.0938.83 ▼4.41
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0639.24 ▼0.3835.10 ▲0.96
Add New Post /wp-admin/post-new.php1,537 ▼523.52 ▲5.39669.35 ▲41.0375.42 ▲19.09
Media Library /wp-admin/upload.php1,391 ▲34.21 ▲0.0197.84 ▲2.1844.48 ▲2.88

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/deactivate-xml-rpc-service/deactivate-xml-rpc-service.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

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
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (After the plugin is activated. Cannot connect to site using XML-RPC service.)
You can look at the official readme.txt

deactivate-xml-rpc-service/deactivate-xml-rpc-service.php Passed 13 tests

This is the main PHP file of "Deactivate XML-RPC Service" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
36 characters long description:
Deactivates the XMP-RPC API service.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected2 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14222

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin