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.07MB] [CPU: ▼4.11ms] Passed 4 tests
Analyzing server-side resources used by 8 Degree Availability Calendar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 43.45 ▲4.15 |
Dashboard /wp-admin | 3.37 ▲0.07 | 46.95 ▼0.57 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 48.31 ▼3.96 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 92.75 ▼11.31 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.61 ▼0.61 |
Server storage [IO: ▲1.44MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 47 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_edac_widget |
db_upgraded |
edac_settings |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for 8 Degree Availability Calendar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,913 ▲178 | 14.85 ▲0.48 | 15.95 ▲14.29 | 42.40 ▲0.47 |
Dashboard /wp-admin | 2,224 ▲36 | 4.87 ▼0.01 | 106.79 ▼7.20 | 43.88 ▲3.81 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.06 ▲0.09 | 39.98 ▼1.08 | 35.55 ▲0.33 |
Add New Post /wp-admin/post-new.php | 1,542 ▲22 | 23.31 ▲0.29 | 680.10 ▲9.33 | 54.31 ▲0.56 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.22 ▼0.01 | 93.30 ▼23.86 | 42.34 ▼5.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-posts
- theysaidso_admin_options
- edac_settings
- can_compress_scripts
- widget_theysaidso_widget
- widget_edac_widget
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 6× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/8-degree-availability-calendar/inc/backend/widget.php
- > /wp-content/plugins/8-degree-availability-calendar/inc/backend/blocks/calendar.php
- > /wp-content/plugins/8-degree-availability-calendar/inc/backend/save-settings.php
- > /wp-content/plugins/8-degree-availability-calendar/inc/frontend/shortcode.php
- > /wp-content/plugins/8-degree-availability-calendar/inc/backend/blocks/settings.php
- > /wp-content/plugins/8-degree-availability-calendar/8degree-availability-calendar.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/8-degree-availability-calendar/inc/backend/blocks/how-to-use.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/8-degree-availability-calendar/inc/backend/settings-page.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/8-degree-availability-calendar/inc/backend/blocks/about.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
9 plugin tags: check availability calendar, appointment calendar, calendar, availability, availability calendar...
8-degree-availability-calendar/8degree-availability-calendar.php 85% from 13 tests
The entry point to "8 Degree Availability Calendar" version 1.1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("8-degree-availability-calendar.php" instead of "8degree-availability-calendar.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin7,398 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 109 | 358 | 3,748 |
CSS | 5 | 170 | 129 | 2,582 |
SVG | 1 | 0 | 0 | 565 |
PHP | 10 | 48 | 149 | 503 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
14 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/backend/images/ui-bg_flat_10_000000_40x100.png | 0.20KB | 0.08KB | ▼ 57.56% |
css/backend/images/ui-bg_highlight-soft_100_eeeeee_1x100.png | 0.27KB | 0.14KB | ▼ 47.84% |
css/backend/images/ui-bg_glass_100_fdf5ce_1x400.png | 0.34KB | 0.16KB | ▼ 54.02% |
css/backend/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |
css/backend/images/ui-bg_diagonals-thick_20_666666_40x40.png | 0.30KB | 0.15KB | ▼ 49.68% |