84% control-xml-rpc-publishing

Code Review | Control XML-RPC publishing

WordPress plugin Control XML-RPC publishing scored84%from 54 tests.

About plugin

  • Plugin page: control-xml-rpc-p...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4
  • WordPress version: 6.3.1
  • First release: Dec 17, 2012
  • Latest release: Dec 4, 2015
  • Number of updates: 4
  • Update frequency: every 270.5 days
  • Top authors: mark-k (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

800+ active /19,101 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
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Control XML-RPC publishing
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0132.69 ▼8.28
Dashboard /wp-admin3.32 ▲0.0243.56 ▼10.00
Posts /wp-admin/edit.php3.37 ▲0.0246.65 ▲4.26
Add New Post /wp-admin/post-new.php5.90 ▲0.0294.24 ▼1.69
Media Library /wp-admin/upload.php3.24 ▲0.0236.06 ▲2.71

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Control XML-RPC publishing
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.46 ▲0.091.68 ▼0.0739.21 ▼4.90
Dashboard /wp-admin2,206 ▲215.90 ▲1.02109.35 ▲4.0341.81 ▲0.41
Posts /wp-admin/edit.php2,086 ▼32.02 ▼0.0038.96 ▼1.7234.33 ▼1.16
Add New Post /wp-admin/post-new.php1,544 ▲1518.12 ▼0.14625.32 ▼11.5651.48 ▼1.31
Media Library /wp-admin/upload.php1,382 ▼64.31 ▲0.0695.67 ▼10.3940.87 ▼0.55

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

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

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
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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/control-xml-rpc-publishing/control-xml-rpc-publishing.php:24

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 Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: xml rpc, xmlrpc, security

control-xml-rpc-publishing/control-xml-rpc-publishing.php Passed 13 tests

The main PHP file in "Control XML-RPC publishing" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
56 characters long description:
Add The ability to enable and disable XML-RPC from admin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin45 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2161245

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions5
▷ Named functions5100.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
There were not PNG files found in your plugin