84% xs2radio

Code Review | XS2Content

WordPress plugin XS2Content scored84%from 54 tests.

About plugin

  • Plugin page: xs2radio
  • Plugin version: 1.5.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Mar 12, 2021
  • Latest release: Apr 28, 2023
  • Number of updates: 46
  • Update frequency: every 17.0 days
  • Top authors: CodeKitchen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,483 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.27MB] [CPU: ▼1.02ms] Passed 4 tests

Analyzing server-side resources used by XS2Content
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1842.24 ▼0.12
Dashboard /wp-admin3.64 ▲0.3446.66 ▲2.85
Posts /wp-admin/edit.php3.69 ▲0.3450.15 ▲5.12
Add New Post /wp-admin/post-new.php6.16 ▲0.2888.35 ▼4.53
Media Library /wp-admin/upload.php3.50 ▲0.2733.14 ▼2.27
XS2Content /wp-admin/options-general.php?page=xs2content3.4835.07

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_xs2radio_playlist_widget
theysaidso_admin_options
widget_xs2radio_player_widget
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for XS2Content
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.20 ▼1.181.55 ▼0.2637.88 ▼8.00
Dashboard /wp-admin2,213 ▲225.85 ▲0.04102.35 ▲0.6440.04 ▼6.26
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0438.77 ▲2.6832.64 ▲0.37
Add New Post /wp-admin/post-new.php6,290 ▲4,75719.60 ▼3.73870.83 ▲211.1640.19 ▼10.59
Media Library /wp-admin/upload.php1,392 ▲74.20 ▼0.0196.36 ▼6.4240.86 ▼3.17
XS2Content /wp-admin/options-general.php?page=xs2content8561.9630.6628.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_xs2radio_player_widget
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_xs2radio_playlist_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/xs2radio/widgets/player.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/xs2radio/widgets/playlist.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/xs2radio/templates/settings.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

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
5 plugin tags: page, post, edit, admin, posts

xs2radio/xs2radio.php Passed 13 tests

The primary PHP file in "XS2Content" version 1.5.4 is used by WordPress to initiate all plugin functionality
61 characters long description:
Text-to-speech platform for publishers and company newsrooms.

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
No dangerous file extensions were detected2,152 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP13272631,309
JavaScript48814521
CSS2310303
SVG10019

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity10.75
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes18.33%
Methods79
▷ Static methods78.86%
▷ Public methods7493.67%
▷ Protected methods00.00%
▷ Private methods56.33%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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