Benchmarks
Plugin footprint 40% 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
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/nom-event-management/index.php+35
Use of undefined constant __FIEL__ - assumed '__FIEL__' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.89MB] [CPU: ▼59.00ms] Passed 4 tests
Server-side resources used by Event Management Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼1.36 | 5.98 ▼43.85 |
Dashboard /wp-admin | 2.13 ▼1.22 | 6.49 ▼55.64 |
Posts /wp-admin/edit.php | 2.13 ▼1.23 | 6.15 ▼42.17 |
Add New Post /wp-admin/post-new.php | 2.13 ▼3.76 | 7.49 ▼94.32 |
Media Library /wp-admin/upload.php | 2.13 ▼1.10 | 5.56 ▼32.80 |
Event Tags /wp-admin/edit-tags.php?taxonomy=event_tag&post_type=event | 2.13 | 6.96 |
Event Categories /wp-admin/edit-tags.php?taxonomy=event_cat&post_type=event | 2.13 | 8.14 |
Add New Event /wp-admin/post-new.php?post_type=event | 2.13 | 5.68 |
All Events /wp-admin/edit.php?post_type=event | 2.13 | 7.29 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 38 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_nom-event-management-widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Event Management Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,000 ▲254 | 14.76 ▲0.39 | 1.83 ▲0.08 | 40.26 ▼8.16 |
Dashboard /wp-admin | 2,378 ▲190 | 6.46 ▲0.66 | 129.31 ▲15.32 | 41.25 ▼3.51 |
Posts /wp-admin/edit.php | 2,285 ▲196 | 3.32 ▲1.36 | 53.75 ▲20.56 | 32.90 ▼2.99 |
Add New Post /wp-admin/post-new.php | 1,577 ▲44 | 23.18 ▲0.11 | 679.14 ▲18.26 | 38.08 ▼15.72 |
Media Library /wp-admin/upload.php | 1,423 ▲32 | 4.13 ▼0.10 | 78.62 ▼14.84 | 42.50 ▼1.93 |
Event Tags /wp-admin/edit-tags.php?taxonomy=event_tag&post_type=event | 1,435 | 3.16 | 41.65 | 27.56 |
Event Categories /wp-admin/edit-tags.php?taxonomy=event_cat&post_type=event | 1,457 | 3.08 | 40.78 | 27.09 |
Add New Event /wp-admin/post-new.php?post_type=event | 2,584 | 8.20 | 183.43 | 72.86 |
All Events /wp-admin/edit.php?post_type=event | 1,273 | 3.24 | 53.79 | 31.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/nom-event-management/index.php+35
Use of undefined constant __FIEL__ - assumed '__FIEL__' (this will throw an Error in a future version of PHP)
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_nom-event-management-widget
- can_compress_scripts
Smoke tests 50% 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)
These server-side errors were triggered
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=event
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/nom-event-management/index.php+35
Use of undefined constant __FIEL__ - assumed '__FIEL__' (this will throw an Error in a future version of PHP)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=event
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/nom-event-management/widget-boilerplate/plugin.php+122
Function create_function() is deprecated
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=event
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Nom_Event_Management::event_custom_post_example() should not be called statically
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=event
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Nom_Event_Management::initialize_cmb_meta_boxes() should not be called statically
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=event
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Nom_Event_Management::event_metaboxes() should not be called statically
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=event
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/nom-event-management/custom-metabox/init.php+762
count(): Parameter must be an array or an object that implements Countable
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=event
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Nom_Event_Management::category() should not be called statically
- > GET request to /wp-admin/post-new.php?post_type=event
- > Deprecated in wp-includes/class-wp-hook.php+312
Non-static method Nom_Event_Management::change_default_title() should not be called statically
- > GET request to /wp-admin/edit.php?post_type=event
- > Deprecated in wp-includes/class-wp-hook.php+312
Non-static method Nom_Event_Management::custom_search_where() should not be called statically
SRP 50% 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
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/nom-event-management/index.php:35
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/nom-event-management/widget-boilerplate/views/admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/nom-event-management/custom-metabox/example-functions.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/nom-event-management/widget-boilerplate/views/widget.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/nom-event-management/widget-boilerplate/plugin.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/nom-event-management/custom-metabox/init.php:45
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Screenshot #1 (screenshot-2.png is the screen shot of the plugin event post type screen from a working example.) image required
nom-event-management/index.php 92% from 13 tests
"Event Management Plugin" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("nom-event-management.php" instead of "index.php")
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
There were no executable files found in this plugin2,494 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 456 | 636 | 1,664 |
CSS | 4 | 2 | 21 | 441 |
JavaScript | 5 | 53 | 90 | 241 |
Markdown | 1 | 28 | 0 | 131 |
PO File | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 40.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 156.00 |
Average method complexity | 3.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 105 | |
▷ Static methods | 65 | 61.90% |
▷ Public methods | 97 | 92.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 7.62% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ 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
16 compressed PNG files occupy 0.16MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
custom-metabox/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
custom-metabox/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
custom-metabox/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
custom-metabox/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
custom-metabox/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |