83% cvw-songkick-widget

Code Review | Show your artists tour dates from Songkick

WordPress plugin Show your artists tour dates from Songkick scored83%from 54 tests.

About plugin

  • Plugin page: cvw-songkick-widget
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0.1
  • WordPress version: 6.3.1
  • First release: Feb 24, 2020
  • Latest release: Aug 26, 2022
  • Number of updates: 16
  • Update frequency: every 57.3 days
  • Top authors: cowalenciawebs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,014 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼9.30ms] Passed 4 tests

Server-side resources used by Show your artists tour dates from Songkick
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0837.07 ▼5.25
Dashboard /wp-admin3.39 ▲0.0544.92 ▼15.50
Posts /wp-admin/edit.php3.50 ▲0.1549.09 ▲2.69
Add New Post /wp-admin/post-new.php5.97 ▲0.0891.08 ▼19.12
Media Library /wp-admin/upload.php3.31 ▲0.0836.46 ▲4.76

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Show your artists tour dates from Songkick
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.23 ▼1.141.54 ▼0.1840.21 ▼3.74
Dashboard /wp-admin2,224 ▲395.88 ▼0.03102.43 ▼11.7772.66 ▲26.79
Posts /wp-admin/edit.php2,110 ▲181.99 ▼0.0038.66 ▼0.8433.92 ▲4.48
Add New Post /wp-admin/post-new.php6,366 ▲4,83627.78 ▲9.43851.98 ▲243.8736.70 ▼13.34
Media Library /wp-admin/upload.php1,403 ▲184.22 ▼0.0299.05 ▼0.6645.60 ▲0.35

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
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_songkick_widget
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

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)
Good news, no errors were detected

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
Please fix the following items
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cvw-songkick-widget/includes/admin.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cvw-songkick-widget/includes/block.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/cvw-songkick-widget/includes/shortcode.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/cvw-songkick-widget/cvw-songkick-widget.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cvw-songkick-widget/includes/widget.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

cvw-songkick-widget/cvw-songkick-widget.php 85% from 13 tests

The main PHP file in "Show your artists tour dates from Songkick" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path must begin with a forward slash character ("/languages")
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages")

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 detected705 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PO File1272769

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1292.31%
▷ Anonymous functions17.69%
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo.png1.01KB0.66KB▼ 34.66%
images/covalenciawebs.png21.11KB12.60KB▼ 40.31%
images/songkick-logo.png2.78KB1.16KB▼ 58.21%