Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼295.93ms] Passed 4 tests
An overview of server-side resources used by Advent Calendar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.09 | 53.22 ▼0.16 |
Dashboard /wp-admin | 3.48 ▲0.07 | 40.18 ▲8.05 |
Posts /wp-admin/edit.php | 3.71 ▲0.07 | 38.79 ▼0.19 |
Add New Post /wp-admin/post-new.php | 6.94 ▼0.03 | 94.23 ▼1,186.36 |
Media Library /wp-admin/upload.php | 3.36 ▲0.06 | 26.62 ▲3.01 |
Advent calendar entries /wp-admin/edit.php?post_type=acal_entry | 3.45 | 26.68 |
Bulk creation /wp-admin/edit.php?post_type=acal_entry&page=acal-creation-tool | 3.33 | 23.41 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Advent Calendar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,804 ▲50 | 15.91 ▲0.36 | 6.71 ▲0.26 | 2.39 ▼0.17 |
Dashboard /wp-admin | 2,927 ▲76 | 6.13 ▼0.04 | 117.20 ▼15.41 | 157.82 ▲0.62 |
Posts /wp-admin/edit.php | 2,726 ▲32 | 3.24 ▲0.00 | 66.74 ▲4.20 | 139.29 ▼0.47 |
Add New Post /wp-admin/post-new.php | 1,783 ▲115 | 16.94 ▼1.55 | 410.89 ▲3.93 | 159.05 ▲0.01 |
Media Library /wp-admin/upload.php | 1,736 ▲35 | 5.52 ▲0.03 | 134.54 ▼9.60 | 184.50 ▼0.01 |
Advent calendar entries /wp-admin/edit.php?post_type=acal_entry | 1,399 | 3.16 | 60.25 | 113.21 |
Bulk creation /wp-admin/edit.php?post_type=acal_entry&page=acal-creation-tool | 1,024 | 2.39 | 53.28 | 99.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
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
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/advent-calender/admin/views/bulk-creation-footer.php
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_permalink() in wp-content/plugins/advent-calender/public/views/shortcode-entry-published.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/advent-calender/admin/views/bulk-creation-message.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/advent-calender/admin/views/bulk-creation-header.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/advent-calender/public/views/single-advent-calendar-entry-custom.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_date() in wp-content/plugins/advent-calender/public/views/shortcode-entry-future.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/advent-calender/public/views/single-advent-calendar-entry.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/advent-calender/admin/views/admin.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/advent-calender/admin/views/bulk-creation-form.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: flexible, advent, calendar, christmas
advent-calender/advent-calendar.php 85% from 13 tests
The entry point to "Advent Calendar" version 1.0.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("advent-calender.php" instead of "advent-calendar.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected401 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 145 | 392 | 381 |
CSS | 1 | 2 | 0 | 20 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 7 | 36.84% |
▷ Public methods | 14 | 73.68% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 26.32% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin