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.87MB] [CPU: ▲11.61ms] Passed 4 tests
Server-side resources used by Phanes 3DP Calculator - Legacy
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.09 ▲0.63 | 56.26 ▲16.02 |
Dashboard /wp-admin | 4.30 ▲1.00 | 54.59 ▲6.83 |
Posts /wp-admin/edit.php | 4.35 ▲1.00 | 58.64 ▲11.33 |
Add New Post /wp-admin/post-new.php | 6.82 ▲0.93 | 108.54 ▲19.83 |
Media Library /wp-admin/upload.php | 4.16 ▲0.93 | 47.56 ▲12.25 |
Settings /wp-admin/admin.php?page=pqc-settings-page | 4.14 | 42.95 |
/wp-admin/admin.php?page=pqc-about | 4.13 | 42.07 |
Orders /wp-admin/edit.php?post_type=pqc_order | 4.27 | 48.24 |
Coupons /wp-admin/edit.php?post_type=pqc_coupon | 4.27 | 45.80 |
/wp-admin/admin.php?page=pqc-start | 4.13 | 45.89 |
License code /wp-admin/admin.php?page=pqc-license-page | 4.13 | 41.90 |
Materials /wp-admin/admin.php?page=pqc-materials-page | 4.15 | 46.08 |
Shipping Options /wp-admin/edit.php?post_type=pqc_shipping_option | 4.27 | 42.60 |
Server storage [IO: ▲2.56MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 200 new files
Database: 2 new tables, 10 new options
New tables |
---|
wp_pqc_data |
wp_pqc_materials |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
pqc-options |
widget_recent-comments |
pqc-version |
pqc-license |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
pqc-rewrite-flush |
Browser metrics Passed 4 tests
Phanes 3DP Calculator - Legacy: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,086 ▲351 | 14.76 ▲0.10 | 24.67 ▲22.83 | 41.04 ▼3.15 |
Dashboard /wp-admin | 2,293 ▲104 | 5.86 ▲0.00 | 101.93 ▼19.62 | 79.04 ▲30.03 |
Posts /wp-admin/edit.php | 2,190 ▲98 | 2.16 ▲0.11 | 40.44 ▲3.80 | 36.42 ▲4.58 |
Add New Post /wp-admin/post-new.php | 1,674 ▲140 | 22.41 ▼0.75 | 639.01 ▼25.12 | 193.70 ▲140.50 |
Media Library /wp-admin/upload.php | 1,484 ▲99 | 4.29 ▲0.08 | 98.07 ▼0.41 | 79.09 ▲30.22 |
Settings /wp-admin/admin.php?page=pqc-settings-page | 1,202 | 2.68 | 39.76 | 37.13 |
/wp-admin/admin.php?page=pqc-about | 886 | 2.58 | 35.00 | 59.01 |
Orders /wp-admin/edit.php?post_type=pqc_order | 1,219 | 2.90 | 40.74 | 31.04 |
Coupons /wp-admin/edit.php?post_type=pqc_coupon | 1,228 | 2.91 | 41.97 | 33.34 |
/wp-admin/admin.php?page=pqc-start | 969 | 2.57 | 36.11 | 41.80 |
License code /wp-admin/admin.php?page=pqc-license-page | 929 | 2.71 | 35.86 | 33.86 |
Materials /wp-admin/admin.php?page=pqc-materials-page | 1,527 | 2.72 | 38.46 | 45.29 |
Shipping Options /wp-admin/edit.php?post_type=pqc_shipping_option | 1,187 | 2.87 | 39.53 | 28.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_pqc_data
- wp_pqc_materials
- Zombie WordPress options were found after uninstall: 10 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- pqc-options
- theysaidso_admin_options
- pqc-rewrite-flush
- db_upgraded
- pqc-license
- pqc-version
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/3d-printing-quote-calculator-by-phanes/core/frontend.php
- > /wp-content/plugins/3d-printing-quote-calculator-by-phanes/core/lib/stripe/build.php
- > /wp-content/plugins/3d-printing-quote-calculator-by-phanes/core/backend.php
- 110× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/3d-printing-quote-calculator-by-phanes/templates/cart.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function PQC() in wp-content/plugins/3d-printing-quote-calculator-by-phanes/templates/frontend/widget.php:6
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/3d-printing-quote-calculator-by-phanes/core/lib/stripe/tests/SourceTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/3d-printing-quote-calculator-by-phanes/core/lib/stripe/lib/BalanceTransaction.php:25
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/3d-printing-quote-calculator-by-phanes/core/lib/stripe/tests/ProductTest.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/3d-printing-quote-calculator-by-phanes/admin/templates/welcome/footer.php:2
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/3d-printing-quote-calculator-by-phanes/core/lib/stripe/lib/Coupon.php:10
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/3d-printing-quote-calculator-by-phanes/core/lib/stripe/lib/Order.php:10
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/3d-printing-quote-calculator-by-phanes/core/lib/stripe/lib/ApplicationFee.php:10
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/3d-printing-quote-calculator-by-phanes/core/lib/stripe/lib/Plan.php:23
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #1, #10, #11, #12, #13, #14, #15, #2, #3, #4, #5, #6, #7, #8, #9 in 3d-printing-quote-calculator-by-phanes/assets to your readme.txt
- Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
3d-printing-quote-calculator-by-phanes/init.php 69% from 13 tests
Analyzing the main PHP file in "Phanes 3DP Calculator - Legacy" version 1.1.2
It is important to fix the following:
- Domain Path: The domain path is invalid: folder "/i18n/languages/" does not exist
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("3d-printing-quote-calculator-by-phanes.php" instead of "init.php")
- Description: Keep the plugin description shorter than 140 characters (currently 169 characters long)
Code Analysis 5% from 3 tests
File types 0% from 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
Almost there! Just fix the following issues
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/3d-printing-quote-calculator-by-phanes/core/lib/stripe/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 139 | 3,686 | 2,960 | 11,622 |
JavaScript | 12 | 975 | 941 | 5,042 |
SVG | 2 | 0 | 0 | 2,695 |
CSS | 5 | 204 | 56 | 1,618 |
Markdown | 3 | 229 | 0 | 332 |
JSON | 1 | 0 | 0 | 36 |
XML | 2 | 0 | 0 | 30 |
YAML | 2 | 3 | 0 | 18 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 9.34 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 253.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 111 | |
▷ Abstract classes | 5 | 4.50% |
▷ Concrete classes | 106 | 95.50% |
▷ Final classes | 6 | 5.66% |
Methods | 627 | |
▷ Static methods | 157 | 25.04% |
▷ Public methods | 543 | 86.60% |
▷ Protected methods | 23 | 3.67% |
▷ Private methods | 61 | 9.73% |
Functions | 33 | |
▷ Named functions | 27 | 81.82% |
▷ Anonymous functions | 6 | 18.18% |
Constants | 37 | |
▷ Global constants | 26 | 70.27% |
▷ Class constants | 11 | 29.73% |
▷ Public constants | 11 | 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
16 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/badge.png | 0.22KB | 0.22KB | ▼ 1.78% |
assets/images/paypal.png | 6.94KB | 5.33KB | ▼ 23.25% |
assets/images/clear-cart.png | 0.68KB | 0.69KB | 0.00% |
assets/images/stripe.png | 37.38KB | 11.46KB | ▼ 69.35% |
assets/images/delete.png | 0.55KB | 0.30KB | ▼ 45.00% |