Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲1.55MB] [CPU: ▲12.41ms] Passed 4 tests
Server-side resources used by TSA Commerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.85 ▲1.38 | 56.49 ▲14.04 |
Dashboard /wp-admin | 4.94 ▲1.63 | 58.27 ▲7.43 |
Posts /wp-admin/edit.php | 4.99 ▲1.63 | 63.20 ▲14.45 |
Add New Post /wp-admin/post-new.php | 7.51 ▲1.62 | 108.77 ▲13.73 |
Media Library /wp-admin/upload.php | 4.81 ▲1.58 | 51.00 ▲15.42 |
Settings /wp-admin/edit.php?post_type=tsa_product&page=settings | 4.76 | 40.25 |
All Products /wp-admin/edit.php?post_type=tsa_product | 4.84 | 47.12 |
Add New /wp-admin/post-new.php?post_type=tsa_product | 5.03 | 61.85 |
Categories /wp-admin/edit-tags.php?taxonomy=tsa_product_category&post_type=tsa_product | 4.95 | 51.57 |
Server storage [IO: ▲3.17MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 160 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for TSA Commerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲68 | 14.37 ▲0.08 | 1.92 ▲0.25 | 42.71 ▼4.50 |
Dashboard /wp-admin | 2,227 ▲49 | 5.53 ▼0.05 | 82.61 ▼27.58 | 37.48 ▼6.97 |
Posts /wp-admin/edit.php | 2,138 ▲38 | 2.02 ▲0.03 | 42.37 ▲3.91 | 39.47 ▲3.65 |
Add New Post /wp-admin/post-new.php | 6,651 ▲5,120 | 24.21 ▲0.98 | 1,007.37 ▲331.92 | 42.29 ▼14.45 |
Media Library /wp-admin/upload.php | 1,429 ▲26 | 4.23 ▲0.06 | 105.47 ▲2.16 | 52.02 ▲6.20 |
Settings /wp-admin/edit.php?post_type=tsa_product&page=settings | 851 | 2.00 | 23.98 | 27.76 |
All Products /wp-admin/edit.php?post_type=tsa_product | 1,107 | 1.98 | 29.98 | 30.82 |
Add New /wp-admin/post-new.php?post_type=tsa_product | 2,360 | 7.95 | 185.53 | 42.50 |
Categories /wp-admin/edit-tags.php?taxonomy=tsa_product_category&post_type=tsa_product | 2,084 | 7.44 | 142.16 | 35.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 48× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/tsa-commerce/vendors/acf/core/fields/post_object.php:3
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/tsa-commerce/vendors/acf/core/fields/dummy.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tsa-commerce/vendors/acf/core/controllers/export.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tsa-commerce/vendors/acf/core/controllers/input.php:28
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/tsa-commerce/vendors/acf/core/fields/user.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function tsac_get_path() in wp-content/plugins/tsa-commerce/lib/vendors.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tsa-commerce/vendors/acf/core/controllers/revisions.php:30
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/tsa-commerce/vendors/acf/core/fields/radio.php:3
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/tsa-commerce/vendors/acf/core/fields/number.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tsa-commerce/vendors/acf/core/controllers/upgrade.php:25
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: amazon, tsa-commerce, commerce, tsa, tsacommerce...
tsa-commerce/tsa-commerce.php Passed 13 tests
"TSA Commerce" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
87 characters long description:
Convierte tu Wordpress en un "Turbo SEO Affiliate Commerce". Fácil, sencillo y ligero.
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
No dangerous file extensions were detected38,678 lines of code in 100 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 24 | 9,369 | 13,726 | 20,485 |
PHP | 52 | 4,068 | 4,596 | 9,768 |
JavaScript | 18 | 3,679 | 2,670 | 6,104 |
CSS | 6 | 685 | 379 | 2,321 |
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.35 |
Average class complexity | 23.97 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 4.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 39 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 39 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 280 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 280 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 60 | |
▷ Named functions | 60 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
21 compressed PNG files occupy 0.20MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendors/acf/core/fields/date_picker/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendors/acf/core/fields/date_picker/images/ui-bg_highlight-soft_0_444444_1x100.png | 0.08KB | 0.08KB | 0.00% |
vendors/acf/core/fields/date_picker/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
vendors/acf/screenshot-3.png | 38.23KB | 37.15KB | ▼ 2.83% |
vendors/acf/core/fields/date_picker/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |