Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/cost-calculator/em-cost-calculator.php+79
Undefined variable: wpdb
Server metrics [RAM: ▼1.68MB] [CPU: ▼53.70ms] Passed 4 tests
A check of server-side resources used by EM Cost Calculator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.31 ▼1.16 | 5.72 ▼35.55 |
Dashboard /wp-admin | 2.33 ▼0.98 | 7.14 ▼45.12 |
Posts /wp-admin/edit.php | 2.33 ▼1.03 | 6.85 ▼45.30 |
Add New Post /wp-admin/post-new.php | 2.33 ▼3.56 | 8.75 ▼88.83 |
Media Library /wp-admin/upload.php | 2.33 ▼0.90 | 5.74 ▼32.57 |
EMCC Customers /wp-admin/admin.php?page=em_add_data | 2.33 | 7.20 |
About EMCC /wp-admin/admin.php?page=em_payment_settings | 2.33 | 7.84 |
Server storage [IO: ▲0.31MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: 4 new tables, 10 new options
New tables |
---|
emotahar_cost_calc |
wp_emotahar_cost_calc |
wp_emcc_order_details |
wp_emcc_default_mail_user |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
emcc_order_details_db_version |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
em_cost_calc_db_version |
widget_em_cost_calculator_id |
emcc_order_mail_db_version |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for EM Cost Calculator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲162 | 13.58 ▼0.81 | 7.01 ▲5.19 | 42.84 ▼1.81 |
Dashboard /wp-admin | 2,231 ▲63 | 4.85 ▼0.06 | 106.54 ▼20.42 | 41.70 ▼7.31 |
Posts /wp-admin/edit.php | 2,114 ▲22 | 2.06 ▲0.03 | 38.96 ▼2.58 | 35.74 ▼3.07 |
Add New Post /wp-admin/post-new.php | 1,534 ▼8 | 22.28 ▲4.02 | 642.87 ▼20.23 | 40.46 ▼10.70 |
Media Library /wp-admin/upload.php | 1,407 ▲22 | 4.19 ▼0.05 | 95.82 ▼13.14 | 40.60 ▼4.74 |
EMCC Customers /wp-admin/admin.php?page=em_add_data | 890 | 2.02 | 23.88 | 32.47 |
About EMCC /wp-admin/admin.php?page=em_payment_settings | 788 | 2.15 | 25.36 | 45.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/cost-calculator/em-cost-calculator.php+339
include_once(wp-content/plugins/cost-calculator/em-add-custom-template.php): failed to open stream: No such file or directory
- Zombie tables detected upon uninstall: 4 tables
- wp_emcc_order_details
- wp_emotahar_cost_calc
- emotahar_cost_calc
- wp_emcc_default_mail_user
- The uninstall procedure has failed, leaving 10 options in the database
- emcc_order_mail_db_version
- theysaidso_admin_options
- widget_recent-posts
- emcc_order_details_db_version
- db_upgraded
- em_cost_calc_db_version
- widget_em_cost_calculator_id
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=em_payment_settings
- > Warning in wp-content/plugins/cost-calculator/em-cost-calculator.php+339
include_once(wp-content/plugins/cost-calculator/em-add-custom-template.php): failed to open stream: No such file or directory
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=em_payment_settings
- > Warning in wp-content/plugins/cost-calculator/em-cost-calculator.php+339
include_once(): Failed opening 'wp-content/plugins/cost-calculator/em-add-custom-template.php' for inclusion (include_path='.:/usr/share/php')
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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/cost-calculator/emcc_captcha.php
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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: A description for screenshot #12 is required in cost-calculator/assets to your readme.txt
- Screenshots: Please add an image for screenshot #1 (On a full width widget)
cost-calculator/em-cost-calculator.php 92% from 13 tests
Analyzing the main PHP file in "EM Cost Calculator" version 2.3.1
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cost-calculator.php" instead of "em-cost-calculator.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 plugin1,852 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 256 | 112 | 873 |
CSS | 2 | 111 | 2 | 693 |
JavaScript | 1 | 39 | 6 | 286 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 71.00 |
▷ Minimum class complexity | 71.00 |
▷ Maximum class complexity | 71.00 |
Average method complexity | 18.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.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 | 18 | |
▷ Named functions | 17 | 94.44% |
▷ Anonymous functions | 1 | 5.56% |
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
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.19MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 55.34KB | 22.13KB | ▼ 60.02% |
assets/screenshot-4.png | 57.34KB | 30.27KB | ▼ 47.21% |
assets/screenshot-1.png | 36.75KB | 16.80KB | ▼ 54.28% |
assets/screenshot-3.png | 29.86KB | 11.30KB | ▼ 62.14% |
assets/banner-772x250.png | 11.91KB | 6.32KB | ▼ 46.96% |