Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.39MB] [CPU: ▲6.62ms] Passed 4 tests
Server-side resources used by The Holiday Calendar
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.42 | 48.52 ▲3.55 |
Dashboard /wp-admin | 3.73 ▲0.43 | 57.40 ▲11.43 |
Posts /wp-admin/edit.php | 3.77 ▲0.41 | 60.89 ▲11.46 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.36 | 104.13 ▲4.32 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 45.89 ▲7.16 |
Add New /wp-admin/post-new.php?post_type=thc-events | 3.77 | 58.68 |
Events /wp-admin/edit.php?post_type=thc-events | 3.68 | 45.08 |
Settings /wp-admin/edit.php?post_type=thc-events&page=events | 3.56 | 40.67 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 46 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
thc_settings |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_the_holiday_calendar |
Browser metrics Passed 4 tests
Checking browser requirements for The Holiday Calendar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,940 ▲205 | 13.55 ▼0.83 | 6.33 ▲4.17 | 39.60 ▼0.44 |
Dashboard /wp-admin | 2,240 ▲52 | 5.88 ▲0.03 | 105.79 ▼10.99 | 42.08 ▼8.54 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.01 ▼0.04 | 39.61 ▼0.26 | 35.06 ▼6.87 |
Add New Post /wp-admin/post-new.php | 1,539 ▲3 | 22.66 ▲1.44 | 614.22 ▼77.04 | 55.50 ▼8.33 |
Media Library /wp-admin/upload.php | 1,416 ▲34 | 4.17 ▼0.03 | 96.95 ▼10.17 | 45.54 ▲0.81 |
Add New /wp-admin/post-new.php?post_type=thc-events | 2,273 | 7.84 | 188.93 | 74.08 |
Events /wp-admin/edit.php?post_type=thc-events | 1,124 | 1.96 | 32.47 | 32.43 |
Settings /wp-admin/edit.php?post_type=thc-events&page=events | 918 | 2.03 | 24.07 | 36.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-comments
- widget_the_holiday_calendar
- theysaidso_admin_options
- thc_settings
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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 fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'thc_helper' not found in wp-content/plugins/the-holiday-calendar/posts/views/page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/the-holiday-calendar/the-holiday-calendar.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_content() in wp-content/plugins/the-holiday-calendar/posts/views/dayView.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 24 tag instead of maximum 10
the-holiday-calendar/the-holiday-calendar.php Passed 13 tests
"The Holiday Calendar" version 1.18.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
28 characters long description:
Shows the upcoming holidays.
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
There were no executable files found in this plugin2,854 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 377 | 135 | 1,669 |
PO File | 8 | 429 | 434 | 1,025 |
CSS | 2 | 34 | 4 | 160 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 103 | |
▷ Static methods | 82 | 79.61% |
▷ Public methods | 103 | 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 | 25 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 25 | 100.00% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin