Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.39ms] Passed 4 tests
Analyzing server-side resources used by Advent Calendar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.40 ▼2.85 |
Dashboard /wp-admin | 3.37 ▲0.07 | 52.90 ▼6.24 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 46.98 ▼1.54 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 88.11 ▼2.91 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.27 ▼0.11 |
Bulk creation /wp-admin/edit.php?post_type=acal_entry&page=acal-creation-tool | 3.26 | 31.71 |
Advent calendar entries /wp-admin/edit.php?post_type=acal_entry | 3.33 | 37.53 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Advent Calendar: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲97 | 13.32 ▼0.82 | 3.94 ▲2.13 | 39.46 ▼5.10 |
Dashboard /wp-admin | 2,230 ▲48 | 5.83 ▲0.93 | 99.35 ▼11.72 | 39.17 ▼5.95 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.06 ▲0.05 | 33.55 ▼1.70 | 35.23 ▼0.58 |
Add New Post /wp-admin/post-new.php | 1,556 ▲14 | 23.48 ▲5.08 | 684.26 ▲88.42 | 61.66 ▲2.28 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.28 ▲0.08 | 97.16 ▲2.36 | 44.31 ▲1.04 |
Bulk creation /wp-admin/edit.php?post_type=acal_entry&page=acal-creation-tool | 794 | 2.06 | 24.97 | 26.33 |
Advent calendar entries /wp-admin/edit.php?post_type=acal_entry | 1,080 | 1.98 | 31.85 | 28.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
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
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/advent-calender/admin/views/bulk-creation-footer.php
- 8× PHP files trigger errors when accessed directly with GET requests:
- > 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 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 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
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 esc_html_e() in wp-content/plugins/advent-calender/admin/views/bulk-creation-header.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
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: calendar, advent, christmas, flexible
advent-calender/advent-calendar.php 85% from 13 tests
The main PHP script in "Advent Calendar" version 1.0.4 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advent-calender.php" instead of "advent-calendar.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin401 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
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues 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
There are no PNG files in this plugin