Benchmarks
Plugin footprint 83% 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: ▲1.61MB] [CPU: ▲8.59ms] Passed 4 tests
An overview of server-side resources used by FAT Event Lite
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.96 ▲1.50 | 51.89 ▲9.02 |
Dashboard /wp-admin | 4.96 ▲1.66 | 61.47 ▲7.85 |
Posts /wp-admin/edit.php | 5.03 ▲1.67 | 66.11 ▲19.39 |
Add New Post /wp-admin/post-new.php | 7.61 ▲1.72 | 102.88 ▲2.79 |
Media Library /wp-admin/upload.php | 4.86 ▲1.63 | 46.68 ▲14.70 |
Add Event /wp-admin/post-new.php?post_type=fat-event | 5.66 | 81.41 |
Booking /wp-admin/edit.php?post_type=fat-event-booking | 4.94 | 56.49 |
All FAT Event /wp-admin/edit.php?post_type=fat-event | 4.95 | 49.48 |
Shortcodes /wp-admin/edit.php?post_type=fat-calendar | 4.94 | 91.88 |
Tags /wp-admin/edit-tags.php?taxonomy=fat-event-tag&post_type=fat-event | 4.88 | 65.74 |
Go Pro /wp-admin/edit.php?post_type=fat-event&page=fat-event-go-pro | 4.84 | 51.44 |
Settings /wp-admin/edit.php?post_type=fat-event&page=fat-event-setting | 5.32 | 65.88 |
Organizers /wp-admin/edit-tags.php?taxonomy=fat-event-organizer&post_type=fat-event | 5.19 | 53.04 |
Locations /wp-admin/edit-tags.php?taxonomy=fat-event-location&post_type=fat-event | 5.19 | 51.49 |
Categories /wp-admin/edit-tags.php?taxonomy=fat-event-category&post_type=fat-event | 4.88 | 51.58 |
Server storage [IO: ▲6.53MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 218 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
fat_event_flush_rewrite |
fat_event_setting |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
FAT Event Lite: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,024 ▲278 | 15.21 ▲0.56 | 1.73 ▲0.06 | 38.17 ▼7.13 |
Dashboard /wp-admin | 2,427 ▲236 | 6.55 ▲0.65 | 138.76 ▲25.31 | 43.04 ▲1.15 |
Posts /wp-admin/edit.php | 2,336 ▲247 | 3.43 ▲1.25 | 57.61 ▲22.79 | 34.99 ▼1.12 |
Add New Post /wp-admin/post-new.php | 1,585 ▲50 | 17.63 ▼5.37 | 626.74 ▼76.66 | 36.39 ▼15.61 |
Media Library /wp-admin/upload.php | 1,472 ▲81 | 4.28 ▲0.04 | 81.53 ▼15.51 | 41.21 ▼2.31 |
Add Event /wp-admin/post-new.php?post_type=fat-event | 6,782 | 9.96 | 342.33 | 99.26 |
Booking /wp-admin/edit.php?post_type=fat-event-booking | 1,353 | 3.49 | 47.38 | 29.61 |
All FAT Event /wp-admin/edit.php?post_type=fat-event | 1,436 | 3.62 | 43.48 | 33.25 |
Shortcodes /wp-admin/edit.php?post_type=fat-calendar | 1,308 | 3.50 | 64.43 | 43.57 |
Tags /wp-admin/edit-tags.php?taxonomy=fat-event-tag&post_type=fat-event | 1,481 | 3.25 | 59.19 | 40.59 |
Go Pro /wp-admin/edit.php?post_type=fat-event&page=fat-event-go-pro | 1,204 | 3.18 | 54.35 | 73.05 |
Settings /wp-admin/edit.php?post_type=fat-event&page=fat-event-setting | 4,211 | 5.29 | 130.85 | 44.12 |
Organizers /wp-admin/edit-tags.php?taxonomy=fat-event-organizer&post_type=fat-event | 1,590 | 3.30 | 50.31 | 33.09 |
Locations /wp-admin/edit-tags.php?taxonomy=fat-event-location&post_type=fat-event | 2,194 | 7.51 | 137.75 | 151.08 |
Categories /wp-admin/edit-tags.php?taxonomy=fat-event-category&post_type=fat-event | 1,512 | 3.35 | 54.88 | 30.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- fat_event_flush_rewrite
- widget_recent-posts
- can_compress_scripts
- fat_event_setting
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 8× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/fat-event-lite/libs/fat-cmb/fat-cmb.php
- > /wp-content/plugins/fat-event-lite/inc/menu.php
- > /wp-content/plugins/fat-event-lite/inc/shortcodes.php
- > /wp-content/plugins/fat-event-lite/libs/fat-cmb/templates/init-field.php
- > /wp-content/plugins/fat-event-lite/assets/css/frontend/custom-font.php
- > /wp-content/plugins/fat-event-lite/assets/css/frontend/custom-css.php
- > /wp-content/plugins/fat-event-lite/templates/filters/listing.php
- > /wp-content/plugins/fat-event-lite/inc/cpt.php
- 89× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/fat-event-lite/templates/layouts/event_booking.php:11
- > PHP Notice
Undefined variable: list_amenities in wp-content/plugins/fat-event-lite/templates/single/part/amenities.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/fat-event-lite/templates/skins/list-skin-01.php:17
- > PHP Notice
Undefined variable: total_found in wp-content/plugins/fat-event-lite/templates/pagings/infinite-scroll.php on line 12
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/fat-event-lite/templates/single/part/amenities-sidebar.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/fat-event-lite/templates/filters/dropdown.php:9
- > PHP Notice
Undefined variable: total_found in wp-content/plugins/fat-event-lite/templates/pagings/infinite-scroll.php on line 13
- > PHP Notice
Undefined variable: total_found in wp-content/plugins/fat-event-lite/templates/pagings/load-more.php on line 13
- > PHP Notice
Undefined variable: title in wp-content/plugins/fat-event-lite/templates/ical/ical.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/fat-event-lite/templates/skins/skin-02.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/post-new.php?post_type=fat-event
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.defaultLabel is deprecated since version 5.5.0! Use wp.i18n instead.
- > GET request to /wp-admin/post-new.php?post_type=fat-event
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.pick is deprecated since version 5.5.0! Use wp.i18n instead.
- > GET request to /wp-admin/post-new.php?post_type=fat-event
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.clear is deprecated since version 5.5.0! Use wp.i18n instead.
- > GET request to /wp-admin/post-new.php?post_type=fat-event
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.clearAriaLabel is deprecated since version 5.5.0! Use wp.i18n instead.
- > GET request to /wp-admin/edit.php?post_type=fat-event&page=fat-event-setting
- > Network (severe)
wp-content/plugins/fat-event-lite/libs/fat-cmb/assets/js/ace/mode-html.js - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=fat-event&page=fat-event-setting
- > Network (severe)
wp-content/plugins/fat-event-lite/libs/fat-cmb/assets/js/ace/mode-css.js - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit-tags.php?taxonomy=fat-event-location&post_type=fat-event
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?key=AIzaSyDnjdX5Zv3gPDvsYE2ZsbyQ-xl4TbSu8ts&libraries=places&callback=fat_google_map_init&ver=6.3.1 163:311 "google.maps.event.addDomListener() is deprecated, use the standard\naddEventListener() method instead:\nhttps://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener\nThe feature will continue to work and there is no plan to decommission\nit."
- > GET request to /wp-admin/edit-tags.php?taxonomy=fat-event-location&post_type=fat-event
- > Console-api (severe) in unknown
https://maps.googleapis.com/maps/api/js?key=AIzaSyDnjdX5Zv3gPDvsYE2ZsbyQ-xl4TbSu8ts&libraries=places&callback=fat_google_map_init&ver=6.3.1 152:248 "You must enable Billing on the Google Cloud Project at https://console.cloud.google.com/project/_/billing/enable Learn more at https://developers.google.com/maps/gmp-get-started"
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: calendar, tickets, event, schedule, woocommerce integrated...
fat-event-lite/fat-event-lite.php Passed 13 tests
The main PHP file in "FAT Event Lite" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
35 characters long description:
WordPress Event and Calendar Plugin
Code Analysis 97% from 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
No dangerous file extensions were detected61,727 lines of code in 176 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 16,894 |
PHP | 88 | 1,242 | 781 | 15,872 |
JavaScript | 53 | 2,287 | 2,210 | 14,324 |
CSS | 25 | 1,069 | 154 | 9,617 |
SVG | 6 | 0 | 0 | 2,931 |
PO File | 1 | 1,002 | 1,464 | 2,085 |
Markdown | 1 | 2 | 0 | 4 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 236)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 46.94 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 374.00 |
Average method complexity | 9.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 236.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 33 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 33 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 187 | |
▷ Static methods | 17 | 9.09% |
▷ Public methods | 164 | 87.70% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 23 | 12.30% |
Functions | 16 | |
▷ Named functions | 15 | 93.75% |
▷ Anonymous functions | 1 | 6.25% |
Constants | 24 | |
▷ Global constants | 23 | 95.83% |
▷ Class constants | 1 | 4.17% |
▷ Public constants | 1 | 100.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
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/plugins/light-gallery/img/video-play.png | 4.42KB | 1.05KB | ▼ 76.27% |
assets/plugins/light-gallery/img/youtube-play.png | 5.06KB | 2.37KB | ▼ 53.04% |
assets/plugins/owl-carousel/assets/owl.video.play.png | 4.86KB | 2.74KB | ▼ 43.61% |
assets/plugins/light-gallery/img/vimeo-play.png | 5.30KB | 1.56KB | ▼ 70.65% |