Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/wp-time-slots-availability-calendar/php/widget.php+8
Methods with the same name as their class will not be constructors in a future version of PHP; tsa_widget has a deprecated constructor
Server metrics [RAM: ▼0.09MB] [CPU: ▼150.40ms] Passed 4 tests
Analyzing server-side resources used by WP Time Slots
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.02 | 36.92 ▲7.99 |
Dashboard /wp-admin | 3.08 ▲0.03 | 35.97 ▼13.50 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 45.77 ▲1.08 |
Add New Post /wp-admin/post-new.php | 4.99 ▼0.44 | 74.48 ▼587.06 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 34.62 ▼2.10 |
Add New /wp-admin/admin.php?page=wp-time-slots-add-new | 3.06 | 28.51 |
Settings /wp-admin/admin.php?page=wp-time-slots-settings | 3.03 | 28.84 |
Calendars /wp-admin/admin.php?page=wp-time-slots | 3.04 | 29.70 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_tsa_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WP Time Slots
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,840 ▲234 | 16.20 ▲0.61 | 13.81 ▲4.88 | 45.82 ▲1.44 |
Dashboard /wp-admin | 3,015 ▲81 | 5.92 ▼0.03 | 144.91 ▼12.02 | 106.69 ▼1.96 |
Posts /wp-admin/edit.php | 2,784 ▲45 | 2.72 ▲0.00 | 68.36 ▼4.92 | 90.19 ▲0.41 |
Add New Post /wp-admin/post-new.php | 1,746 ▼2,050 | 21.05 ▲5.59 | 350.33 ▼135.74 | 112.05 ▲4.35 |
Media Library /wp-admin/upload.php | 1,852 ▲45 | 5.07 ▲0.03 | 154.17 ▼9.42 | 125.46 ▲3.78 |
Add New /wp-admin/admin.php?page=wp-time-slots-add-new | 1,502 | 2.21 | 61.91 | 81.78 |
Settings /wp-admin/admin.php?page=wp-time-slots-settings | 1,090 | 2.09 | 58.26 | 71.21 |
Calendars /wp-admin/admin.php?page=wp-time-slots | 1,132 | 2.24 | 60.27 | 69.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 1 option in the database
- widget_tsa_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
- 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-time-slots-availability-calendar/views/edit-calendar.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-time-slots-availability-calendar/php/widget.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-time-slots-availability-calendar/views/calendar-settings.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-time-slots-availability-calendar/php/add-calendar.php:8
- > PHP Notice
Undefined index: calendarString in wp-content/plugins/wp-time-slots-availability-calendar/php/save-calendar.php on line 8
- > PHP Notice
Undefined variable: currentTimestamp in wp-content/plugins/wp-time-slots-availability-calendar/php/show-calendar.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-time-slots-availability-calendar/views/add-calendar.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-time-slots-availability-calendar/php/delete-calendar.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-time-slots-availability-calendar/php/save-calendar.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-time-slots-availability-calendar/views/calendar-list.php:16
- > PHP Fatal error
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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (How it looks on your site), #2 (How it looks in your WordPress admin panel)
wp-time-slots-availability-calendar/wp-time-slots-availability-calendar.php Passed 13 tests
The entry point to "WP Time Slots" version 1.4 is a PHP file that has certain tags in its header comment area
50 characters long description:
WP Time Slots Availability Calendar - Free version
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
Everything looks great! No dangerous files found in this plugin917 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 121 | 63 | 630 |
JavaScript | 2 | 49 | 10 | 150 |
PO File | 1 | 42 | 44 | 102 |
CSS | 2 | 16 | 0 | 35 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/tsa-right.png | 1.06KB | 0.26KB | ▼ 75.53% |
images/tsa-left.png | 1.06KB | 0.26KB | ▼ 75.87% |