Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲5.20MB] [CPU: ▲23.31ms] 75% from 4 tests
This is a short check of server-side resources used by Display Eventbrite Events
Please take the time to fix the following items
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.20MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.98 ▲5.52 | 67.30 ▲24.88 |
Dashboard /wp-admin | 9.00 ▲5.65 | 76.50 ▲12.91 |
Posts /wp-admin/edit.php | 9.01 ▲5.64 | 80.79 ▲34.04 |
Add New Post /wp-admin/post-new.php | 9.88 ▲3.98 | 117.30 ▲21.41 |
Media Library /wp-admin/upload.php | 9.00 ▲5.77 | 68.71 ▲36.91 |
Display Eventbrite Events Settings /wp-admin/options-general.php?page=widget-for-eventbrite-api-settings | 9.01 | 69.44 |
Display Eventbrite Setup Wizard /wp-admin/options-general.php?page=widget-for-eventbrite-api-setup-wizard | 9.01 | 61.10 |
Settings /wp-admin/admin.php?page=widget-for-eventbrite-api | 9.01 | 57.85 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 9.01 | 58.27 |
Server storage [IO: ▲3.96MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 323 new files
Database: no new tables, 12 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_eventbrite-events |
fs_active_plugins |
fs_accounts |
widget_recent-comments |
widget-for-eventbrite-api-version |
can_compress_scripts |
theysaidso_admin_options |
fs_debug_mode |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Display Eventbrite Events
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲158 | 13.40 ▼0.88 | 7.38 ▲5.78 | 28.46 ▼15.03 |
Dashboard /wp-admin | 2,227 ▲50 | 5.65 ▲0.10 | 102.06 ▲2.15 | 45.85 ▼0.83 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 2.01 ▼0.00 | 40.02 ▲2.79 | 39.66 ▲6.64 |
Add New Post /wp-admin/post-new.php | 1,544 ▲4 | 21.92 ▼1.19 | 671.24 ▼9.40 | 52.69 ▲1.18 |
Media Library /wp-admin/upload.php | 1,432 ▲38 | 4.21 ▲0.04 | 98.04 ▲1.58 | 47.11 ▲3.50 |
Display Eventbrite Events Settings /wp-admin/options-general.php?page=widget-for-eventbrite-api-settings | 1,079 | 2.03 | 39.12 | 62.61 |
Display Eventbrite Setup Wizard /wp-admin/options-general.php?page=widget-for-eventbrite-api-setup-wizard | 892 | 2.01 | 27.46 | 27.40 |
Settings /wp-admin/admin.php?page=widget-for-eventbrite-api | 787 | 2.01 | 24.92 | 19.23 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,103 | 1.66 | 27.52 | 29.50 |
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
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/widget-for-eventbrite-api/includes/vendor/freemius/wordpress-sdk/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 10 options in the database
- widget_recent-comments
- widget_eventbrite-events
- fs_accounts
- fs_debug_mode
- can_compress_scripts
- theysaidso_admin_options
- fs_active_plugins
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 43× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined property: stdClass::$template_loader in wp-content/plugins/widget-for-eventbrite-api/templates__free/layout_widget.php on line 17
- > PHP Notice
Undefined variable: data in wp-content/plugins/widget-for-eventbrite-api/templates__free/parts/booknow__free.php on line 9
- > PHP Warning
Creating default object from empty value in wp-content/plugins/widget-for-eventbrite-api/templates__free/layout_widget.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/widget-for-eventbrite-api/templates__free/parts/title_widget__free.php:11
- > PHP Notice
Undefined variable: data in wp-content/plugins/widget-for-eventbrite-api/templates__free/parts/calendar_date__free.php on line 6
- > PHP Fatal error
Uncaught Error: Call to a member function get_template_part() on null in wp-content/plugins/widget-for-eventbrite-api/templates__free/loops/loop_card.php:10
- > PHP Fatal error
Uncaught Error: Call to a member function get_template_part() on null in wp-content/plugins/widget-for-eventbrite-api/templates__free/common_layout_card.php:14
- > PHP Notice
Trying to get property 'event' of non-object in wp-content/plugins/widget-for-eventbrite-api/templates__free/parts/booknow__free.php on line 6
- > PHP Notice
Undefined variable: data in wp-content/plugins/widget-for-eventbrite-api/templates__free/common_layout_widget.php on line 14
- > PHP Notice
Trying to get property 'event' of non-object in wp-content/plugins/widget-for-eventbrite-api/templates__free/parts/title_widget__free.php on line 10
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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
5 plugin tags: eventbrite shortcode, events, eventbrite widget, eventbrite, widget
widget-for-eventbrite-api/widget-for-eventbrite-api.php Passed 13 tests
This is the main PHP file of "Display Eventbrite Events" version 5.4.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
55 characters long description:
Easily display Eventbrite events on your WordPress site
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin47,803 lines of code in 239 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 156 | 8,699 | 18,852 | 37,029 |
Sass | 45 | 722 | 114 | 4,231 |
JavaScript | 9 | 983 | 979 | 3,993 |
CSS | 19 | 234 | 102 | 1,998 |
PO File | 1 | 149 | 172 | 443 |
XML | 2 | 27 | 50 | 67 |
SVG | 7 | 0 | 0 | 42 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 70.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 69 | |
▷ Abstract classes | 2 | 2.90% |
▷ Concrete classes | 67 | 97.10% |
▷ Final classes | 0 | 0.00% |
Methods | 1,439 | |
▷ Static methods | 209 | 14.52% |
▷ Public methods | 1,000 | 69.49% |
▷ Protected methods | 32 | 2.22% |
▷ Private methods | 407 | 28.28% |
Functions | 124 | |
▷ Named functions | 111 | 89.52% |
▷ Anonymous functions | 13 | 10.48% |
Constants | 152 | |
▷ Global constants | 103 | 67.76% |
▷ Class constants | 49 | 32.24% |
▷ Public constants | 49 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/vendor/freemius/wordpress-sdk/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
includes/vendor/freemius/wordpress-sdk/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |