90% disable-xml-rpc-fully

Code Review | Disable XML RPC Fully

WordPress plugin Disable XML RPC Fully scored90%from 54 tests.

About plugin

  • Plugin page: disable-xml-rpc-f...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.6
  • WordPress version: 6.3.1
  • First release: Feb 23, 2014
  • Latest release: Feb 24, 2014
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: spacedmonkey (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,819 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Disable XML RPC Fully
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.96 ▼0.30
Dashboard /wp-admin3.32 ▼0.0347.06 ▼18.79
Posts /wp-admin/edit.php3.37 ▲0.0149.21 ▼5.02
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.13 ▼9.51
Media Library /wp-admin/upload.php3.24 ▲0.0138.55 ▲2.72

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Disable XML RPC Fully
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6914.48 ▼0.081.66 ▼0.3639.49 ▼5.22
Dashboard /wp-admin2,221 ▲184.81 ▼0.14108.77 ▼4.1943.32 ▼1.62
Posts /wp-admin/edit.php2,103 ▼02.00 ▼0.0342.14 ▲1.6235.77 ▲1.72
Add New Post /wp-admin/post-new.php1,540 ▼823.34 ▲0.19672.46 ▲2.7760.09 ▲5.18
Media Library /wp-admin/upload.php1,400 ▼04.22 ▼0.0398.79 ▼7.7147.38 ▼0.59

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: xmlrpc

disable-xml-rpc-fully/disable-xml-rpc-fully.php 92% from 13 tests

The primary PHP file in "Disable XML RPC Fully" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin33 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3255733

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods125.00%
▷ Public methods375.00%
▷ Protected methods00.00%
▷ Private methods125.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

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