Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.37MB] [CPU: ▼3.63ms] Passed 4 tests
An overview of server-side resources used by WP iCal Availability
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.39 | 39.60 ▼1.36 |
Dashboard /wp-admin | 3.68 ▲0.33 | 49.69 ▼9.77 |
Posts /wp-admin/edit.php | 3.79 ▲0.44 | 49.70 ▲5.60 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.37 | 83.83 ▼7.15 |
Media Library /wp-admin/upload.php | 3.60 ▲0.37 | 39.02 ▲3.78 |
Calendars /wp-admin/admin.php?page=wp-ical-availability | 3.57 | 33.24 |
Settings /wp-admin/admin.php?page=wp-ical-availability-settings | 3.58 | 36.25 |
Server storage [IO: ▲0.82MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 312 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_wpia_calendars |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_wpia_widget |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP iCal Availability
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,978 ▲232 | 14.39 ▼0.34 | 1.67 ▲0.06 | 41.47 ▼1.75 |
Dashboard /wp-admin | 2,344 ▲164 | 4.92 ▼0.75 | 89.60 ▼3.26 | 85.01 ▲45.43 |
Posts /wp-admin/edit.php | 2,263 ▲166 | 2.33 ▲0.38 | 36.57 ▼2.78 | 31.37 ▼3.77 |
Add New Post /wp-admin/post-new.php | 1,685 ▲150 | 23.41 ▲5.07 | 589.52 ▼79.70 | 98.16 ▲17.11 |
Media Library /wp-admin/upload.php | 1,553 ▲156 | 4.48 ▲0.26 | 92.71 ▼8.67 | 97.10 ▲52.21 |
Calendars /wp-admin/admin.php?page=wp-ical-availability | 1,046 | 2.04 | 25.32 | 35.33 |
Settings /wp-admin/admin.php?page=wp-ical-availability-settings | 1,203 | 2.07 | 29.97 | 35.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_wpia_calendars
- Zombie WordPress options were found after uninstall: 7 options
- widget_wpia_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-ical-availability/views/calendar/full-version.php
- 14× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-ical-availability/views/calendar/calendars.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-ical-availability/include/pluginShortcodeButton.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-ical-availability/views/settings/settings.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-ical-availability/include/createTables.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-ical-availability/views/calendar/edit-calendar.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/wp-ical-availability/controllers/calendar/calendar-save.php:5
- > PHP Warning
require_once(ABSPATHwp-load.php): failed to open stream: No such file or directory in wp-content/plugins/wp-ical-availability/controllers/calendar/calendar-delete.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-load.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-ical-availability/controllers/calendar/calendar-delete.php on line 2
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/wp-ical-availability/views/calendar/calendars.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function update_site_option() in wp-content/plugins/wp-ical-availability/controllers/settings/save-settings.php:12
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add an image for screenshot #1 (The calendar in a sidebar as a widget)
wp-ical-availability/wp-ical-availability.php Passed 13 tests
"WP iCal Availability" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
20 characters long description:
WP iCal Availability
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 plugin2,945 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 419 | 226 | 2,226 |
JavaScript | 5 | 61 | 11 | 259 |
PO File | 1 | 111 | 222 | 241 |
CSS | 3 | 104 | 1 | 219 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 77.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 146.00 |
Average method complexity | 5.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.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 | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 37 | |
▷ Named functions | 31 | 83.78% |
▷ Anonymous functions | 6 | 16.22% |
Constants | 3 | |
▷ Global constants | 3 | 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
277 compressed PNG files occupy 0.22MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/flags/ir.png | 0.50KB | 0.68KB | 0.00% |
images/flags/tm.png | 0.58KB | 0.67KB | 0.00% |
images/flags/cf.png | 0.60KB | 0.72KB | 0.00% |
images/flags/mu.png | 0.48KB | 0.73KB | 0.00% |
images/flags/de.png | 0.53KB | 0.72KB | 0.00% |