Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/community-events/community-events.php+40
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.68MB] [CPU: ▲1.25ms] Passed 4 tests
An overview of server-side resources used by Community Events
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.14 ▲0.67 | 49.61 ▲7.12 |
Dashboard /wp-admin | 3.99 ▲0.69 | 54.25 ▲0.39 |
Posts /wp-admin/edit.php | 4.11 ▲0.75 | 57.71 ▲5.82 |
Add New Post /wp-admin/post-new.php | 6.57 ▲0.68 | 100.04 ▼1.72 |
Media Library /wp-admin/upload.php | 3.92 ▲0.68 | 39.07 ▲0.49 |
Events /wp-admin/admin.php?page=community-events-events | 3.91 | 37.39 |
Stylesheet /wp-admin/admin.php?page=community-events-stylesheet | 3.90 | 33.31 |
Community Events /wp-admin/admin.php?page=community-events | 3.90 | 37.91 |
Venues /wp-admin/admin.php?page=community-events-venues | 3.91 | 40.05 |
Event Types /wp-admin/admin.php?page=community-events-event-types | 3.91 | 35.61 |
Server storage [IO: ▲1.02MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 57 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_ce_category |
wp_ce_events |
wp_ce_venues |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
CE_PP |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Community Events: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,953 ▲192 | 13.57 ▼0.78 | 10.66 ▲8.85 | 44.00 ▼2.08 |
Dashboard /wp-admin | 2,218 ▲38 | 5.76 ▲0.14 | 90.00 ▼10.57 | 76.43 ▲34.09 |
Posts /wp-admin/edit.php | 2,141 ▲38 | 2.01 ▼0.03 | 37.50 ▲2.78 | 34.36 ▲0.97 |
Add New Post /wp-admin/post-new.php | 1,573 ▲47 | 23.00 ▼0.12 | 764.46 ▲106.69 | 53.62 ▼15.41 |
Media Library /wp-admin/upload.php | 1,441 ▲41 | 4.14 ▼0.02 | 105.83 ▼2.51 | 71.63 ▲26.25 |
Events /wp-admin/admin.php?page=community-events-events | 1,357 | 2.53 | 42.70 | 41.72 |
Stylesheet /wp-admin/admin.php?page=community-events-stylesheet | 978 | 2.21 | 37.39 | 34.73 |
Community Events /wp-admin/admin.php?page=community-events | 1,622 | 2.34 | 38.19 | 33.68 |
Venues /wp-admin/admin.php?page=community-events-venues | 1,219 | 2.30 | 39.90 | 32.61 |
Event Types /wp-admin/admin.php?page=community-events-event-types | 1,063 | 2.11 | 35.31 | 27.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie tables were found after uninstall: 3 tables
- wp_ce_venues
- wp_ce_events
- wp_ce_category
- Zombie WordPress options were found after uninstall: 7 options
- CE_PP
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/community-events/captcha/easycaptcha.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/community-events/community-events.php:26
- > 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)
Please take a look at the following user-side issues
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=community-events-event-types
- > Network (severe)
wp-admin/images/gray-grad.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (7-day Outlook Event Calendar), #2 (Full Listing Event Calendar), #3 (User event submission form)
community-events/community-events.php Passed 13 tests
"Community Events" version 1.4.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
59 characters long description:
A plugin used to manage events and display them in a widget
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin4,798 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 1,029 | 281 | 3,472 |
PO File | 2 | 402 | 525 | 866 |
CSS | 3 | 103 | 60 | 437 |
XML | 1 | 1 | 9 | 22 |
JavaScript | 1 | 0 | 20 | 1 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 124)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 250.33 |
▷ Minimum class complexity | 41.00 |
▷ Maximum class complexity | 637.00 |
Average method complexity | 11.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 124.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 74 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 18 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
23 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
icons/delete.png | 0.70KB | 0.72KB | 0.00% |
icons/calendar.png | 0.47KB | 0.57KB | 0.00% |
icons/resultset_first.png | 0.51KB | 0.52KB | 0.00% |
icons/resultset_previous.png | 0.38KB | 0.34KB | ▼ 9.25% |