Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.32ms] Passed 4 tests
This is a short check of server-side resources used by Emi Loan Calculator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 56.30 ▲18.38 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.02 ▼10.56 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.93 ▲3.49 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.69 ▼6.76 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.04 ▲0.56 |
Server storage [IO: ▲0.88MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Emi Loan Calculator
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲66 | 13.62 ▼0.68 | 20.50 ▲18.38 | 46.17 ▲7.58 |
Dashboard /wp-admin | 2,209 ▲21 | 4.87 ▼0.99 | 97.77 ▼3.58 | 38.61 ▼6.73 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.02 | 39.75 ▲3.42 | 35.99 ▲3.09 |
Add New Post /wp-admin/post-new.php | 1,542 ▲19 | 18.22 ▼4.85 | 590.51 ▼86.35 | 49.90 ▼3.40 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.24 ▲0.07 | 95.48 ▼1.88 | 41.57 ▲0.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Screenshot #1 (Loan Calculator Demo Shortcode [Loan-calculator]) image required
emi-loan-calculator/index.php 92% from 13 tests
This is the main PHP file of "Emi Loan Calculator" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("emi-loan-calculator.php" instead of "index.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
Everything looks great! No dangerous files found in this plugin6,827 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 1 | 17 | 5,094 |
CSS | 2 | 254 | 3 | 1,395 |
PHP | 3 | 82 | 113 | 301 |
PO File | 1 | 9 | 12 | 37 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 50.00 |
▷ Minimum class complexity | 50.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 5.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 90.00% |
▷ Protected methods | 1 | 10.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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
23 PNG files occupy 0.17MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/radio_deselect.png | 50.00KB | 0.20KB | ▼ 99.60% |
assets/img/slider.png | 0.96KB | 0.12KB | ▼ 88.01% |
assets/img/chart_arrow_left.png | 1.00KB | 0.14KB | ▼ 85.76% |
assets/img/email-icon.png | 0.36KB | 0.20KB | ▼ 44.50% |
assets/img/slider-handle.png | 0.95KB | 0.12KB | ▼ 87.15% |