Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼10.15ms] Passed 4 tests
A check of server-side resources used by CiviEvent Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 39.87 ▼1.36 |
Dashboard /wp-admin | 3.48 ▲0.14 | 46.81 ▼14.51 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 47.99 ▼0.56 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.18 | 86.10 ▼24.18 |
Media Library /wp-admin/upload.php | 3.40 ▲0.18 | 36.00 ▲4.02 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_civievent-widget |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_civievent-single-widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by CiviEvent Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.18 ▼1.22 | 1.73 ▼0.08 | 43.15 ▼0.85 |
Dashboard /wp-admin | 2,203 ▲12 | 5.82 ▲0.96 | 107.71 ▲5.53 | 39.23 ▼5.35 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▼0.00 | 39.15 ▼3.46 | 33.18 ▼3.64 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.62 ▲0.23 | 608.66 ▲6.61 | 46.40 ▼9.14 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.21 ▲0.03 | 93.69 ▼1.33 | 42.08 ▲0.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_civievent-widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_civievent-single-widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/civievent-widget/civievent-single-widget.php:67
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/civievent-widget/civievent-single-widget.php:67
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
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
6 plugin tags: event, events, crm, calendar, nonprofit...
civievent-widget/civievent-widget.php Passed 13 tests
The main file in "CiviEvent Widget" v. 3.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
71 characters long description:
The CiviEvent Widget plugin displays public CiviCRM events in a widget.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,040 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 87 | 252 | 711 |
JavaScript | 1 | 2 | 0 | 191 |
CSS | 2 | 27 | 0 | 138 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 65.50 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 111.00 |
Average method complexity | 9.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.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 | 16 | |
▷ Static methods | 6 | 37.50% |
▷ Public methods | 14 | 87.50% |
▷ Protected methods | 2 | 12.50% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin