Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.31ms] Passed 4 tests
This is a short check of server-side resources used by Date Today Nepali
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.52 ▼5.07 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.43 ▼1.99 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 50.35 ▲4.28 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 85.51 ▼10.44 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 39.59 ▲5.11 |
Date Today Nepali /wp-admin/options-general.php?page=date-today-nepali-welcome | 3.42 | 34.44 |
Server storage [IO: ▲0.25MB] [DB: ▲0.02MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_dtn-date-display-widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Date Today Nepali
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲76 | 13.53 ▼1.08 | 1.66 ▼0.08 | 41.54 ▲1.38 |
Dashboard /wp-admin | 2,214 ▲34 | 5.80 ▲0.84 | 106.49 ▼5.74 | 38.13 ▼4.24 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.06 ▲0.05 | 40.14 ▲4.59 | 38.27 ▲4.78 |
Add New Post /wp-admin/post-new.php | 6,315 ▲4,787 | 27.27 ▲9.15 | 825.94 ▲204.42 | 35.75 ▼30.03 |
Media Library /wp-admin/upload.php | 1,399 ▲14 | 4.21 ▼0.09 | 99.00 ▲1.05 | 41.78 ▼0.61 |
Date Today Nepali /wp-admin/options-general.php?page=date-today-nepali-welcome | 1,048 | 2.55 | 63.21 | 31.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 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 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_dtn-date-display-widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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 fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/date-today-nepali/app/Widgets/Dtn.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function Nilambar\\Welcome\\add_action() in wp-content/plugins/date-today-nepali/vendor/ernilambar/wp-welcome/init.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: classicpress, date, nepali, widget
date-today-nepali/date-today-nepali.php Passed 13 tests
Analyzing the main PHP file in "Date Today Nepali" version 2.5.5
45 characters long description:
A small widget plugin to display Nepali date.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected3,057 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 668 | 1,551 | 2,729 |
JSON | 5 | 0 | 0 | 276 |
Markdown | 2 | 20 | 0 | 33 |
JavaScript | 3 | 0 | 0 | 18 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 19.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 1 | 5.00% |
Methods | 152 | |
▷ Static methods | 45 | 29.61% |
▷ Public methods | 124 | 81.58% |
▷ Protected methods | 10 | 6.58% |
▷ Private methods | 18 | 11.84% |
Functions | 6 | |
▷ Named functions | 2 | 33.33% |
▷ Anonymous functions | 4 | 66.67% |
Constants | 14 | |
▷ Global constants | 12 | 85.71% |
▷ Class constants | 2 | 14.29% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin