93% simple-xml-rpc-disabler

Code Review | Simple XML-RPC Disabler

WordPress plugin Simple XML-RPC Disabler scored 93% from 54 tests.

About plugin

  • Plugin page: simple-xml-rpc-di...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: May 13, 2020
  • Latest release: May 15, 2021
  • Number of updates: 17
  • Update frequency: every 21.6 days
  • Top authors: vikichand (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 490 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Simple XML-RPC Disabler
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0034.13 ▼0.90
Dashboard /wp-admin3.06 ▲0.0144.44 ▼2.30
Posts /wp-admin/edit.php3.11 ▲0.0150.62 ▲3.96
Add New Post /wp-admin/post-new.php5.42 ▼0.0190.99 ▼566.54
Media Library /wp-admin/upload.php3.00 ▲0.0031.87 ▼8.49

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple XML-RPC Disabler
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.92 ▲0.4411.70 ▲1.3150.74 ▲1.07
Dashboard /wp-admin2,973 ▲396.07 ▼0.15138.90 ▼18.01116.11 ▼0.91
Posts /wp-admin/edit.php2,739 ▲32.70 ▼0.0262.42 ▼12.06100.61 ▲0.18
Add New Post /wp-admin/post-new.php3,636 ▲1,95314.93 ▼3.87445.34 ▲29.46109.80 ▼5.34
Media Library /wp-admin/upload.php1,807 ▼05.04 ▼0.01151.10 ▼9.59115.58 ▼13.41

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

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)
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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-xml-rpc-disabler/simple-xml-rpc-disabler.php:32

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Requires at least: The plugin version is formatted incorrectly
  • Screenshots: Please add an image for screenshot #1 (Simple XML-RPC Disabler)
The official readme.txt might help

simple-xml-rpc-disabler/simple-xml-rpc-disabler.php 92% from 13 tests

"Simple XML-RPC Disabler" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 167 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin3 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16243

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
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
1 PNG file occupies 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png83.09KB35.36KB▼ 57.44%