10% playcz-top-radios

Code Review | PLAY.CZ Top Rádia

WordPress plugin PLAY.CZ Top Rádia scored 10% from 54 tests.

About plugin

  • Plugin page: playcz-top-radios
  • Plugin version: 2.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 6.3.1
  • First release: Jun 17, 2012
  • Latest release: Jan 18, 2013
  • Number of updates: 12
  • Update frequency: every 18.4 days
  • Top authors: playcz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,213 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/playcz-top-radios/playcz-topradia.php+31
    Methods with the same name as their class will not be constructors in a future version of PHP; PLAYCZ_TopRadia has a deprecated constructor

Server metrics [RAM: ▼1.88MB] [CPU: ▼56.12ms] Passed 4 tests

This is a short check of server-side resources used by PLAY.CZ Top Rádia
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.11 ▼1.369.47 ▼42.30
Dashboard /wp-admin2.13 ▼1.186.38 ▼41.72
Posts /wp-admin/edit.php2.13 ▼1.237.05 ▼44.28
Add New Post /wp-admin/post-new.php2.13 ▼3.766.06 ▼96.16
Media Library /wp-admin/upload.php2.13 ▼1.116.28 ▼27.95

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_itnewswidget

Browser metrics Passed 4 tests

This is an overview of browser requirements for PLAY.CZ Top Rádia
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.74 ▲0.341.87 ▼0.1844.79 ▲0.78
Dashboard /wp-admin2,206 ▲215.85 ▲0.96105.50 ▼7.3341.13 ▼3.16
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0441.00 ▼0.1834.76 ▼2.72
Add New Post /wp-admin/post-new.php1,537 ▲2323.29 ▲5.79667.75 ▲38.6963.11 ▲5.90
Media Library /wp-admin/upload.php1,388 ▲64.18 ▼0.1199.74 ▼24.9943.24 ▼5.44

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
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/playcz-top-radios/playcz-topradia.php+31
    Methods with the same name as their class will not be constructors in a future version of PHP; PLAYCZ_TopRadia has a deprecated constructor
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_itnewswidget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/playcz-top-radios/playcz-topradia.php:31

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 on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: ""
You can look at the official readme.txt

playcz-top-radios/playcz-topradia.php 92% from 13 tests

The main PHP file in "PLAY.CZ Top Rádia" ver. 2.1.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("playcz-top-radios.php" instead of "playcz-topradia.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin236 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15637178
CSS19058

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity44.00
▷ Minimum class complexity44.00
▷ Maximum class complexity44.00
Average method complexity11.75
▷ Minimum method complexity1.00
▷ Maximum method complexity20.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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png46.35KB14.65KB▼ 68.40%
screenshot-1.png34.58KB11.36KB▼ 67.15%