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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼303.75ms] Passed 4 tests
Analyzing server-side resources used by Click4Time Calendar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.05 | 61.68 ▲4.24 |
Dashboard /wp-admin | 3.43 ▲0.02 | 34.80 ▲0.76 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 41.31 ▼3.17 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 98.95 ▼1,202.66 |
Media Library /wp-admin/upload.php | 3.31 ▲0.02 | 28.23 ▼9.93 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 43 new files
Database: 1 new table, no new options
New tables |
---|
wp_c4t_calendar |
Browser metrics Passed 4 tests
A check of browser resources used by Click4Time Calendar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,791 ▲37 | 15.99 ▲0.20 | 6.80 ▲1.14 | 2.36 ▼0.48 |
Dashboard /wp-admin | 2,891 ▲37 | 6.12 ▼0.03 | 125.16 ▼14.77 | 215.29 ▲33.53 |
Posts /wp-admin/edit.php | 2,708 ▲23 | 3.24 ▲0.01 | 63.70 ▼0.14 | 139.92 ▼0.88 |
Add New Post /wp-admin/post-new.php | 1,674 ▼78 | 15.65 ▼5.28 | 405.23 ▼63.73 | 162.91 ▼10.19 |
Media Library /wp-admin/upload.php | 1,721 ▲26 | 5.60 ▲0.08 | 151.18 ▲9.35 | 219.91 ▲25.29 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_c4t_calendar
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
Please take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/appointment-booking-calendar-by-click4time/book_now.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/appointment-booking-calendar-by-click4time/click4time.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: calendar, calendars, appointment booking, click4time, dates...
appointment-booking-calendar-by-click4time/book_now.php 92% from 13 tests
"Click4Time Calendar" version 2.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("appointment-booking-calendar-by-click4time.php" instead of "book_now.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected254 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 21 | 36 | 254 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 8.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
36 PNG files occupy 0.25MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/buttons/small_green.png | 2.82KB | 1.86KB | ▼ 34.10% |
images/buttons/large_red.png | 13.42KB | 5.95KB | ▼ 55.66% |
images/buttons/small_wood.png | 5.59KB | 2.99KB | ▼ 46.52% |
images/buttons/large_wood.png | 19.54KB | 8.53KB | ▼ 56.33% |
images/buttons/small_purple.png | 3.86KB | 2.47KB | ▼ 36.02% |