Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.82MB] [CPU: ▲0.52ms] 75% from 4 tests
Analyzing server-side resources used by Stylish Cost Calculator - Quote Generator, Lead Gen & Price Estimator
Please have a look at the following items
- CPU: The total CPU usage must kept under 500.00ms (currently 1,300.88ms on /wp-admin/admin.php?page=scc-diagnostics)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.29 ▲0.82 | 45.01 ▲6.14 |
Dashboard /wp-admin | 4.17 ▲0.82 | 55.58 ▼9.84 |
Posts /wp-admin/edit.php | 4.22 ▲0.86 | 51.90 ▲7.52 |
Add New Post /wp-admin/post-new.php | 6.78 ▲0.89 | 91.25 ▼1.72 |
Media Library /wp-admin/upload.php | 4.03 ▲0.79 | 41.62 ▲7.88 |
Members Portal /wp-admin/admin.php?page=scc-license-help | 4.42 | 36.61 |
/wp-admin/admin.php?page=scc-coupons-management | 4.45 | 35.77 |
Diag & Sys Info /wp-admin/admin.php?page=scc-diagnostics | 5.05 | 1,300.88 |
Help & Tutorials /wp-admin/admin.php?page=scc-help | 4.42 | 38.47 |
All Calculator Forms /wp-admin/admin.php?page=scc_edit_items | 4.50 | 34.72 |
Add New /wp-admin/admin.php?page=scc-tabs | 4.42 | 41.19 |
/wp-admin/admin.php?page=scc-quote-management-screen | 4.43 | 38.30 |
Global Settings /wp-admin/admin.php?page=scc-global-settings | 4.71 | 47.07 |
Migrate /wp-admin/admin.php?page=Stylish_Cost_Calculator_Migration | 4.42 | 36.24 |
Server storage [IO: ▲12.61MB] [DB: ▲0.02MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 333 new files
Database: 8 new tables, 22 new options
New tables |
---|
wp_df_scc_quote_submissions |
wp_df_scc_sections |
wp_df_scc_conditions |
wp_df_scc_coupons |
wp_df_scc_forms |
wp_df_scc_subsections |
wp_df_scc_elementitems |
wp_df_scc_elements |
New WordPress options |
---|
df_scc_notifications |
widget_recent-posts |
df_scc_currency |
df_scc_fontsettings |
theysaidso_admin_options |
df_scc_licensed |
scc_v7_tables_ready |
df_scc_currency_coversion_mode |
df_scc_emailsender |
df_scc_sendername |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Stylish Cost Calculator - Quote Generator, Lead Gen & Price Estimator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,929 ▲168 | 13.46 ▼0.89 | 8.16 ▲6.42 | 41.32 ▼1.82 |
Dashboard /wp-admin | 2,253 ▲79 | 5.56 ▼0.11 | 94.31 ▼5.72 | 67.33 ▲25.28 |
Posts /wp-admin/edit.php | 2,137 ▲40 | 1.99 ▲0.01 | 35.12 ▼1.85 | 33.99 ▼1.29 |
Add New Post /wp-admin/post-new.php | 6,245 ▲4,719 | 19.10 ▼3.83 | 987.14 ▲307.36 | 57.19 ▲7.04 |
Media Library /wp-admin/upload.php | 1,455 ▲55 | 4.19 ▲0.02 | 96.24 ▼7.62 | 75.08 ▲29.96 |
Members Portal /wp-admin/admin.php?page=scc-license-help | 1,656 | 2.40 | 38.71 | 127.23 |
/wp-admin/admin.php?page=scc-coupons-management | 1,692 | 2.71 | 42.25 | 99.16 |
Diag & Sys Info /wp-admin/admin.php?page=scc-diagnostics | 1,607 | 2.39 | 31.58 | 49.35 |
Help & Tutorials /wp-admin/admin.php?page=scc-help | 1,506 | 2.51 | 31.12 | 40.57 |
All Calculator Forms /wp-admin/admin.php?page=scc_edit_items | 1,442 | 2.42 | 31.29 | 52.92 |
Add New /wp-admin/admin.php?page=scc-tabs | 1,883 | 2.60 | 33.87 | 44.33 |
/wp-admin/admin.php?page=scc-quote-management-screen | 1,399 | 2.68 | 33.64 | 52.00 |
Global Settings /wp-admin/admin.php?page=scc-global-settings | 5,057 | 8.10 | 156.72 | 154.64 |
Migrate /wp-admin/admin.php?page=Stylish_Cost_Calculator_Migration | 1,491 | 2.40 | 30.10 | 67.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure failed, leaving 8 tables in the database
- wp_df_scc_coupons
- wp_df_scc_subsections
- wp_df_scc_quote_submissions
- wp_df_scc_sections
- wp_df_scc_elementitems
- wp_df_scc_conditions
- wp_df_scc_forms
- wp_df_scc_elements
- Zombie WordPress options were found after uninstall: 22 options
- df_scc_emailsender
- df_scc_currency_style
- df_scc_post_activation_no_setup_redirect
- df_scc_currency_coversion_manual_selection
- widget_recent-comments
- df_scc_messageform
- df_scc_currency_coversion_mode
- df_scc_emailsubject
- scc_v7_tables_ready
- widget_theysaidso_widget
- ...
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
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=scc-coupons-management
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
SRP 50% 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
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/stylish-cost-calculator/lib/wp-google-fonts/google-fonts.php:4
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/stylish-cost-calculator/elementor-widgets/class-scc-elementor-widget.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stylish-cost-calculator/admin/views/partials/notificationBox.php:2
- > 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 issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: lead generation, form, woocommerce, free, sales funnel builder
stylish-cost-calculator/stylish-cost-calculator.php 92% from 13 tests
Analyzing the main PHP file in "Stylish Cost Calculator - Quote Generator, Lead Gen & Price Estimator" version 7.6.0
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin84,741 lines of code in 123 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 60 | 1,292 | 1,582 | 29,862 |
JSON | 24 | 1 | 0 | 21,365 |
CSS | 12 | 3,972 | 665 | 19,043 |
JavaScript | 15 | 1,053 | 1,630 | 11,174 |
SVG | 6 | 0 | 0 | 2,763 |
PO File | 5 | 200 | 504 | 471 |
XML | 1 | 15 | 20 | 63 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 32.02 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 257.00 |
Average method complexity | 4.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 91.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 40 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 40 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 319 | |
▷ Static methods | 9 | 2.82% |
▷ Public methods | 272 | 85.27% |
▷ Protected methods | 9 | 2.82% |
▷ Private methods | 38 | 11.91% |
Functions | 32 | |
▷ Named functions | 11 | 34.38% |
▷ Anonymous functions | 21 | 65.62% |
Constants | 18 | |
▷ Global constants | 17 | 94.44% |
▷ Class constants | 1 | 5.56% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
176 PNG files occupy 6.69MB with 2.75MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/two2.png | 4.57KB | 2.50KB | ▼ 45.15% |
assets/images/tooltip-images/for-settings/infographic-feat-currency-format.png | 30.16KB | 14.47KB | ▼ 52.01% |
assets/email-images/filter_list.png | 0.16KB | 0.14KB | ▼ 13.17% |
assets/images/tooltip-images/for-elements/infographic-element-upload.png | 26.64KB | 13.79KB | ▼ 48.25% |
assets/images/tooltip-images/for-ad-settings/infographic-ad-total-calculation.png | 7.37KB | 3.90KB | ▼ 47.10% |