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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 42.24 ▼0.12 |
Dashboard /wp-admin | 3.64 ▲0.34 | 46.66 ▲2.85 |
Posts /wp-admin/edit.php | 3.69 ▲0.34 | 50.15 ▲5.12 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.28 | 88.35 ▼4.53 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 33.14 ▼2.27 |
XS2Content /wp-admin/options-general.php?page=xs2content | 3.48 | 35.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.20 ▼1.18 | 1.55 ▼0.26 | 37.88 ▼8.00 |
Dashboard /wp-admin | 2,213 ▲22 | 5.85 ▲0.04 | 102.35 ▲0.64 | 40.04 ▼6.26 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.04 | 38.77 ▲2.68 | 32.64 ▲0.37 |
Add New Post /wp-admin/post-new.php | 6,290 ▲4,757 | 19.60 ▼3.73 | 870.83 ▲211.16 | 40.19 ▼10.59 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.20 ▼0.01 | 96.36 ▼6.42 | 40.86 ▼3.17 |
XS2Content /wp-admin/options-general.php?page=xs2content | 856 | 1.96 | 30.66 | 28.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 272 | 63 | 1,309 |
JavaScript | 4 | 88 | 14 | 521 |
CSS | 2 | 31 | 0 | 303 |
SVG | 1 | 0 | 0 | 19 |
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 code | 0.27 |
Average class complexity | 10.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 1 | 8.33% |
Methods | 79 | |
▷ Static methods | 7 | 8.86% |
▷ Public methods | 74 | 93.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 6.33% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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