68% wp-8tracks-radio

Code Review | WP 8tracks Radio

WordPress plugin WP 8tracks Radio scored68%from 54 tests.

About plugin

  • Plugin page: wp-8tracks-radio
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.4.2
  • WordPress version: 6.3.1
  • First release: Oct 12, 2012
  • Latest release: Oct 12, 2012
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: nmrdxt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,661 total downloads

Benchmarks

Plugin footprint 65% 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 gracefully, with no errors

Server metrics [RAM: ▼0.89MB] [CPU: ▼40.52ms] Passed 4 tests

A check of server-side resources used by WP 8tracks Radio
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0636.08 ▼8.95
Dashboard /wp-admin3.06 ▼0.2523.02 ▼28.83
Posts /wp-admin/edit.php3.06 ▼0.3023.36 ▼30.67
Add New Post /wp-admin/post-new.php3.06 ▼2.8325.15 ▼93.63
Media Library /wp-admin/upload.php3.06 ▼0.1727.60 ▼7.29
WP8tracks| Registration /wp-admin/options-general.php?page=wp8tracks_registration3.0625.71

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
omni_plugin_on_list
widget_wp8tracks-widget
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
omni_plugin_reason
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by WP 8tracks Radio
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3714.38 ▼0.061.63 ▼0.1840.67 ▼5.61
Dashboard /wp-admin2,204 ▲275.57 ▼0.0390.85 ▼11.4244.31 ▼3.49
Posts /wp-admin/edit.php2,106 ▲62.03 ▲0.0438.55 ▲0.7338.24 ▼0.20
Add New Post /wp-admin/post-new.php1,536 ▲1023.10 ▲0.12653.57 ▼2.8053.25 ▼8.14
Media Library /wp-admin/upload.php1,409 ▲124.18 ▼0.0698.82 ▼1.2844.43 ▼5.20
WP8tracks| Registration /wp-admin/options-general.php?page=wp8tracks_registration8532.0023.3330.16

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options detected upon uninstall: 9 options
    • omni_plugin_reason
    • can_compress_scripts
    • widget_theysaidso_widget
    • omni_plugin_on_list
    • widget_recent-comments
    • widget_wp8tracks-widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp8tracks_registration
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/options-general.php?page=wp8tracks_registration
    • > Notice in wp-content/plugins/wp-8tracks-radio/wp8tracks.master.php+77
    Undefined index: onlist
    • > GET request to /wp-admin/options-general.php?page=wp8tracks_registration
    • > Notice in wp-content/plugins/wp-8tracks-radio/wp8tracks.master.php+77
    Undefined index: no
    • > GET request to /wp-admin/options-general.php?page=wp8tracks_registration
    • > Notice in wp-content/plugins/wp-8tracks-radio/wp8tracks.master.php+85
    Undefined index: activate
    • > GET request to /wp-admin/options-general.php?page=wp8tracks_registration
    • > Notice in wp-content/plugins/wp-8tracks-radio/wp8tracks.master.php+85
    Undefined index: activate_again
    • > GET request to /wp-admin/options-general.php?page=wp8tracks_registration
    • > User deprecated in wp-includes/functions.php+5453
    Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.

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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-8tracks-radio/wp8tracks.widgets.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-8tracks-radio/wp8tracks.master.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Screenshot #1 (The WP 8tracks Radio Widget.) image required
Please take inspiration from this readme.txt

wp-8tracks-radio/wp8tracks.master.php 92% from 13 tests

The main file in "WP 8tracks Radio" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-8tracks-radio.php" instead of "wp8tracks.master.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin277 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25430277

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity7.25
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected