78% bandsintown

Code Review | Bandsintown Events

WordPress plugin Bandsintown Events scored78%from 54 tests.

About plugin

  • Plugin page: bandsintown
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-5.9
  • WordPress version: 6.3.1
  • First release: Mar 17, 2010
  • Latest release: Apr 1, 2022
  • Number of updates: 55
  • Update frequency: every 80.1 days
  • Top authors: kwestion505 (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

4,000+ active /75,637 total downloads

Benchmarks

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
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼9.65ms] Passed 4 tests

Server-side resources used by Bandsintown Events
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0541.33 ▲4.13
Dashboard /wp-admin3.37 ▲0.0249.14 ▼38.72
Posts /wp-admin/edit.php3.42 ▲0.0647.57 ▼4.02
Add New Post /wp-admin/post-new.php5.95 ▲0.0695.46 ▲0.01
Media Library /wp-admin/upload.php3.29 ▲0.0640.48 ▲6.33
Bandsintown Events /wp-admin/options-general.php?page=bandsintown-settings3.2434.06

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_bandsintown_js_widget
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Bandsintown Events
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲6516.09 ▲1.7138.45 ▲36.7445.96 ▲3.90
Dashboard /wp-admin2,199 ▲185.60 ▼0.0793.10 ▼34.1343.52 ▼6.79
Posts /wp-admin/edit.php2,107 ▲102.01 ▲0.0145.78 ▲7.6134.41 ▲0.41
Add New Post /wp-admin/post-new.php1,548 ▲323.16 ▼0.03686.33 ▲11.3749.69 ▼4.74
Media Library /wp-admin/upload.php1,398 ▲44.21 ▼0.0597.16 ▼4.1543.20 ▼2.82
Bandsintown Events /wp-admin/options-general.php?page=bandsintown-settings9494.6060.7231.61

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_bandsintown_js_widget
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

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 errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bandsintown-settings
    • > Notice in wp-content/plugins/bandsintown/bandsintown.php+77
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/options-general.php?page=bandsintown-settings
    • > Notice in wp-content/plugins/bandsintown/bandsintown.php+83
    Undefined index: background_color
    • > GET request to /wp-admin/options-general.php?page=bandsintown-settings
    • > Notice in wp-content/plugins/bandsintown/bandsintown.php+89
    Undefined index: button_and_link_color
    • > GET request to /wp-admin/options-general.php?page=bandsintown-settings
    • > Notice in wp-content/plugins/bandsintown/bandsintown.php+95
    Undefined index: link_text_color
    • > GET request to /wp-admin/options-general.php?page=bandsintown-settings
    • > Notice in wp-content/plugins/bandsintown/bandsintown.php+101
    Undefined index: display_limit
    • > GET request to /wp-admin/options-general.php?page=bandsintown-settings
    • > Notice in wp-content/plugins/bandsintown/bandsintown.php+108
    Undefined index: custom_css
    • > GET request to /wp-admin/options-general.php?page=bandsintown-settings
    • > Notice in wp-content/plugins/bandsintown/bandsintown.php+117
    Undefined index: artist

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/bandsintown/views/widget-form.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bandsintown/bandsintown.php:278

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: bandsintown, events, tour dates, concerts

bandsintown/bandsintown.php 92% from 13 tests

The entry point to "Bandsintown Events" version 1.3.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 258 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected448 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24123300
CSS1231148

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity15.50
▷ Minimum class complexity3.00
▷ Maximum class complexity28.00
Average method complexity2.93
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
favicon.png0.46KB0.41KB▼ 10.99%