Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼10.94ms] Passed 4 tests
An overview of server-side resources used by Vachana Sanchaya Daily Vachana Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 36.65 ▼6.65 |
Dashboard /wp-admin | 3.33 ▼0.02 | 45.04 ▼21.22 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.60 ▲3.75 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 82.97 ▼17.03 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.62 ▲1.15 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_vachana-sanchaya-vachana |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Vachana Sanchaya Daily Vachana Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.59 ▼0.78 | 1.65 ▼0.49 | 41.99 ▼2.25 |
Dashboard /wp-admin | 2,206 ▲18 | 5.86 ▲0.97 | 111.18 ▼5.27 | 44.89 ▼1.97 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.08 | 40.52 ▲2.70 | 36.20 ▼2.24 |
Add New Post /wp-admin/post-new.php | 1,514 ▼5 | 17.84 ▼5.49 | 668.42 ▼0.50 | 53.28 ▼13.72 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.20 ▲0.04 | 98.61 ▼6.44 | 43.86 ▼0.99 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- widget_vachana-sanchaya-vachana
- can_compress_scripts
- theysaidso_admin_options
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 | 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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/vachana-sanchaya-daily-vachana/vachana.php:79
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Vachana Sanchaya Daily Vachana widget showing a daily vachana), #2 (Vachana Sanchaya Daily Vachana in Appearance > Widgets), #3 (Vachana Sanchaya Daily Vachana Widget when added to sidebar. Change it's title if you like.)
vachana-sanchaya-daily-vachana/vachana.php 92% from 13 tests
The primary PHP file in "Vachana Sanchaya Daily Vachana Widget" version 2.0.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("vachana-sanchaya-daily-vachana.php" instead of "vachana.php")
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
No dangerous file extensions were detected88 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 39 | 30 | 88 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 89.17KB | 19.02KB | ▼ 78.67% |
screenshot-3.png | 10.37KB | 4.20KB | ▼ 59.53% |
screenshot-2.png | 13.65KB | 5.28KB | ▼ 61.33% |
screenshot-4.png | 10.30KB | 4.00KB | ▼ 61.13% |