Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▼4.46ms] 75% from 4 tests
Analyzing server-side resources used by Apptivo eCommerce
Please take the time to fix the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 865.73ms on /wp-admin/post-new.php?post_type=item)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 48.95 ▲7.18 |
Dashboard /wp-admin | 3.63 ▲0.29 | 52.30 ▼13.95 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 56.49 ▲8.12 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.44 | 82.31 ▼13.74 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 42.93 ▲2.68 |
Product Categories /wp-admin/edit-tags.php?taxonomy=item_cat&post_type=item | 3.54 | 39.71 |
Product Tags /wp-admin/edit-tags.php?taxonomy=item_tag&post_type=item | 3.53 | 40.55 |
Products /wp-admin/edit.php?post_type=item | 3.59 | 40.84 |
Add Product /wp-admin/post-new.php?post_type=item | 3.64 | 865.73 |
Server storage [IO: ▲0.83MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 125 new files
Database: no new tables, 59 new options
New WordPress options |
---|
apptivo_ecommerce_print_receipt_logo |
apptivo_ecommerce_terms_page_id |
widget_theysaidso_widget |
apptivo_ecommerce_login_page_id |
apptivo_ecommerce_apikey |
apptivo_ecommerce_products_slug |
apptivo_ecommerce_products_page_title |
apptivo_ecommerce_ordernumber_prefix |
apptivo_ecommerce_recaptcha_language |
apptivo_ecommerce_enable_regular_price |
... |
Browser metrics Passed 4 tests
Apptivo eCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,995 ▲249 | 14.08 ▼0.28 | 7.08 ▲5.15 | 42.80 ▼3.83 |
Dashboard /wp-admin | 2,309 ▲118 | 4.97 ▲0.13 | 105.76 ▼14.71 | 93.88 ▲51.16 |
Posts /wp-admin/edit.php | 2,198 ▲109 | 2.03 ▲0.05 | 38.41 ▲1.04 | 33.38 ▼1.80 |
Add New Post /wp-admin/post-new.php | 1,598 ▲65 | 22.37 ▼0.70 | 769.19 ▲75.44 | 67.37 ▲12.41 |
Media Library /wp-admin/upload.php | 1,488 ▲100 | 4.14 ▼0.13 | 111.96 ▼2.66 | 69.84 ▲25.69 |
Product Categories /wp-admin/edit-tags.php?taxonomy=item_cat&post_type=item | 1,390 | 2.15 | 26.31 | 30.24 |
Product Tags /wp-admin/edit-tags.php?taxonomy=item_tag&post_type=item | 1,337 | 2.15 | 28.74 | 37.38 |
Products /wp-admin/edit.php?post_type=item | 1,324 | 2.05 | 44.37 | 31.55 |
Add Product /wp-admin/post-new.php?post_type=item | 2,912 | 9.05 | 213.03 | 139.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 11 options
- widget_apptivo_recent_products
- db_upgraded
- widget_apptivo_product_tags
- widget_recent-posts
- widget_theysaidso_widget
- widget_apptivo_product_search
- widget_recent-comments
- widget_apptivo_product_categories
- theysaidso_admin_options
- widget_apptivo_shopping_cart
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/post-new.php?post_type=item
- > Notice in wp-content/plugins/apptivo-ecommerce/admin/metaboxes/metaboxes-init.php+110
Undefined property: stdClass::$countOfRecords
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
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/apptivo-ecommerce/paypalredirect.php
- > /wp-content/plugins/apptivo-ecommerce/captcha_code_file.php
- 51× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_baginfo() in wp-content/plugins/apptivo-ecommerce/templates/checkout/review_order.php:8
- > PHP Notice
Undefined index: cphcacode in wp-content/plugins/apptivo-ecommerce/captcha_code_file.php on line 17
- > PHP Notice
Undefined index: token in wp-content/plugins/apptivo-ecommerce/paypalredirect.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/apptivo-ecommerce/templates/register/registerform.php:8
- > PHP Warning
imagettfbbox(): Could not find/open font in wp-content/plugins/apptivo-ecommerce/captcha_code_file.php on line 49
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/apptivo-ecommerce/templates/archive-product.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/apptivo-ecommerce/widgets/widget-cart.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/apptivo-ecommerce/templates/custom-products.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/apptivo-ecommerce/admin/metaboxes/metaboxes-product_data.php:108
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/apptivo-ecommerce/admin/admin-install.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 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
6 plugin tags: paypal, apptivo, ecommerce, integration, registration...
apptivo-ecommerce/apptivo_ecommerce.php 77% from 13 tests
The primary PHP file in "Apptivo eCommerce" version 2.0.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Requires at least: Required version must match the one declared in readme.txt ("3.0" instead of "3.1")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("apptivo-ecommerce.php" instead of "apptivo_ecommerce.php")
- Description: The description should be shorter than 140 characters (currently 225 characters long)
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected12,813 lines of code in 72 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 66 | 1,969 | 1,544 | 10,718 |
JavaScript | 3 | 264 | 131 | 1,847 |
CSS | 3 | 2 | 0 | 248 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 106)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 25.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 242.00 |
Average method complexity | 5.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 106.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 117 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 117 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 233 | |
▷ Named functions | 233 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 27 | |
▷ Global constants | 27 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
22 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/btnPrevious.png | 1.41KB | 1.19KB | ▼ 15.74% |
admin/template_images/success.png | 3.26KB | 0.57KB | ▼ 82.65% |
assets/images/closeme.png | 1.28KB | 1.35KB | 0.00% |
assets/images/sprite.png | 3.42KB | 2.13KB | ▼ 37.67% |
assets/images/cross_white.png | 0.14KB | 0.13KB | ▼ 4.26% |