Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/ody-events/events_widget.php+9
Methods with the same name as their class will not be constructors in a future version of PHP; odyCalendar has a deprecated constructor
Server metrics [RAM: ▼1.80MB] [CPU: ▼56.95ms] Passed 4 tests
Analyzing server-side resources used by Ody Events
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.21 ▼1.26 | 5.52 ▼44.86 |
Dashboard /wp-admin | 2.23 ▼1.12 | 7.83 ▼46.93 |
Posts /wp-admin/edit.php | 2.23 ▼1.13 | 7.48 ▼42.69 |
Add New Post /wp-admin/post-new.php | 2.23 ▼3.67 | 8.63 ▼93.30 |
Media Library /wp-admin/upload.php | 2.23 ▼1.01 | 6.55 ▼30.74 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 37 new files
Database: 1 new table, 15 new options
New tables |
---|
wp_ody_events |
New WordPress options |
---|
eventsBackground |
widget_ody_calendar |
headerBackground |
db_upgraded |
ody_events_msg |
can_compress_scripts |
buttonBackground |
ody_events_delete_on_uninstall |
eventsListBackground |
ody_post_types |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Ody Events
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲80 | 13.17 ▼1.07 | 3.49 ▲1.68 | 46.50 ▲3.53 |
Dashboard /wp-admin | 2,222 ▲51 | 5.81 ▲0.30 | 93.49 ▲8.71 | 79.53 ▲38.19 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 2.21 ▲0.23 | 42.27 ▲3.19 | 37.13 ▲0.90 |
Add New Post /wp-admin/post-new.php | 6,251 ▲4,716 | 26.03 ▲8.07 | 910.27 ▲228.12 | 153.28 ▲84.49 |
Media Library /wp-admin/upload.php | 1,433 ▲33 | 4.34 ▲0.10 | 107.44 ▲8.69 | 79.99 ▲32.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/ody-events/events_widget.php+9
Methods with the same name as their class will not be constructors in a future version of PHP; odyCalendar has a deprecated constructor
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/ody-events/remove_event_dates.php
- > /wp-content/plugins/ody-events/getmonth.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/ody-events/ody_events.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_shortlink() in wp-content/plugins/ody-events/events_form.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/ody-events/ody_events.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ody-events/events_widget.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ody-events/admin_icons.php:23
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== ody-events ===
)
ody-events/ody_events.php 92% from 13 tests
"Ody Events" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("ody-events.php" instead of "ody_events.php")
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
Good job! No executable or dangerous file extensions detected1,523 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 67 | 23 | 831 |
CSS | 2 | 32 | 42 | 375 |
PO File | 1 | 101 | 130 | 219 |
JavaScript | 1 | 28 | 12 | 98 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
19 PNG files occupy 0.12MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/ui-overcast/images/ui-bg_flat_55_eeeeee_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
css/ui-overcast/images/ui-icons_fbc856_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/ui-overcast/images/ui-bg_glass_100_f8f8f8_1x400.png | 0.10KB | 0.11KB | 0.00% |
images/icon.png | 0.76KB | 0.79KB | 0.00% |
css/ui-overcast/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |