68% gigpress

Code Review | GigPress

WordPress plugin GigPress scored 68% from 54 tests.

About plugin

  • Plugin page: gigpress
  • Plugin version: 2.3.27
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8.2
  • WordPress version: 5.9.2
  • First release: Jan 29, 2008
  • Latest release: Dec 3, 2021
  • Number of updates: 304
  • Update frequency: every 16.8 days
  • Top authors: mrherbivore (87.17%)borkweb (3.29%)barry.hughes (3.29%)sc0ttkclark (2.96%)ModernTribe (1.64%)

Code review

54 tests

User reviews

19 reviews

Install metrics

10,000+ active / 369,534 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.71MB] [CPU: ▼330.55ms] Passed 4 tests

This is a short check of server-side resources used by GigPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.30 ▲0.7897.53 ▲47.45
Dashboard /wp-admin4.15 ▲0.7440.11 ▼58.98
Posts /wp-admin/edit.php4.38 ▲0.7346.53 ▼44.09
Add New Post /wp-admin/post-new.php7.61 ▲0.6499.54 ▼1,217.56
Media Library /wp-admin/upload.php4.04 ▲0.7431.48 ▼1.55
Artists /wp-admin/admin.php?page=gigpress-artists4.0128.51
Add a show /wp-admin/admin.php?page=gigpress4.0140.82
Venues /wp-admin/admin.php?page=gigpress-venues4.0138.72
Shows /wp-admin/admin.php?page=gigpress-shows4.0345.24
Settings /wp-admin/admin.php?page=gigpress-settings4.2543.10
Tours /wp-admin/admin.php?page=gigpress-tours4.0127.26
Debug /wp-admin/admin.php?page=gigpress-debug4.0126.79
Import/Export /wp-admin/admin.php?page=gigpress-import-export4.0127.49

Server storage [IO: ▲1.54MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 97 new files
Database: 4 new tables, 2 new options
New tables
wp_gigpress_tours
wp_gigpress_venues
wp_gigpress_artists
wp_gigpress_shows
New WordPress options
gigpress_settings
widget_gigpress

Browser metrics Passed 4 tests

GigPress: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,960 ▲21616.37 ▲0.7511.08 ▲5.192.10 ▼0.94
Dashboard /wp-admin2,957 ▲996.02 ▼0.19124.47 ▼9.62170.24 ▲6.57
Posts /wp-admin/edit.php2,754 ▲633.23 ▼0.0063.57 ▼2.71144.92 ▼3.62
Add New Post /wp-admin/post-new.php1,792 ▲4020.89 ▼0.40431.33 ▼43.11209.67 ▲41.99
Media Library /wp-admin/upload.php1,764 ▲635.51 ▼0.07136.16 ▼5.81271.10 ▲15.74
Artists /wp-admin/admin.php?page=gigpress-artists1,2352.9456.22106.38
Add a show /wp-admin/admin.php?page=gigpress4,6852.9460.98150.92
Venues /wp-admin/admin.php?page=gigpress-venues2,3852.7655.66138.31
Shows /wp-admin/admin.php?page=gigpress-shows1,3952.7661.46110.24
Settings /wp-admin/admin.php?page=gigpress-settings4,4422.7982.43127.95
Tours /wp-admin/admin.php?page=gigpress-tours1,1982.7768.79107.04
Debug /wp-admin/admin.php?page=gigpress-debug1,5912.7755.62107.43
Import/Export /wp-admin/admin.php?page=gigpress-import-export1,2302.7755.34107.29

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 4 tables in the database
    • wp_gigpress_venues
    • wp_gigpress_shows
    • wp_gigpress_artists
    • wp_gigpress_tours
  • This plugin does not fully uninstall, leaving 1 option in the database
    • widget_gigpress

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
The following issues need your attention
  • 14× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/gigpress/templates/sidebar-tour-end.php
    • > /wp-content/plugins/gigpress/templates/shows-list-footer.php
    • > /wp-content/plugins/gigpress/templates/shows-list-end.php
    • > /wp-content/plugins/gigpress/templates/after-menu.php
    • > /wp-content/plugins/gigpress/templates/sidebar-list-footer.php
    • > /wp-content/plugins/gigpress/templates/before-menu.php
    • > /wp-content/plugins/gigpress/templates/sidebar-artist-heading.php
    • > /wp-content/plugins/gigpress/templates/shows-artist-heading.php
    • > /wp-content/plugins/gigpress/templates/shows-tour-heading.php
    • > /wp-content/plugins/gigpress/templates/sidebar-tour-heading.php
  • 89× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: artist in wp-content/plugins/gigpress/templates/shows-list-start.php on line 19
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/gigpress/templates/shows-list.php on line 74
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/gigpress/templates/shows-list-start.php:26
    • > PHP Notice
      Undefined variable: showdata in wp-content/plugins/gigpress/templates/shows-list.php on line 98
    • > PHP Notice
      Undefined variable: class in wp-content/plugins/gigpress/templates/sidebar-list.php on line 12
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/gigpress/templates/related.php on line 20
    • > PHP Notice
      Constant PHP_SESSION_NONE already defined in wp-content/plugins/gigpress/lib/upgrade.php on line 410
    • > PHP Notice
      Constant ZLIB_ENCODING_GZIP already defined in wp-content/plugins/gigpress/lib/upgrade.php on line 390
    • > PHP Notice
      Undefined variable: showdata in wp-content/plugins/gigpress/templates/shows-list.php on line 70
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/gigpress/templates/shows-list.php on line 78

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
9 plugin tags: bands, concerts, tours, shows, musicians...

gigpress/gigpress.php Passed 13 tests

"GigPress" version 2.3.27's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
96 characters long description:
GigPress is a live performance listing and management plugin built for musicians and performers.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin18,861 lines of code in 65 files:
LanguageFilesBlank linesComment linesLines of code
PO File215,8759,51211,432
PHP371,7922,1856,944
CSS29742345
HTML20070
JavaScript28669
Markdown1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity108.00
▷ Minimum class complexity28.00
▷ Maximum class complexity188.00
Average method complexity10.73
▷ Minimum method complexity1.00
▷ Maximum method complexity56.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions204
▷ Named functions204100.00%
▷ Anonymous functions00.00%
Constants100
▷ Global constants100100.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
7 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/gigpress-icon-32.png1.66KB1.30KB▼ 21.61%
images/sort.png0.35KB0.26KB▼ 23.73%
images/feed-icon-12x12.png0.54KB0.49KB▼ 9.78%
images/calendar-links-bg.png0.24KB0.13KB▼ 45.60%
images/calendar-toggle.png0.23KB0.12KB▼ 47.50%