Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼0.53ms] Passed 4 tests
Server-side resources used by Website price calculator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 39.88 ▲2.50 |
Dashboard /wp-admin | 3.48 ▲0.17 | 49.97 ▲0.27 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 49.79 ▲4.07 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 88.10 ▼5.35 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 35.48 ▲0.45 |
Add new /wp-admin/admin.php?page=mxpctyw_create_new_calc | 3.31 | 32.91 |
Link Name /wp-admin/admin.php?page=mxpctyw_edit_calc | 3.33 | 33.82 |
Price Calculator /wp-admin/admin.php?page=mxpctyw-price-calculator-to-your-website-menu | 3.31 | 31.83 |
Server storage [IO: ▲5.64MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 74 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_mxpctyw_calc_table |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Website price calculator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,958 ▲197 | 13.76 ▼0.80 | 5.83 ▲4.27 | 43.30 ▲5.07 |
Dashboard /wp-admin | 2,252 ▲75 | 6.00 ▲0.43 | 94.14 ▲7.60 | 39.00 ▲2.10 |
Posts /wp-admin/edit.php | 2,159 ▲59 | 2.32 ▲0.31 | 39.56 ▲6.78 | 33.90 ▼0.30 |
Add New Post /wp-admin/post-new.php | 1,582 ▲54 | 18.56 ▼4.21 | 650.40 ▼2.63 | 46.81 ▼6.29 |
Media Library /wp-admin/upload.php | 1,460 ▲60 | 4.41 ▲0.18 | 95.92 ▲1.31 | 42.41 ▼3.23 |
Add new /wp-admin/admin.php?page=mxpctyw_create_new_calc | 1,290 | 2.51 | 39.42 | 33.23 |
Link Name /wp-admin/admin.php?page=mxpctyw_edit_calc | 1,544 | 2.70 | 31.51 | 30.08 |
Price Calculator /wp-admin/admin.php?page=mxpctyw-price-calculator-to-your-website-menu | 879 | 2.05 | 25.29 | 21.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie tables were found after uninstall: 1 table
- wp_mxpctyw_calc_table
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=mxpctyw_create_new_calc
- > Notice in wp-content/plugins/price-calculator-to-your-website/includes/admin/views/components/js_vars.php+11
Undefined variable: calc_id
- > GET request to /wp-admin/admin.php?page=mxpctyw_edit_calc
- > Notice in wp-content/plugins/price-calculator-to-your-website/includes/admin/views/edit-calc.php+6
Undefined index: calc
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/price-calculator-to-your-website/includes/admin/views/components/add_price_calc_for_js.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/price-calculator-to-your-website/includes/admin/views/components/js_vars.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: price calculator, website price calculator
price-calculator-to-your-website/price-calculator-to-your-website.php Passed 13 tests
The primary PHP file in "Website price calculator" version 4.1 is used by WordPress to initiate all plugin functionality
98 characters long description:
Price calculator for your site. You will be able to customize price calculators for your visitors.
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
Good job! No executable or dangerous file extensions detected39,523 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 4 | 0 | 0 | 35,435 |
CSS | 8 | 10 | 24 | 2,484 |
PHP | 27 | 618 | 357 | 930 |
HTML | 3 | 12 | 0 | 386 |
JavaScript | 3 | 257 | 69 | 255 |
PO File | 1 | 8 | 8 | 33 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 2.61 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 1 | 5.56% |
▷ Concrete classes | 17 | 94.44% |
▷ Final classes | 1 | 5.88% |
Methods | 50 | |
▷ Static methods | 15 | 30.00% |
▷ Public methods | 50 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 7 | 70.00% |
▷ Anonymous functions | 3 | 30.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.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
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/admin/assets/img/default_icon.png | 19.02KB | 1.76KB | ▼ 90.74% |