83% extended-api-xml-rpc

Code Review | Extended API over XMLRPC

WordPress plugin Extended API over XMLRPCscored 83% from 54 tests.

About plugin

  • Plugin page: extended-api-xml-rpc
  • Plugin version: 0.9.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.3
  • WordPress version: 6.3.1
  • First release: Jul 7, 2016
  • Latest release: Jan 13, 2017
  • Number of updates: 11
  • Update frequency: every 16.6 days
  • Top authors: realflash (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,063 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.02MB] [CPU: ▼2.94ms] Passed 4 tests

A check of server-side resources used by Extended API over XMLRPC
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.84 ▲1.84
Dashboard /wp-admin3.33 ▲0.0251.46 ▲3.88
Posts /wp-admin/edit.php3.38 ▲0.0246.56 ▼0.60
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.49 ▼13.76
Media Library /wp-admin/upload.php3.25 ▲0.0235.20 ▲0.75
Extended API /wp-admin/options-general.php?page=extapisettings3.2230.98

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
extapi_allowed_functions
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Extended API over XMLRPC
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.68 ▼0.631.71 ▲0.0943.08 ▲1.62
Dashboard /wp-admin2,210 ▲225.86 ▲0.78109.03 ▼2.1343.79 ▲0.77
Posts /wp-admin/edit.php2,096 ▲72.02 ▲0.0538.66 ▼1.5334.16 ▼5.21
Add New Post /wp-admin/post-new.php1,537 ▲923.11 ▲4.83601.75 ▼21.4062.45 ▼4.43
Media Library /wp-admin/upload.php1,395 ▲104.22 ▼0.0093.71 ▼6.9440.93 ▼2.80
Extended API /wp-admin/options-general.php?page=extapisettings8012.0223.6330.66

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
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • extapi_allowed_functions
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/extended-api-xml-rpc/main.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === Extended API over XMLRPC=== )
  • Screenshots: Screenshot #1 (Example code - how I use this plugin.) image required
The official readme.txt might help

extended-api-xml-rpc/main.php 92% from 13 tests

The main PHP script in "Extended API over XMLRPC" version 0.9.9 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("extended-api-xml-rpc.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected116 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1174287
Markdown124029

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.23
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png50.33KB18.27KB▼ 63.70%