Benchmarks
Plugin footprint 39% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/mobile-events-manager/includes/install.php+680
Undefined index: type
Server metrics [RAM: ▲7.39MB] [CPU: ▼113.53ms] 25% from 4 tests
Analyzing server-side resources used by Mobile Events Manager
The following require your attention
- RAM: Try to keep total memory usage under 10MB (currently 11.10MB on /wp-admin/edit.php?post_type=contract)
- CPU: Total CPU usage must kept under 500.00ms (currently 2,107.45ms on /wp-admin/edit.php?post_type=tmem-event&page=tmem-addons)
- Extra RAM: Extra memory usage should kept under 5MB (currently 7.39MB on /wp-admin/edit.php?post_type=contract)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.39 ▲5.55 | 81.11 ▲55.84 |
Dashboard /wp-admin | 11.07 ▲8.00 | 161.26 ▲119.93 |
Posts /wp-admin/edit.php | 11.17 ▲8.05 | 93.68 ▲57.00 |
Add New Post /wp-admin/post-new.php | 13.46 ▲8.01 | 131.97 ▼617.75 |
Media Library /wp-admin/upload.php | 11.00 ▲8.00 | 80.98 ▲50.81 |
TMEM Upgrades /wp-admin/admin.php?page=tmem-upgrades | 10.95 | 80.20 |
Enquiry Sources /wp-admin/edit-tags.php?taxonomy=enquiry-source&post_type=tmem-event | 11.02 | 80.98 |
Automated Tasks /wp-admin/edit.php?post_type=tmem-event&page=tmem-tasks | 11.05 | 75.34 |
Settings /wp-admin/edit.php?post_type=tmem-event&page=tmem-settings | 11.14 | 89.78 |
All Emails /wp-admin/edit.php?post_type=tmem_communication | 11.11 | 91.11 |
All Transactions /wp-admin/edit.php?post_type=tmem-transaction | 11.12 | 82.81 |
All Events /wp-admin/edit.php?post_type=tmem-event | 11.13 | 83.03 |
Extensions /wp-admin/edit.php?post_type=tmem-event&page=tmem-addons | 11.03 | 2,107.45 |
Playlists /wp-admin/admin.php?page=tmem-playlists | 10.95 | 73.08 |
All Contract Templates /wp-admin/edit.php?post_type=contract | 11.10 | 81.94 |
Server storage [IO: ▲4.70MB] [DB: ▲0.08MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 253 new files
Database: 2 new tables, 12 new options
New tables |
---|
wp_tmem_availability |
wp_tmem_availabilitymeta |
New WordPress options |
---|
tmem_client_fields |
tmem_schedules |
tmem_doing_upgrade |
venue-details_children |
transaction-types_children |
wp_tmem_availability_db_version |
playlist-category_children |
wp_tmem_availabilitymeta_db_version |
tmem_version |
tmem_settings |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Mobile Events Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,881 ▲1,255 | 17.31 ▲1.72 | 10.95 ▲5.72 | 78.12 ▲1.65 |
Dashboard /wp-admin | 3,806 ▲907 | 6.56 ▲0.39 | 128.31 ▼6.21 | 199.21 ▲21.99 |
Posts /wp-admin/edit.php | 3,266 ▲526 | 3.44 ▲0.22 | 75.19 ▲10.50 | 139.12 ▼3.87 |
Add New Post /wp-admin/post-new.php | 2,158 ▼1,649 | 15.29 ▼3.83 | 418.99 ▼36.02 | 196.64 ▲35.35 |
Media Library /wp-admin/upload.php | 2,348 ▲596 | 5.91 ▲0.41 | 134.33 ▼1.56 | 201.27 ▲18.88 |
TMEM Upgrades /wp-admin/admin.php?page=tmem-upgrades | 1,575 | 3.13 | 69.01 | 108.58 |
Enquiry Sources /wp-admin/edit-tags.php?taxonomy=enquiry-source&post_type=tmem-event | 2,693 | 3.16 | 67.55 | 138.46 |
Automated Tasks /wp-admin/edit.php?post_type=tmem-event&page=tmem-tasks | 2,055 | 2.86 | 63.77 | 104.34 |
Settings /wp-admin/edit.php?post_type=tmem-event&page=tmem-settings | 2,038 | 3.31 | 74.47 | 199.86 |
All Emails /wp-admin/edit.php?post_type=tmem_communication | 2,032 | 3.34 | 71.23 | 112.79 |
All Transactions /wp-admin/edit.php?post_type=tmem-transaction | 2,097 | 3.30 | 68.48 | 127.97 |
All Events /wp-admin/edit.php?post_type=tmem-event | 2,078 | 3.38 | 73.42 | 117.50 |
Extensions /wp-admin/edit.php?post_type=tmem-event&page=tmem-addons | 1,746 | 2.92 | 67.92 | 193.06 |
Playlists /wp-admin/admin.php?page=tmem-playlists | 1,167 | 2.32 | 42.22 | 80.69 |
All Contract Templates /wp-admin/edit.php?post_type=contract | 2,665 | 3.44 | 74.57 | 156.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_tmem_availability
- wp_tmem_availabilitymeta
- This plugin does not fully uninstall, leaving 12 options in the database
- tmem_doing_upgrade
- tmem_client_fields
- wp_tmem_availabilitymeta_db_version
- tmem_settings
- wp_tmem_availability_db_version
- widget_tmem_availability_widget
- tmem_version
- event-types_children
- playlist-category_children
- venue-details_children
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=contract
- > Warning in wp-content/plugins/mobile-events-manager/includes/admin/templates/contracts.php+80
count(): Parameter must be an array or an object that implements Countable
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 13× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/mobile-events-manager/includes/admin/pages/event-fields.php
- > /wp-content/plugins/mobile-events-manager/includes/admin/venues/venues.php
- > /wp-content/plugins/mobile-events-manager/includes/admin/communications/tmem-communications.php
- > /wp-content/plugins/mobile-events-manager/includes/admin/transactions/txns.php
- > /wp-content/plugins/mobile-events-manager/includes/admin/roles/class-tmem-permissions.php
- > /wp-content/plugins/mobile-events-manager/includes/admin/templates/emails.php
- > /wp-content/plugins/mobile-events-manager/includes/admin/events/quotes.php
- > /wp-content/plugins/mobile-events-manager/includes/admin/roles/class-tmem-roles.php
- > /wp-content/plugins/mobile-events-manager/includes/admin/communications/comms.php
- > /wp-content/plugins/mobile-events-manager/includes/admin/users/class-tmem-users.php
- 26× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/mobile-events-manager/templates/playlist/playlist-guest.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/mobile-events-manager/templates/login/login-form.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/mobile-events-manager/templates/event/event-loop-footer.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mobile-events-manager/includes/admin/transactions/taxonomies.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/mobile-events-manager/templates/event/event-loop.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/mobile-events-manager/templates/availability/availability-horizontal.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/mobile-events-manager/templates/playlist/playlist-client.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/mobile-events-manager/templates/contract/contract-signed.php:26
- > PHP Fatal error
require(): Failed opening required 'TMEM_PLUGIN_DIR/includes/venue-functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/mobile-events-manager/includes/travel-functions.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mobile-events-manager/includes/admin/plugins.php:35
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=tmem-upgrades
- > Network (severe)
wp-admin/index.php?page=tmem-about - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (An overview of the Mobile Events Manager Dashboard screen as seen by an Administrator when they are logged into the WordPress Admin UI), #2 (The Dashboard as seen by an employee when they are logged in), #3 (A view of the settings page (not seen by non-admins)), #4 (Permissions can be set to determine what an employee can see/do within the application), #5 (Event listing within the Admin UI), #6 (The client's homepage on the website front end), #7 (The playlist feature as utilised by clients)
mobile-events-manager/mobile-events-manager.php 92% from 13 tests
The entry point to "Mobile Events Manager" version 1.4.6 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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
There were no executable files found in this plugin50,224 lines of code in 204 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 164 | 11,528 | 17,311 | 42,874 |
CSS | 19 | 358 | 317 | 3,950 |
JavaScript | 19 | 435 | 295 | 3,350 |
Markdown | 1 | 12 | 0 | 26 |
JSON | 1 | 0 | 0 | 24 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 33.64 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 158.00 |
Average method complexity | 4.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 61 | |
▷ Abstract classes | 1 | 1.64% |
▷ Concrete classes | 60 | 98.36% |
▷ Final classes | 0 | 0.00% |
Methods | 644 | |
▷ Static methods | 21 | 3.26% |
▷ Public methods | 602 | 93.48% |
▷ Protected methods | 11 | 1.71% |
▷ Private methods | 31 | 4.81% |
Functions | 1,009 | |
▷ Named functions | 1,003 | 99.41% |
▷ Anonymous functions | 6 | 0.59% |
Constants | 15 | |
▷ Global constants | 14 | 93.33% |
▷ Class constants | 1 | 6.67% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
29 PNG files occupy 0.26MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/ui-bg_highlight-hard_100_f4f0ec_1x100.png | 0.38KB | 0.15KB | ▼ 60.78% |
assets/images/ui-bg_inset-soft_100_f4f0ec_1x100.png | 0.45KB | 0.17KB | ▼ 61.82% |
assets/images/ui-icons_cb672b_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
assets/images/ui-bg_glass_25_cb842e_1x400.png | 0.38KB | 0.16KB | ▼ 58.27% |
assets/images/ui-icons_21759b_256x240.png | 3.62KB | 4.11KB | 0.00% |