90% allow-cors-xml-rpc

Code Review | Plugin Name: Allow CORS XML-RPC

WordPress plugin Plugin Name: Allow CORS XML-RPCscored90%from 54 tests.

About plugin

  • Plugin page: allow-cors-xml-rpc
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-3.6
  • WordPress version: 6.3.1
  • First release: Oct 18, 2013
  • Latest release: Oct 18, 2013
  • Number of updates: 2
  • Update frequency: every 2.5 days
  • Top authors: YUKI OKAMOTO (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,781 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Plugin Name: Allow CORS XML-RPC
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.29 ▼10.95
Dashboard /wp-admin3.31 ▼0.0448.40 ▼18.99
Posts /wp-admin/edit.php3.36 ▲0.0050.89 ▼8.45
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.02 ▼2.02
Media Library /wp-admin/upload.php3.23 ▲0.0042.05 ▲7.24

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Plugin Name: Allow CORS XML-RPC
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.46 ▲0.161.78 ▼0.1546.02 ▲1.32
Dashboard /wp-admin2,209 ▲214.87 ▼0.02100.56 ▼3.4038.94 ▼0.46
Posts /wp-admin/edit.php2,089 ▼32.02 ▲0.0538.05 ▼0.8435.70 ▼0.24
Add New Post /wp-admin/post-new.php1,533 ▲1423.24 ▼0.08673.83 ▼13.1250.88 ▼6.64
Media Library /wp-admin/upload.php1,388 ▼04.24 ▼0.02100.16 ▼13.4440.61 ▼8.80

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === Plugin Name: Allow CORS XML-RPC=== )
You can take inspiration from this readme.txt

allow-cors-xml-rpc/allow-cors-xml-rpc.php Passed 13 tests

The main PHP script in "Plugin Name: Allow CORS XML-RPC" version 0.1 is automatically included on every request by WordPress
57 characters long description:
This plugin Allow CORS for XML-RPC API in WordPress 3.5+.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin11 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis 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.25
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin