84% disable-xml-rpc-pingback

Code Review | Disable XML-RPC Pingback

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

About plugin

  • Plugin page: disable-xml-rpc-p...
  • Plugin version: 1.2.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.7.2
  • WordPress version: 6.3.1
  • First release: Mar 11, 2014
  • Latest release: May 13, 2021
  • Number of updates: 17
  • Update frequency: every 154.1 days
  • Top authors: samuelaguilera (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

70,000+ active /364,386 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.05ms] Passed 4 tests

An overview of server-side resources used by Disable XML-RPC Pingback
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.68 ▼1.78
Dashboard /wp-admin3.31 ▲0.0144.13 ▼4.38
Posts /wp-admin/edit.php3.36 ▲0.0149.02 ▲2.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.39 ▼12.65
Media Library /wp-admin/upload.php3.23 ▲0.0135.83 ▼1.39

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

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

Browser metrics Passed 4 tests

Disable XML-RPC Pingback: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.24 ▼1.201.82 ▼1.0937.03 ▼4.30
Dashboard /wp-admin2,206 ▲184.84 ▼1.07108.11 ▲5.5536.97 ▼3.20
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0739.58 ▲5.1035.86 ▼0.61
Add New Post /wp-admin/post-new.php1,542 ▲2318.19 ▼5.19647.92 ▼36.8348.55 ▼11.89
Media Library /wp-admin/upload.php1,388 ▼34.22 ▲0.0394.35 ▼7.9141.45 ▼3.39

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
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/disable-xml-rpc-pingback/disable-xml-rpc-pingback.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: xml, pingback, xml-rpc, firewall, rpc...

disable-xml-rpc-pingback/disable-xml-rpc-pingback.php Passed 13 tests

The entry point to "Disable XML-RPC Pingback" version 1.2.2 is a PHP file that has certain tags in its header comment area
125 characters long description:
Stops abuse of your site's Pingback method from XML-RPC by simply removing it. While you can use the rest of XML-RPC methods.

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
Good job! No executable or dangerous file extensions detected19 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1103719

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin