10% remove-xml-rpc-pingback

Code Review | Remove XML-RPC Pingback

WordPress plugin Remove XML-RPC Pingback scored10%from 54 tests.

About plugin

  • Plugin page: remove-xml-rpc-pi...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.3
  • WordPress version: 6.3.1
  • First release: Dec 19, 2019
  • Latest release: Dec 27, 2019
  • Number of updates: 5
  • Update frequency: every 2.2 days
  • Top authors: hybridwebs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /443 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/remove-xml-rpc-pingback/remove-xml-rpc-pingback.php+39
    Undefined variable: wp_version

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

A check of server-side resources used by Remove XML-RPC Pingback
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.32 ▼3.09
Dashboard /wp-admin3.31 ▲0.0147.11 ▼3.25
Posts /wp-admin/edit.php3.36 ▲0.0147.43 ▼7.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.71 ▼1.01
Media Library /wp-admin/upload.php3.23 ▲0.0138.55 ▲3.37

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Remove XML-RPC Pingback
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.161.91 ▼0.0545.70 ▲0.79
Dashboard /wp-admin2,203 ▲125.83 ▲0.9497.29 ▼10.7038.14 ▼4.84
Posts /wp-admin/edit.php2,086 ▼02.00 ▼0.0537.13 ▼2.7133.70 ▼1.24
Add New Post /wp-admin/post-new.php1,514 ▼717.57 ▼5.38677.76 ▲48.9869.31 ▲20.25
Media Library /wp-admin/upload.php1,385 ▼34.26 ▲0.0898.93 ▼6.5445.40 ▼0.63

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 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/remove-xml-rpc-pingback/remove-xml-rpc-pingback.php:29

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 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Contributors: Plugin contributors not specified
You can take inspiration from this readme.txt

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

The main file in "Remove XML-RPC Pingback" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
102 characters long description:
Disable Pingback method from XML-RPC by simply removing it. This plugins is working with WordPress 4.4

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
Everything looks great! No dangerous files found in this plugin19 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP162519

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
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

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