Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.31MB] [CPU: ▼2.30ms] Passed 4 tests
Server-side resources used by Nepali Calendar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 39.79 ▲0.51 |
Dashboard /wp-admin | 3.64 ▲0.34 | 57.79 ▲6.80 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 51.80 ▼0.50 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 92.45 ▼8.70 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 38.02 ▼0.50 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 69 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
nepali_calendar_db_version |
widget_nepali_calendar_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
nepali_calendar_version |
widget_recent-comments |
nepali_calendar_admin_notices |
Browser metrics Passed 4 tests
A check of browser resources used by Nepali Calendar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,879 ▲144 | 13.78 ▼0.59 | 8.89 ▲7.24 | 45.58 ▲3.76 |
Dashboard /wp-admin | 2,195 ▲25 | 5.59 ▲0.05 | 86.02 ▼15.56 | 40.11 ▼4.64 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.04 | 36.93 ▲0.53 | 33.51 ▼5.08 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 18.02 ▼5.08 | 677.01 ▼11.85 | 75.00 ▲21.34 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.24 ▲0.11 | 98.09 ▼20.26 | 41.45 ▼9.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 10 options in the database
- nepali_calendar_version
- can_compress_scripts
- nepali_calendar_db_version
- db_upgraded
- widget_recent-posts
- nepali_calendar_admin_notices
- widget_recent-comments
- widget_nepali_calendar_widget
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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 SRP test was a success
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% 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 17 tag instead of maximum 10
- Screenshots: These screenshots do not have images: #1 (Widgets), #2 (Frontend view)
- Plugin Name: Please specify the plugin name on the first line (
=== nepali-calendar ===
)
nepali-calendar/nepali-calendar.php 92% from 13 tests
Analyzing the main PHP file in "Nepali Calendar" version 1.0.0
Please make the necessary changes and fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("3.0.1" instead of "4.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin4,792 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 859 | 1,690 | 2,524 |
Sass | 9 | 193 | 0 | 1,545 |
JavaScript | 8 | 426 | 38 | 719 |
CSS | 4 | 0 | 0 | 4 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 14.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 131.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 4 | 17.39% |
▷ Concrete classes | 19 | 82.61% |
▷ Final classes | 1 | 5.26% |
Methods | 175 | |
▷ Static methods | 71 | 40.57% |
▷ Public methods | 123 | 70.29% |
▷ Protected methods | 21 | 12.00% |
▷ Private methods | 31 | 17.71% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.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
7 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/next.png | 1.94KB | 0.63KB | ▼ 67.24% |
assets/images/next_hover.png | 1.86KB | 0.62KB | ▼ 66.79% |
assets/images/border.png | 0.14KB | 0.16KB | 0.00% |
assets/images/controls.png | 1.98KB | 2.04KB | 0.00% |
assets/images/prev_hover.png | 1.95KB | 0.63KB | ▼ 67.90% |