Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.65MB] [CPU: ▲2.02ms] Passed 4 tests
Server-side resources used by ICS Calendar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.15 ▲0.69 | 42.91 ▲8.91 |
Dashboard /wp-admin | 3.98 ▲0.68 | 53.83 ▲4.41 |
Posts /wp-admin/edit.php | 4.03 ▲0.68 | 51.96 ▲5.75 |
Add New Post /wp-admin/post-new.php | 6.52 ▲0.63 | 88.40 ▼7.31 |
Media Library /wp-admin/upload.php | 3.84 ▲0.61 | 38.18 ▲5.24 |
Server storage [IO: ▲2.56MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 129 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
r34ics_transients_expiration |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
r34ics_use_new_defaults_10_6 |
r34ics_version |
db_upgraded |
Browser metrics Passed 4 tests
ICS Calendar: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,983 ▲221 | 13.42 ▼0.72 | 8.23 ▲6.61 | 37.84 ▼0.42 |
Dashboard /wp-admin | 2,256 ▲79 | 5.65 ▼0.03 | 93.24 ▼5.65 | 41.81 ▼6.42 |
Posts /wp-admin/edit.php | 2,340 ▲237 | 2.05 ▲0.11 | 41.00 ▲0.54 | 34.57 ▼2.82 |
Add New Post /wp-admin/post-new.php | 1,744 ▲213 | 23.31 ▲0.35 | 650.87 ▲26.13 | 53.48 ▲7.45 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.25 ▲0.09 | 95.63 ▼0.12 | 41.62 ▼1.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 9 options in the database
- r34ics_version
- r34ics_use_new_defaults_10_6
- r34ics_transients_expiration
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ics-calendar/templates/admin/utilities.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ics-calendar/templates/admin/add-calendar.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ics-calendar/templates/admin/admin-options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ics-calendar/r34ics-ajax.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/ics-calendar/templates/admin/add-calendar-button.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ics-calendar/templates/admin/sidebar.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_page_title() in wp-content/plugins/ics-calendar/templates/admin/admin.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ics-calendar/functions.php:1328
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% 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
These attributes need your attention:
- Tags: Please delete some tags, you are using 21 tag instead of maximum 10
ics-calendar/ics-calendar.php 85% from 13 tests
"ICS Calendar" version 10.13.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 156 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin25,780 lines of code in 79 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 39 | 4,837 | 8,275 | 16,723 |
PHP | 19 | 1,571 | 2,503 | 7,176 |
CSS | 5 | 184 | 38 | 958 |
JavaScript | 4 | 52 | 101 | 516 |
Markdown | 2 | 101 | 0 | 397 |
SVG | 10 | 0 | 0 | 10 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 102)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 226.20 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 448.00 |
Average method complexity | 7.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 102.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 154 | |
▷ Static methods | 3 | 1.95% |
▷ Public methods | 84 | 54.55% |
▷ Protected methods | 68 | 44.16% |
▷ Private methods | 2 | 1.30% |
Functions | 93 | |
▷ Named functions | 72 | 77.42% |
▷ Anonymous functions | 21 | 22.58% |
Constants | 23 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 23 | 100.00% |
▷ Public constants | 23 | 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
There are no PNG files in this plugin