84% disable-xml-rpc-unset-x-pingback

Code Review | Disable XML-RPC & Unset X-Pingback

WordPress plugin Disable XML-RPC & Unset X-Pingback scored84%from 54 tests.

About plugin

  • Plugin page: disable-xml-rpc-u...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9.2
  • WordPress version: 6.3.1
  • First release: Jul 22, 2014
  • Latest release: Aug 18, 2014
  • Number of updates: 5
  • Update frequency: every 8.6 days
  • Top authors: Swellfire (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,523 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Analyzing server-side resources used by Disable XML-RPC & Unset X-Pingback
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.03 ▲2.37
Dashboard /wp-admin3.31 ▲0.0145.70 ▼4.65
Posts /wp-admin/edit.php3.37 ▲0.0047.22 ▼1.75
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.46 ▼3.49
Media Library /wp-admin/upload.php3.24 ▲0.0035.83 ▲3.15

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Disable XML-RPC & Unset X-Pingback
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.29 ▼1.091.63 ▼0.0740.94 ▼7.95
Dashboard /wp-admin2,206 ▲185.91 ▲0.01106.58 ▼0.9036.15 ▼8.30
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0138.99 ▲1.1834.88 ▲0.64
Add New Post /wp-admin/post-new.php1,546 ▲1318.19 ▼5.09587.03 ▼85.7479.50 ▲18.88
Media Library /wp-admin/upload.php1,391 ▲34.21 ▲0.0498.66 ▼2.8941.24 ▼3.76

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/disable-xml-rpc-unset-x-pingback/index.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === disable-xml-rpc-unset-x-pingback === )
The official readme.txt might help

disable-xml-rpc-unset-x-pingback/index.php 92% from 13 tests

The main file in "Disable XML-RPC & Unset X-Pingback" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("disable-xml-rpc-unset-x-pingback.php" instead of "index.php")

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 plugin9 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17229

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected