84% xrds-simple

Code Review | XRDS-Simple

WordPress plugin XRDS-Simple scored 84% from 54 tests.

About plugin

  • Plugin page: xrds-simple
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.1-6.3
  • WordPress version: 6.3.1
  • First release: Sep 30, 2008
  • Latest release: Sep 1, 2023
  • Number of updates: 21
  • Update frequency: every 259.5 days
  • Top authors: pfefferle (71.43%)willnorris (23.81%)wnorris (14.29%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active / 31,571 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by XRDS-Simple
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.31 ▼13.31
Dashboard /wp-admin3.31 ▲0.0170.43 ▲15.73
Posts /wp-admin/edit.php3.36 ▲0.0148.74 ▼7.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0198.24 ▼8.54
Media Library /wp-admin/upload.php3.23 ▲0.0139.82 ▲3.07
XRDS-Simple /wp-admin/options-general.php?page=xrds-simple3.2033.50

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

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

Browser metrics Passed 4 tests

Checking browser requirements for XRDS-Simple
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲1913.26 ▼1.181.78 ▼0.2542.50 ▼5.60
Dashboard /wp-admin2,210 ▲45.86 ▼0.05108.13 ▲0.0537.72 ▼5.90
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0635.01 ▼5.3537.44 ▲1.63
Add New Post /wp-admin/post-new.php1,540 ▼223.12 ▲5.04615.93 ▼44.5865.31 ▲4.02
Media Library /wp-admin/upload.php1,389 ▲44.34 ▲0.16105.94 ▲5.7645.03 ▲2.87
XRDS-Simple /wp-admin/options-general.php?page=xrds-simple7802.0125.3627.66

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

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 no errors were found, 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 items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/xrds-simple/xrds-simple.php:94

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
3 plugin tags: discovery, xrds-simple, xrds

xrds-simple/xrds-simple.php Passed 13 tests

The main PHP script in "XRDS-Simple" version 1.2.1 is automatically included on every request by WordPress
68 characters long description:
Provides framework for other plugins to advertise services via XRDS.

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 detected157 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13887157

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
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%
Functions11
▷ Named functions11100.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
No PNG files were detected