90% radio-tools

Code Review | Radio Tools

WordPress plugin Radio Tools scored90%from 54 tests.

About plugin

  • Plugin page: radio-tools
  • Plugin version: 1.03
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 6.3.1
  • First release: Aug 11, 2020
  • Latest release: Aug 15, 2020
  • Number of updates: 10
  • Update frequency: every 0.3 days
  • Top authors: uiux (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /2,216 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

A check of server-side resources used by Radio Tools
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.82 ▼2.95
Dashboard /wp-admin3.32 ▲0.0248.60 ▼3.87
Posts /wp-admin/edit.php3.37 ▲0.0252.79 ▲6.94
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.60 ▼1.96
Media Library /wp-admin/upload.php3.24 ▲0.0131.57 ▼6.64

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Radio Tools
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7613.65 ▼0.752.84 ▲0.7941.60 ▼0.56
Dashboard /wp-admin2,225 ▲374.84 ▼0.98108.76 ▲4.8038.16 ▼6.81
Posts /wp-admin/edit.php2,102 ▲132.00 ▼0.0139.59 ▲3.4835.29 ▲4.49
Add New Post /wp-admin/post-new.php1,546 ▲1323.08 ▲0.02663.02 ▼47.4455.99 ▼6.92
Media Library /wp-admin/upload.php1,404 ▲164.15 ▼0.1293.52 ▼13.5747.79 ▼1.27

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: voscast, audio, streaming audio, mp3, radio

radio-tools/radio_tools.php 92% from 13 tests

Analyzing the main PHP file in "Radio Tools" version 1.03
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("radio-tools.php" instead of "radio_tools.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected330 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP411737329
JavaScript1011

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity4.50
▷ Minimum class complexity2.00
▷ Maximum class complexity7.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants3
▷ Global constants3100.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
There were not PNG files found in your plugin