Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼288.80ms] 75% from 4 tests
An overview of server-side resources used by amr ical events lists
It is recommended to improve the following
- CPU: The total CPU usage must kept under 500.00ms (currently 1,404.13ms on /wp-admin/admin.php?page=add-ons)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.10 | 57.91 ▲5.18 |
Dashboard /wp-admin | 3.46 ▲0.06 | 34.44 ▲0.91 |
Posts /wp-admin/edit.php | 3.69 ▲0.05 | 39.61 ▲5.46 |
Add New Post /wp-admin/post-new.php | 6.93 ▼0.04 | 96.20 ▼1,153.42 |
Media Library /wp-admin/upload.php | 3.34 ▲0.04 | 24.36 ▼7.86 |
iCal Events List /wp-admin/admin.php?page=manage_amr_ical | 3.56 | 26.72 |
+ updates /wp-admin/admin.php?page=amr_events_updates_page | 3.31 | 23.02 |
Add ons /wp-admin/admin.php?page=add-ons | 3.34 | 1,404.13 |
List types /wp-admin/admin.php?page=manage_event_listing | 3.57 | 26.82 |
Fields for lists /wp-admin/admin.php?page=manage_event_fields | 3.79 | 23.79 |
Server storage [IO: ▲2.40MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 197 new files
Database: no new tables, 2 new options
New WordPress options |
---|
widget_amr_icalendar_widget |
widget_amr-ical-upe |
Browser metrics Passed 4 tests
An overview of browser requirements for amr ical events lists
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,943 ▲221 | 16.22 ▲0.14 | 8.64 ▲3.04 | 2.07 ▼0.36 |
Dashboard /wp-admin | 2,937 ▲76 | 6.18 ▼0.08 | 116.33 ▼15.14 | 157.04 ▲1.22 |
Posts /wp-admin/edit.php | 2,741 ▲50 | 3.24 ▲0.02 | 62.22 ▲0.38 | 137.15 ▼3.71 |
Add New Post /wp-admin/post-new.php | 1,791 ▲33 | 17.68 ▼3.56 | 416.43 ▼16.39 | 158.66 ▼0.09 |
Media Library /wp-admin/upload.php | 1,749 ▲51 | 5.54 ▼0.02 | 138.91 ▼5.45 | 187.00 ▲2.42 |
iCal Events List /wp-admin/admin.php?page=manage_amr_ical | 1,483 | 2.53 | 55.40 | 143.91 |
+ updates /wp-admin/admin.php?page=amr_events_updates_page | 1,027 | 2.45 | 52.17 | 103.30 |
Add ons /wp-admin/admin.php?page=add-ons | 1,191 | 2.63 | 59.09 | 125.17 |
List types /wp-admin/admin.php?page=manage_event_listing | 1,641 | 2.54 | 54.90 | 166.99 |
Fields for lists /wp-admin/admin.php?page=manage_event_fields | 1,657 | 2.51 | 54.99 | 135.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Warning in wp-admin/includes/file.php+148
opendir(wp-content/uploads/ical-events-cache/): failed to open dir: No such file or directory
- Zombie WordPress options detected upon uninstall: 2 options
- widget_amr-ical-upe
- widget_amr_icalendar_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)
Good news, no errors were detected
SRP 50% 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 items
- 12× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function amr_set_defaults_for_datetime() in wp-content/plugins/amr-ical-events-list/includes/amr-ical-events-list-main.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/amr-ical-events-list/includes/functions-examples.php:12
- > PHP Warning
Use of undefined constant AMR_PHPVERSION_REQUIRED - assumed 'AMR_PHPVERSION_REQUIRED' (this will throw an Error in a future version of PHP) in wp-content/plugins/amr-ical-events-list/includes/amr-ical-events-list-main.php on line 7
- > PHP Notice
Undefined variable: where_am_i in wp-content/plugins/amr-ical-events-list/amr-ical-custom-style-file-example.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/amr-ical-events-list/includes/timezones/amr-windows-zones.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/amr-ical-events-list/amr-ical-events-list.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amr-ical-events-list/includes/amr-ical-post-type.php:75
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/amr-ical-events-list/includes/amr-upcoming-events-widget.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/amr-ical-events-list/includes/timezones/amr-windows-zones.php:21
- > PHP Fatal error
Uncaught Error: Class 'amrical_plugin_admin' not found in wp-content/plugins/amr-ical-events-list/includes/amr-ical-list-admin.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Too many tags (30 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Add an image for screenshot #10 (Just for fun - Multiple Groupings (unstyled here, but with styling tags, so imagine what you could do ))
amr-ical-events-list/amr-ical-events-list.php 92% from 13 tests
"amr ical events lists" version 6.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 472 characters long)
Code Analysis Passed 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 plugin28,132 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 16 | 7,617 | 15,536 | 16,974 |
PHP | 26 | 1,829 | 1,615 | 10,279 |
CSS | 8 | 107 | 125 | 841 |
JavaScript | 1 | 11 | 5 | 32 |
HTML | 2 | 0 | 0 | 6 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 19.60 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 36 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 7.69% |
Functions | 349 | |
▷ Named functions | 347 | 99.43% |
▷ Anonymous functions | 2 | 0.57% |
Constants | 36 | |
▷ Global constants | 36 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
114 PNG files occupy 0.20MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/addtogoogle_16.png | 0.93KB | 0.97KB | 0.00% |
images/email_16.png | 0.59KB | 0.44KB | ▼ 26.64% |
(invalid) images/extras/feed.png | 0.71KB | 0.00KB | ▼ 100.00% |
images/information.png | 0.76KB | 0.83KB | 0.00% |
images/accept_16.png | 0.70KB | 0.69KB | 0.14% |