83% deactivate-xml-rpc

Code Review | Deactivate XML-RPC on Wordpress

WordPress plugin Deactivate XML-RPC on Wordpress scored83%from 54 tests.

About plugin

  • Plugin page: deactivate-xml-rpc
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2.2
  • WordPress version: 6.3.1
  • First release: May 13, 2015
  • Latest release: May 13, 2015
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: tildemark (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /3,840 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 gracefully, with no errors

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

Server-side resources used by Deactivate XML-RPC on Wordpress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.0043.27 ▼3.24
Dashboard /wp-admin3.57 ▲0.0051.71 ▼9.97
Posts /wp-admin/edit.php3.68 ▲0.0054.05 ▲1.02
Add New Post /wp-admin/post-new.php6.15 ▲0.0096.70 ▼7.99
Media Library /wp-admin/upload.php3.49 ▲0.0040.06 ▼2.60

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, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Deactivate XML-RPC on Wordpress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.50 ▲0.121.85 ▲0.1245.37 ▼1.15
Dashboard /wp-admin2,198 ▲245.65 ▲0.1088.71 ▼12.0041.71 ▼5.38
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0141.15 ▲4.3534.88 ▼2.61
Add New Post /wp-admin/post-new.php1,557 ▲1118.26 ▼5.05624.18 ▼49.0455.12 ▼9.60
Media Library /wp-admin/upload.php1,400 ▼04.20 ▼0.1097.03 ▼21.8247.73 ▼0.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 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/deactivatexmlrpc.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: ""
  • Screenshots: Screenshot #1 (XML-RPC disabled as tested via XML-RPC validator) image missing
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === deactivate-xml-rpc === )
Please take inspiration from this readme.txt

deactivate-xml-rpc/deactivatexmlrpc.php 92% from 13 tests

The principal PHP file in "Deactivate XML-RPC on Wordpress" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("deactivate-xml-rpc.php" instead of "deactivatexmlrpc.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected3 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1283

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin