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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.30 ▲0.78 | 97.53 ▲47.45 |
Dashboard /wp-admin | 4.15 ▲0.74 | 40.11 ▼58.98 |
Posts /wp-admin/edit.php | 4.38 ▲0.73 | 46.53 ▼44.09 |
Add New Post /wp-admin/post-new.php | 7.61 ▲0.64 | 99.54 ▼1,217.56 |
Media Library /wp-admin/upload.php | 4.04 ▲0.74 | 31.48 ▼1.55 |
Artists /wp-admin/admin.php?page=gigpress-artists | 4.01 | 28.51 |
Add a show /wp-admin/admin.php?page=gigpress | 4.01 | 40.82 |
Venues /wp-admin/admin.php?page=gigpress-venues | 4.01 | 38.72 |
Shows /wp-admin/admin.php?page=gigpress-shows | 4.03 | 45.24 |
Settings /wp-admin/admin.php?page=gigpress-settings | 4.25 | 43.10 |
Tours /wp-admin/admin.php?page=gigpress-tours | 4.01 | 27.26 |
Debug /wp-admin/admin.php?page=gigpress-debug | 4.01 | 26.79 |
Import/Export /wp-admin/admin.php?page=gigpress-import-export | 4.01 | 27.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,960 ▲216 | 16.37 ▲0.75 | 11.08 ▲5.19 | 2.10 ▼0.94 |
Dashboard /wp-admin | 2,957 ▲99 | 6.02 ▼0.19 | 124.47 ▼9.62 | 170.24 ▲6.57 |
Posts /wp-admin/edit.php | 2,754 ▲63 | 3.23 ▼0.00 | 63.57 ▼2.71 | 144.92 ▼3.62 |
Add New Post /wp-admin/post-new.php | 1,792 ▲40 | 20.89 ▼0.40 | 431.33 ▼43.11 | 209.67 ▲41.99 |
Media Library /wp-admin/upload.php | 1,764 ▲63 | 5.51 ▼0.07 | 136.16 ▼5.81 | 271.10 ▲15.74 |
Artists /wp-admin/admin.php?page=gigpress-artists | 1,235 | 2.94 | 56.22 | 106.38 |
Add a show /wp-admin/admin.php?page=gigpress | 4,685 | 2.94 | 60.98 | 150.92 |
Venues /wp-admin/admin.php?page=gigpress-venues | 2,385 | 2.76 | 55.66 | 138.31 |
Shows /wp-admin/admin.php?page=gigpress-shows | 1,395 | 2.76 | 61.46 | 110.24 |
Settings /wp-admin/admin.php?page=gigpress-settings | 4,442 | 2.79 | 82.43 | 127.95 |
Tours /wp-admin/admin.php?page=gigpress-tours | 1,198 | 2.77 | 68.79 | 107.04 |
Debug /wp-admin/admin.php?page=gigpress-debug | 1,591 | 2.77 | 55.62 | 107.43 |
Import/Export /wp-admin/admin.php?page=gigpress-import-export | 1,230 | 2.77 | 55.34 | 107.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
- > PHP Notice
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 21 | 5,875 | 9,512 | 11,432 |
PHP | 37 | 1,792 | 2,185 | 6,944 |
CSS | 2 | 97 | 42 | 345 |
HTML | 2 | 0 | 0 | 70 |
JavaScript | 2 | 8 | 6 | 69 |
Markdown | 1 | 0 | 0 | 1 |
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 code | 0.50 |
Average class complexity | 108.00 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 10.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 204 | |
▷ Named functions | 204 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 100 | |
▷ Global constants | 100 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/gigpress-icon-32.png | 1.66KB | 1.30KB | ▼ 21.61% |
images/sort.png | 0.35KB | 0.26KB | ▼ 23.73% |
images/feed-icon-12x12.png | 0.54KB | 0.49KB | ▼ 9.78% |
images/calendar-links-bg.png | 0.24KB | 0.13KB | ▼ 45.60% |
images/calendar-toggle.png | 0.23KB | 0.12KB | ▼ 47.50% |