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.14MB] [CPU: ▼7.54ms] Passed 4 tests
A check of server-side resources used by Smooth Calendar
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 39.62 ▲3.50 |
Dashboard /wp-admin | 3.44 ▲0.09 | 44.36 ▼18.26 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 48.29 ▲6.01 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 82.23 ▼15.74 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 38.40 ▲0.33 |
Events /wp-admin/edit.php?post_type=calendar | 3.40 | 34.31 |
Add New Event /wp-admin/post-new.php?post_type=calendar | 3.48 | 46.65 |
Settings /wp-admin/edit.php?post_type=calendar&page=smooth-calendar-settings | 3.33 | 31.10 |
Server storage [IO: ▲0.79MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Smooth Calendar
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,941 ▲195 | 13.80 ▼0.55 | 5.53 ▲3.82 | 46.62 ▲5.64 |
Dashboard /wp-admin | 2,258 ▲73 | 5.11 ▲0.21 | 110.48 ▲5.54 | 39.74 ▼4.66 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.31 ▲0.30 | 39.93 ▲3.63 | 39.20 ▲3.80 |
Add New Post /wp-admin/post-new.php | 1,560 ▲18 | 23.70 ▲5.62 | 680.95 ▲29.59 | 37.75 ▼18.28 |
Media Library /wp-admin/upload.php | 1,444 ▲53 | 4.34 ▲0.12 | 89.12 ▼8.41 | 44.07 ▲2.87 |
Events /wp-admin/edit.php?post_type=calendar | 1,094 | 2.27 | 33.39 | 28.62 |
Add New Event /wp-admin/post-new.php?post_type=calendar | 2,277 | 7.39 | 145.19 | 66.40 |
Settings /wp-admin/edit.php?post_type=calendar&page=smooth-calendar-settings | 1,222 | 2.49 | 51.40 | 28.72 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/smooth-calendar/admin/partials/smooth-calendar-admin-display.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/smooth-calendar/public/single-calendar.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/smooth-calendar/admin/partials/smooth-calendar-admin-display-metabox.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/smooth-calendar/admin/partials/smooth-calendar-admin-options.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== smooth-calendar ===
)
smooth-calendar/smooth-calendar.php Passed 13 tests
Analyzing the main PHP file in "Smooth Calendar" version 1.2.1
47 characters long description:
A simple and flexible WordPress calendar plugin
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
There were no executable files found in this plugin1,082 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 194 | 645 | 562 |
CSS | 2 | 47 | 28 | 297 |
JavaScript | 2 | 51 | 22 | 186 |
Markdown | 1 | 24 | 0 | 37 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 3.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 2 | 5.41% |
▷ Public methods | 32 | 86.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.51% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
18 compressed PNG files occupy 0.70MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/desktop-default.png | 39.95KB | 37.54KB | ▼ 6.05% |
assets/banner-772x250.png | 2.16KB | 1.13KB | ▼ 47.60% |
public/images/desktop.png | 58.83KB | 59.26KB | 0.00% |
public/images/dashboard.png | 86.21KB | 88.44KB | 0.00% |
assets/mobile-default.png | 14.32KB | 14.35KB | 0.00% |