Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- This plugin did not install gracefully
- > Parse error in wp-content/plugins/bhutanese-calendar/bhutanesecalendar.php+346
syntax error, unexpected '}', expecting end of file
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.19ms] Passed 4 tests
An overview of server-side resources used by Bhutanese Calendar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.95 ▼2.91 |
Dashboard /wp-admin | 3.31 ▲0.00 | 50.31 ▲5.28 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.64 ▼0.46 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.23 ▼9.77 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.69 ▲0.37 |
Server storage [IO: ▲8.78MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Bhutanese Calendar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.34 ▲0.08 | 1.57 ▼0.08 | 42.61 ▲1.30 |
Dashboard /wp-admin | 2,192 ▲15 | 5.49 ▼0.19 | 82.25 ▼9.01 | 37.85 ▼2.29 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.97 ▲0.02 | 34.02 ▼2.78 | 36.92 ▲6.33 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.25 ▲0.22 | 635.13 ▼15.71 | 56.68 ▲1.24 |
Media Library /wp-admin/upload.php | 1,394 ▼3 | 4.18 ▲0.01 | 95.83 ▼10.39 | 41.97 ▼3.16 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 34× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bhutanese-calendar/trunk/admin/admin.php:10
- > PHP Notice
Undefined variable: bt_month in wp-content/plugins/bhutanese-calendar/includes/dzongkha_month.php on line 2
- > PHP Notice
Undefined variable: bt_date in wp-content/plugins/bhutanese-calendar/includes/dzongkha_dates.php on line 2
- > PHP Notice
Undefined offset: 1 in wp-content/plugins/bhutanese-calendar/includes/dzongkha_year.php on line 60
- > PHP Notice
Undefined variable: bt_secondyear in wp-content/plugins/bhutanese-calendar/includes/dzongkha_year.php on line 34
- > PHP Notice
Undefined offset: 2 in wp-content/plugins/bhutanese-calendar/trunk/includes/dzongkha_year.php on line 46
- > PHP Notice
Undefined variable: bt_month in wp-content/plugins/bhutanese-calendar/trunk/includes/dzongkha_month.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bhutanese-calendar/widget/widget.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bhutanese-calendar/trunk/shortcode/shortcode.php:12
- > PHP Notice
Undefined variable: bt_secondyear in wp-content/plugins/bhutanese-calendar/trunk/includes/dzongkha_year.php on line 34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: bhutan calendar, bhutanese calendar
bhutanese-calendar/bhutanesecalendar.php 92% from 13 tests
Analyzing the main PHP file in "Bhutanese Calendar" version 1.1
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bhutanese-calendar.php" instead of "bhutanesecalendar.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin2,047 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 141 | 37 | 832 |
PHP | 8 | 106 | 117 | 782 |
SVG | 1 | 0 | 0 | 245 |
CSS | 1 | 19 | 47 | 179 |
HTML | 1 | 3 | 0 | 9 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ 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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 24 | |
▷ Named functions | 24 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/js/jscolor/hs.png | 2.62KB | 7.54KB | 0.00% |
trunk/admin/js/jscolor/hs.png | 2.62KB | 7.54KB | 0.00% |
admin/js/jscolor/hv.png | 2.80KB | 7.32KB | 0.00% |
trunk/admin/js/jscolor/hv.png | 2.80KB | 7.32KB | 0.00% |