Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/webinara/includes/class-webinara-meta-box.php+1064
Undefined index: post_type
Server metrics [RAM: ▲0.43MB] [CPU: ▼26.81ms] Passed 4 tests
This is a short check of server-side resources used by Webinara
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.81 ▲1.35 | 52.08 ▲11.96 |
Dashboard /wp-admin | 4.39 ▲1.04 | 35.16 ▼26.06 |
Posts /wp-admin/edit.php | 4.39 ▲1.03 | 34.26 ▼17.23 |
Add New Post /wp-admin/post-new.php | 4.39 ▼1.50 | 37.64 ▼64.90 |
Media Library /wp-admin/upload.php | 4.39 ▲1.16 | 35.99 ▲0.95 |
All Events /wp-admin/edit.php?post_type=event | 4.39 | 32.76 |
Add New Event /wp-admin/post-new.php?post_type=event | 4.39 | 35.57 |
Event tags /wp-admin/edit-tags.php?taxonomy=event_tag&post_type=webinar | 4.39 | 34.28 |
Dashboard /wp-admin/edit.php?post_type=webinar&page=webinara_dashboard | 4.39 | 35.13 |
Add New Webinar /wp-admin/post-new.php?post_type=webinar | 4.39 | 34.14 |
Settings /wp-admin/edit.php?post_type=webinar&page=webinara_plugin | 4.39 | 32.24 |
Configure Fields /wp-admin/edit.php?post_type=webinar&page=webinara-form-field | 4.39 | 34.39 |
All Webinars /wp-admin/edit.php?post_type=webinar | 4.39 | 33.02 |
Event Categories /wp-admin/edit-tags.php?taxonomy=event_categories&post_type=webinar | 4.39 | 33.84 |
Server storage [IO: ▲0.70MB] [DB: ▲0.12MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 15 new options
New WordPress options |
---|
event_categories_children |
_webi_webinars_per_page |
can_compress_scripts |
theysaidso_admin_options |
_webi_eventform_fields |
_webi_enable_webinars |
_webi_webinarform_fields |
_webi_webinars_page_id |
_webi_enable_events |
_webi_events_per_page |
... |
Browser metrics Passed 4 tests
Webinara: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,018 ▲272 | 14.37 ▼0.01 | 6.75 ▲5.12 | 44.56 ▲3.20 |
Dashboard /wp-admin | 2,288 ▲103 | 5.31 ▼0.69 | 112.15 ▲3.11 | 89.84 ▲47.62 |
Posts /wp-admin/edit.php | 2,191 ▲102 | 2.62 ▲0.58 | 43.29 ▲0.58 | 35.16 ▲0.12 |
Add New Post /wp-admin/post-new.php | 1,606 ▲87 | 23.36 ▲0.15 | 737.64 ▲89.10 | 35.97 ▼22.62 |
Media Library /wp-admin/upload.php | 1,473 ▲88 | 4.64 ▲0.43 | 103.83 ▲2.58 | 80.45 ▲34.11 |
All Events /wp-admin/edit.php?post_type=event | 1,158 | 2.48 | 36.51 | 51.20 |
Add New Event /wp-admin/post-new.php?post_type=event | 15,349 | 10.76 | 380.33 | 205.61 |
Event tags /wp-admin/edit-tags.php?taxonomy=event_tag&post_type=webinar | 1,342 | 2.19 | 31.97 | 32.00 |
Dashboard /wp-admin/edit.php?post_type=webinar&page=webinara_dashboard | 897 | 2.11 | 29.05 | 27.84 |
Add New Webinar /wp-admin/post-new.php?post_type=webinar | 16,056 | 10.57 | 368.97 | 196.59 |
Settings /wp-admin/edit.php?post_type=webinar&page=webinara_plugin | 1,216 | 2.80 | 45.62 | 27.44 |
Configure Fields /wp-admin/edit.php?post_type=webinar&page=webinara-form-field | 1,576 | 2.15 | 32.24 | 32.24 |
All Webinars /wp-admin/edit.php?post_type=webinar | 1,152 | 2.52 | 35.83 | 49.30 |
Event Categories /wp-admin/edit-tags.php?taxonomy=event_categories&post_type=webinar | 7,842 | 2.23 | 39.79 | 49.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- event_categories_children
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 18 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=event_categories&post_type=webinar
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=webinar
- > Notice in wp-content/plugins/webinara/includes/class-webinara-meta-box.php+1064
Undefined index: post_type
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=webinar
- > Notice in wp-content/plugins/webinara/includes/class-webinara-meta-box.php+83
Undefined index: title
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=webinar
- > Notice in wp-content/plugins/webinara/includes/class-webinara-meta-box.php+83
Trying to access array offset on value of type null
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=webinar
- > Warning in wp-content/plugins/webinara/includes/class-webinara-meta-box.php+309
count(): Parameter must be an array or an object that implements Countable
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=webinar
- > Notice in wp-content/plugins/webinara/includes/class-webinara-meta-box.php+309
Uninitialized string offset: 0
- > GET request to /wp-admin/post-new.php?post_type=webinar
- > Notice in wp-content/plugins/webinara/includes/class-webinara-meta-box.php+815
Undefined variable: wplatform
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
Almost there! Just fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/webinara/templates/single-webinar.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/webinara/templates/single-event.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webinara/includes/class-webinara-field-editor.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/webinara/includes/class-webinara.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
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
6 plugin tags: webinar management, events, event management, webinar, event...
webinara/webinara.php Passed 13 tests
"Webinara" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
76 characters long description:
The easiest way to create powerful webinar management system with WordPress.
Code Analysis 97% from 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 plugin13,087 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 273 | 200 | 5,964 |
JavaScript | 9 | 513 | 344 | 5,129 |
CSS | 6 | 198 | 22 | 1,594 |
LESS | 1 | 10 | 25 | 400 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 145)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 126.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 490.00 |
Average method complexity | 12.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 145.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 2 | 3.17% |
▷ Public methods | 61 | 96.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.17% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/assets/images/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
includes/assets/images/default_speaker.png | 2.63KB | 1.37KB | ▼ 47.89% |
includes/assets/images/attachment.png | 2.95KB | 2.31KB | ▼ 21.55% |
includes/assets/images/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
includes/assets/images/logo-webinara-20x20.png | 0.99KB | 0.80KB | ▼ 19.45% |