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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.01ms] Passed 4 tests
Analyzing server-side resources used by Tracking customers and product recommendations
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.53 ▲2.64 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.73 ▼3.41 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.51 ▼5.55 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.23 ▼4.28 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 32.65 ▲1.21 |
Server storage [IO: ▲1.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Tracking customers and product recommendations
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.36 ▼1.01 | 1.91 ▲0.21 | 41.05 ▲0.78 |
Dashboard /wp-admin | 2,209 ▲20 | 4.91 ▲0.01 | 100.33 ▼22.42 | 36.32 ▼9.42 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▼0.01 | 38.99 ▼2.26 | 34.65 ▼1.40 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.15 ▲0.16 | 643.58 ▲3.32 | 58.26 ▲1.53 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.30 ▲0.12 | 97.14 ▼2.44 | 43.15 ▲0.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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
Please take a closer look at the following
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tracking-customers-and-product-recommendations/functions.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/tracking-customers-and-product-recommendations/includes/shortcodes/shortcode-product-recommendations.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tracking-customers-and-product-recommendations/includes/core/nl2a.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/tracking-customers-and-product-recommendations/admin/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/tracking-customers-and-product-recommendations/index.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/tracking-customers-and-product-recommendations/includes/widgets/widget-products-viewed.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/tracking-customers-and-product-recommendations/includes/widgets/widget-product-recommendations.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/tracking-customers-and-product-recommendations/admin/tables.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/tracking-customers-and-product-recommendations/includes/shortcodes/shortcode-products-viewed.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: recommendations, product recommendations, tracking customers, tracking customer
tracking-customers-and-product-recommendations/index.php 92% from 13 tests
"Tracking customers and product recommendations" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("tracking-customers-and-product-recommendations.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin14,142 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 2,725 | 762 | 11,945 |
PHP | 9 | 111 | 10 | 1,476 |
CSS | 4 | 56 | 0 | 459 |
PO File | 2 | 106 | 114 | 262 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 26.67 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 5.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 10 | 32.26% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.43MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-6.png | 244.18KB | 84.08KB | ▼ 65.57% |
assets/screenshot-4.png | 12.17KB | 5.25KB | ▼ 56.85% |
assets/screenshot-5.png | 16.09KB | 6.42KB | ▼ 60.12% |
assets/screenshot-1.png | 51.47KB | 19.68KB | ▼ 61.76% |
assets/screenshot-2.png | 19.75KB | 7.52KB | ▼ 61.93% |