10% radio-vera

Code Review | Radio VERA

WordPress plugin Radio VERA scored10%from 54 tests.

About plugin

  • Plugin page: radio-vera
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.4
  • WordPress version: 6.3.1
  • First release: Jul 25, 2014
  • Latest release: Nov 26, 2015
  • Number of updates: 19
  • Update frequency: every 25.7 days
  • Top authors: ortox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,359 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/radio-vera/radio-Vera.php+265
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼52.13ms] Passed 4 tests

An overview of server-side resources used by Radio VERA
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.443.94 ▼35.06
Dashboard /wp-admin2.05 ▼1.265.07 ▼46.33
Posts /wp-admin/edit.php2.05 ▼1.315.68 ▼38.36
Add New Post /wp-admin/post-new.php2.05 ▼3.845.61 ▼88.75
Media Library /wp-admin/upload.php2.05 ▼1.185.47 ▼25.32

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_radio_vera
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Radio VERA
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.59 ▼0.791.85 ▲0.1539.44 ▼3.77
Dashboard /wp-admin2,208 ▲234.85 ▼0.02110.79 ▼10.7337.58 ▼5.39
Posts /wp-admin/edit.php2,094 ▲82.04 ▲0.0336.33 ▲2.0133.91 ▲1.32
Add New Post /wp-admin/post-new.php1,534 ▲923.43 ▲0.11663.18 ▲56.3463.27 ▲13.60
Media Library /wp-admin/upload.php1,393 ▲24.22 ▼0.0495.40 ▲0.6642.71 ▼0.86

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the radiovera handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_radio_vera
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/radio-vera/radio-Vera.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser 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
6 plugin tags: radiovera, radio vera, radio, widget, orthodox...

radio-vera/radio-Vera.php 92% from 13 tests

This is the main PHP file of "Radio VERA" version 2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("radio-vera.php" instead of "radio-Vera.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,512 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript81412531,096
PHP23429232
HTML111098
CSS1111244
PO File1173242

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity8.50
▷ Minimum method complexity1.00
▷ Maximum method complexity17.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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.14MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vera.png33.06KB12.97KB▼ 60.78%
screenshot-2.png5.13KB2.96KB▼ 42.35%
favicon.png3.31KB0.75KB▼ 77.18%
radio.png3.33KB2.53KB▼ 24.18%
screenshot-4.png45.76KB21.62KB▼ 52.76%