10% simple-xml-rpc-pingback-disabler

Code Review | Simple XML-RPC Pingback Disabler

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

About plugin

  • Plugin page: simple-xml-rpc-pi...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 19, 2020
  • Latest release: May 15, 2021
  • Number of updates: 4
  • Update frequency: every 90.3 days
  • Top authors: vikichand (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /518 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/simple-xml-rpc-pingback-disabler/simple-xml-rpc-pingback-disabler.php+47
    Undefined variable: wp_version

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

Server-side resources used by Simple XML-RPC Pingback Disabler
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.84 ▲2.91
Dashboard /wp-admin3.31 ▼0.0351.78 ▼5.34
Posts /wp-admin/edit.php3.36 ▲0.0149.07 ▲3.54
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.19 ▼17.00
Media Library /wp-admin/upload.php3.23 ▲0.0136.29 ▲3.43

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Simple XML-RPC Pingback Disabler
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.73 ▲0.351.80 ▲0.2147.33 ▲5.78
Dashboard /wp-admin2,209 ▲185.85 ▼0.05106.06 ▲5.8041.43 ▼2.66
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0439.76 ▲4.5336.15 ▼0.01
Add New Post /wp-admin/post-new.php1,535 ▲523.39 ▲5.06684.16 ▲68.1961.77 ▲11.19
Media Library /wp-admin/upload.php1,391 ▲64.22 ▼0.03109.91 ▲5.7548.10 ▲4.99

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
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/simple-xml-rpc-pingback-disabler/simple-xml-rpc-pingback-disabler.php:31

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

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (Simple XML-RPC Disabler) image missing
  • Requires at least: The plugin version is formatted incorrectly
You can look at the official readme.txt

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

"Simple XML-RPC Pingback Disabler" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 320 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin23 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1103723

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
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

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
assests/screenshot-1.png83.09KB35.36KB▼ 57.44%