Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.82MB] [CPU: ▼30.50ms] Passed 4 tests
Analyzing server-side resources used by VIP Events
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 38.44 ▲0.79 |
Dashboard /wp-admin | 3.13 ▼0.18 | 24.80 ▼22.58 |
Posts /wp-admin/edit.php | 3.13 ▼0.23 | 23.78 ▼23.03 |
Add New Post /wp-admin/post-new.php | 3.13 ▼2.76 | 23.14 ▼67.76 |
Media Library /wp-admin/upload.php | 3.13 ▼0.10 | 23.37 ▼8.63 |
Event Categories /wp-admin/edit-tags.php?taxonomy=events_category&post_type=alw-events | 3.13 | 23.15 |
All Events /wp-admin/edit.php?post_type=alw-events | 3.13 | 25.09 |
Add New Event /wp-admin/post-new.php?post_type=alw-events | 3.13 | 24.55 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for VIP Events
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲77 | 13.15 ▼1.38 | 4.91 ▲3.37 | 42.65 ▲3.13 |
Dashboard /wp-admin | 2,244 ▲66 | 5.71 ▼0.01 | 88.80 ▼12.14 | 43.85 ▲1.02 |
Posts /wp-admin/edit.php | 2,146 ▲46 | 2.20 ▲0.26 | 34.69 ▼3.45 | 32.70 ▼1.79 |
Add New Post /wp-admin/post-new.php | 1,565 ▲28 | 23.30 ▲5.33 | 636.74 ▼17.51 | 53.74 ▼22.01 |
Media Library /wp-admin/upload.php | 1,446 ▲46 | 4.30 ▲0.07 | 94.71 ▼18.67 | 44.62 ▼1.52 |
Event Categories /wp-admin/edit-tags.php?taxonomy=events_category&post_type=alw-events | 1,323 | 2.27 | 29.49 | 30.99 |
All Events /wp-admin/edit.php?post_type=alw-events | 1,110 | 2.13 | 30.97 | 28.70 |
Add New Event /wp-admin/post-new.php?post_type=alw-events | 2,390 | 7.83 | 165.81 | 71.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin cannot be uninstalled
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'Alweventsadmin' does not have a method 'admin_init_hooks'
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=alw-events
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'Alweventsadmin' does not have a method 'admin_init_hooks'
- > GET request to /wp-admin/post-new.php?post_type=alw-events
- > Notice in wp-content/plugins/vip-events/class.front.alw_events.php+293
Undefined index: custom_meta_box_nonce
- > GET request to /wp-admin/post-new.php?post_type=alw-events
- > Warning in wp-content/plugins/vip-events/class.front.alw_events.php+132
Invalid argument supplied for foreach()
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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/vip-events/vip-events.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vip-events/class.front.alw_events.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vip-events/class.admin.alw_events.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/vip-events/single-alw-events.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/post-new.php?post_type=alw-events
- > Network (severe)
wp-content/plugins/vip-events/css/images/ui-bg_flat_75_ffffff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 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
4 plugin tags: event using custom post type, events, vip events, simple events
vip-events/vip-events.php 92% from 13 tests
Analyzing the main PHP file in "VIP Events" version 1.0.0
Please make the necessary changes and fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,996 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 125 | 117 | 1,148 |
PHP | 5 | 97 | 65 | 617 |
JavaScript | 7 | 7 | 50 | 231 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 18 | |
▷ Static methods | 2 | 11.11% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/close.png | 0.27KB | 0.29KB | 0.00% |
images/prev.png | 1.33KB | 1.59KB | 0.00% |
images/next.png | 1.32KB | 1.58KB | 0.00% |