77% buddypress-xml-rpc-receiver

Code Review | BuddyPress XML-RPC Receiver

WordPress plugin BuddyPress XML-RPC Receiver scored77%from 54 tests.

About plugin

  • Plugin page: buddypress-xml-rp...
  • Plugin version: 0.5.10
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 16, 2013
  • Latest release: May 19, 2013
  • Number of updates: 147
  • Update frequency: every 0.4 days
  • Top authors: Yuttadhammo (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /4,548 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.29ms] Passed 4 tests

Server-side resources used by BuddyPress XML-RPC Receiver
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.78 ▼4.45
Dashboard /wp-admin3.36 ▲0.0647.40 ▼5.48
Posts /wp-admin/edit.php3.48 ▲0.1248.96 ▼0.42
Add New Post /wp-admin/post-new.php5.94 ▲0.0692.33 ▼4.22
Media Library /wp-admin/upload.php3.28 ▲0.0635.37 ▼3.01
BuddyPress XML-RPC /wp-admin/options-general.php?page=bp-xmlrpc-settings3.2532.66

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
bp_xmlrpc_cap_low
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for BuddyPress XML-RPC Receiver
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.31 ▼1.091.79 ▼0.2441.59 ▼0.61
Dashboard /wp-admin2,207 ▲195.80 ▲0.94100.53 ▼11.9740.94 ▼2.06
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0338.21 ▲0.7932.63 ▼1.09
Add New Post /wp-admin/post-new.php1,536 ▼723.08 ▲4.94626.78 ▼68.8958.74 ▼5.54
Media Library /wp-admin/upload.php1,392 ▲44.15 ▼0.09122.02 ▲19.2852.98 ▲7.52
BuddyPress XML-RPC /wp-admin/options-general.php?page=bp-xmlrpc-settings9632.1625.2535.71

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
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • bp_xmlrpc_cap_low
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 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
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/buddypress-xml-rpc-receiver/includes/bp-xmlrpc-mail.php
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHWPINC/class-IXR.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/buddypress-xml-rpc-receiver/bp-xmlrpc.php on line 48
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/buddypress-xml-rpc-receiver/bp-xmlrpc-loader.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'IXR_Server' not found in wp-content/plugins/buddypress-xml-rpc-receiver/bp-xmlrpc.php:57
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-xml-rpc-receiver/includes/bp-xmlrpc-profile.php:116
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/buddypress-xml-rpc-receiver/bp-xmlrpc.php on line 48
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/buddypress-xml-rpc-receiver/includes/bp-xmlrpc-limit-login-attempts.php:77
    • > PHP Warning
      include_once(ABSPATHWPINC/class-IXR.php): failed to open stream: No such file or directory in wp-content/plugins/buddypress-xml-rpc-receiver/bp-xmlrpc.php on line 48
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/buddypress-xml-rpc-receiver/bp-xmlrpc.php on line 48

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 87% 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
Attributes that need to be fixed:
  • Requires at least: The plugin version is formatted incorrectly
  • Tested up to: The plugin version is formatted incorrectly
The official readme.txt is a good inspiration

buddypress-xml-rpc-receiver/bp-xmlrpc-loader.php 85% from 13 tests

"BuddyPress XML-RPC Receiver" version 0.5.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("buddypress-xml-rpc-receiver.php" instead of "bp-xmlrpc-loader.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected2,036 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP76725412,036

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity194.00
▷ Minimum class complexity194.00
▷ Maximum class complexity194.00
Average method complexity9.77
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions53
▷ Named functions53100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There are no PNG files in this plugin