Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.45MB] [CPU: ▲0.87ms] Passed 4 tests
Server-side resources used by Pronamic Events
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.40 | 43.86 ▲2.29 |
Dashboard /wp-admin | 3.80 ▲0.50 | 54.03 ▼1.34 |
Posts /wp-admin/edit.php | 3.87 ▲0.51 | 53.12 ▲1.95 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.46 | 100.76 ▲2.46 |
Media Library /wp-admin/upload.php | 3.66 ▲0.44 | 42.21 ▲0.57 |
Categories /wp-admin/edit-tags.php?taxonomy=pronamic_event_category&post_type=pronamic_event | 3.78 | 41.38 |
Add New /wp-admin/post-new.php?post_type=pronamic_event | 3.92 | 67.14 |
Settings /wp-admin/edit.php?post_type=pronamic_event&page=pronamic_events_settings | 3.69 | 45.12 |
All Events /wp-admin/edit.php?post_type=pronamic_event | 3.79 | 40.84 |
Statuses /wp-admin/edit-tags.php?taxonomy=pronamic_event_status&post_type=pronamic_event | 3.79 | 37.08 |
Server storage [IO: ▲0.91MB] [DB: ▲0.08MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 183 new files
Database: no new tables, 8 new options
New WordPress options |
---|
pronamic_events_db_version |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_pronamic_events_widget |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Pronamic 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,833 ▲72 | 14.34 ▼0.01 | 1.99 ▲0.36 | 40.70 ▼0.40 |
Dashboard /wp-admin | 2,236 ▲59 | 5.66 ▼0.00 | 93.81 ▲5.26 | 42.41 ▲6.79 |
Posts /wp-admin/edit.php | 2,138 ▲38 | 1.98 ▼0.01 | 40.20 ▲5.37 | 35.22 ▼3.75 |
Add New Post /wp-admin/post-new.php | 1,560 ▲31 | 22.97 ▼0.74 | 597.00 ▼24.62 | 60.73 ▲11.22 |
Media Library /wp-admin/upload.php | 1,444 ▲47 | 4.33 ▲0.15 | 96.19 ▼6.03 | 45.17 ▼1.61 |
Categories /wp-admin/edit-tags.php?taxonomy=pronamic_event_category&post_type=pronamic_event | 1,312 | 2.12 | 27.32 | 31.36 |
Add New /wp-admin/post-new.php?post_type=pronamic_event | 3,304 | 8.06 | 193.37 | 78.14 |
Settings /wp-admin/edit.php?post_type=pronamic_event&page=pronamic_events_settings | 941 | 1.90 | 29.80 | 33.30 |
All Events /wp-admin/edit.php?post_type=pronamic_event | 1,228 | 2.17 | 35.27 | 30.36 |
Statuses /wp-admin/edit-tags.php?taxonomy=pronamic_event_status&post_type=pronamic_event | 1,318 | 2.12 | 30.54 | 29.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_pronamic_events_widget
- pronamic_events_db_version
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/pronamic-events/vendor/sabre/vobject/bin/generateicalendardata.php
- 201× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
simplexml_load_string(): ion-social-network-icon fusion-tooltip fusion-facebook awb-icon-facebook" style in wp-content/plugins/pronamic-events/vendor/sabre/vobject/bin/fetch_windows_zones.php on line 11
- > PHP Warning
simplexml_load_string(): /https?:\\/\\/(?:www\\.)?youtu(?:\\.be\\/([^\\?]+)\\??|be\\.com\\/watch\\?(.*(?=v=))v=([^& in wp-content/plugins/pronamic-events/vendor/sabre/vobject/bin/fetch_windows_zones.php on line 11
- > PHP Warning
simplexml_load_string(): Entity: line 673: parser error : Specification mandates value for attribute required in wp-content/plugins/pronamic-events/vendor/sabre/vobject/bin/fetch_windows_zones.php on line 11
- > PHP Fatal error
Uncaught Error: Interface 'Sabre\\VObject\\Splitter\\SplitterInterface' not found in wp-content/plugins/pronamic-events/vendor/sabre/vobject/lib/Splitter/VCard.php:23
- > PHP Warning
simplexml_load_string(): Entity: line 865: parser error : Specification mandates value for attribute style in wp-content/plugins/pronamic-events/vendor/sabre/vobject/bin/fetch_windows_zones.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function flush_rewrite_rules() in wp-content/plugins/pronamic-events/admin/settings.php:5
- > PHP Warning
simplexml_load_string(): Entity: line 673: parser error : Couldn't find end of Start Tag input line 673 in wp-content/plugins/pronamic-events/vendor/sabre/vobject/bin/fetch_windows_zones.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'Sabre\\VObject\\Document' not found in wp-content/plugins/pronamic-events/vendor/sabre/vobject/lib/Component/VCard.php:18
- > PHP Warning
simplexml_load_string(): Entity: line 865: parser error : attributes construct error in wp-content/plugins/pronamic-events/vendor/sabre/vobject/bin/fetch_windows_zones.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'Sabre\\VObject\\Component' not found in wp-content/plugins/pronamic-events/vendor/sabre/vobject/lib/Component/Available.php:17
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: agenda, events, pronamic
pronamic-events/pronamic-events.php Passed 13 tests
The main PHP file in "Pronamic Events" ver. 1.3.0 adds more information about the plugin and also serves as the entry point for this plugin
60 characters long description:
This plugin add some basic Event functionality to WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin14,427 lines of code in 157 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 115 | 3,296 | 6,172 | 9,724 |
CSS | 27 | 96 | 326 | 2,697 |
PO File | 3 | 998 | 1,937 | 903 |
Markdown | 2 | 188 | 0 | 538 |
SQL | 8 | 28 | 55 | 377 |
JSON | 2 | 0 | 0 | 188 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 16.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 139.00 |
Average method complexity | 4.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 82 | |
▷ Abstract classes | 4 | 4.88% |
▷ Concrete classes | 78 | 95.12% |
▷ Final classes | 0 | 0.00% |
Methods | 437 | |
▷ Static methods | 23 | 5.26% |
▷ Public methods | 377 | 86.27% |
▷ Protected methods | 46 | 10.53% |
▷ Private methods | 14 | 3.20% |
Functions | 47 | |
▷ Named functions | 29 | 61.70% |
▷ Anonymous functions | 18 | 38.30% |
Constants | 25 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 25 | 100.00% |
▷ Public constants | 25 | 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
19 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/jquery-ui/themes/base/images/ui-icons_777620_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
assets/jquery-ui/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
assets/jquery-ui/themes/base/images/ui-icons_444444_256x240.png | 6.92KB | 4.18KB | ▼ 39.61% |
assets/jquery-ui/themes/base/images/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/jquery-ui/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |