Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼138.58ms] Passed 4 tests
This is a short check of server-side resources used by Plytix Analytics for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.00 | 36.79 ▲0.87 |
Dashboard /wp-admin | 3.06 ▲0.00 | 42.02 ▲4.82 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 49.39 ▲6.52 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 86.05 ▼553.69 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 33.15 ▼6.30 |
Server storage [IO: ▲0.86MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Plytix Analytics for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.97 ▲0.38 | 10.98 ▲0.35 | 46.83 ▲0.37 |
Dashboard /wp-admin | 2,967 ▲36 | 6.08 ▲0.09 | 140.53 ▼10.30 | 109.90 ▲4.94 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▼0.01 | 64.13 ▼6.06 | 89.68 ▲5.73 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 16.18 ▼2.58 | 404.94 ▼4.97 | 109.28 ▼4.32 |
Media Library /wp-admin/upload.php | 1,807 ▲3 | 4.99 ▼0.07 | 167.54 ▲12.38 | 105.93 ▼14.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
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
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
require_once(ABSPATHwp-admin/includes/image.php): failed to open stream: No such file or directory in wp-content/plugins/plytix-for-woocommerce/admin/includes/class-plytix-admin-functions.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/image.php' (include_path='.:/usr/share/php') in wp-content/plugins/plytix-for-woocommerce/admin/includes/class-plytix-admin-functions.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_transient() in wp-content/plugins/plytix-for-woocommerce/admin/partials/plytix-admin-api-settings.php:23
- > PHP Warning
Use of undefined constant PLYTIX_PLUGIN_ADMIN - assumed 'PLYTIX_PLUGIN_ADMIN' (this will throw an Error in a future version of PHP) in wp-content/plugins/plytix-for-woocommerce/admin/class-plytix-admin.php on line 2
- > PHP Warning
include_once(PLYTIX_PLUGIN_PUBLIC/includes/class-plytix-integration.php): failed to open stream: No such file or directory in wp-content/plugins/plytix-for-woocommerce/public/class-plytix-public.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_transient() in wp-content/plugins/plytix-for-woocommerce/admin/partials/plytix-admin-site-settings.php:19
- > PHP Warning
include_once(): Failed opening 'PLYTIX_PLUGIN_PUBLIC/includes/class-plytix-integration.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/plytix-for-woocommerce/public/class-plytix-public.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'PLYTIX_PLUGIN_ADMIN/includes/class-plytix-admin-functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/plytix-for-woocommerce/admin/class-plytix-admin.php on line 2
- > PHP Warning
require_once(PLYTIX_PLUGIN_ADMIN/includes/class-plytix-admin-functions.php): failed to open stream: No such file or directory in wp-content/plugins/plytix-for-woocommerce/admin/class-plytix-admin.php on line 2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/plytix-for-woocommerce/admin/includes/class-plytix-admin-functions.php on line 3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
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
8 plugin tags: product analytics, analytics, retail, woocommerce, plytix...
plytix-for-woocommerce/plytix.php 77% from 13 tests
The primary PHP file in "Plytix Analytics for WooCommerce" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("plytix-for-woocommerce.php" instead of "plytix.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,152 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 197 | 569 | 902 |
CSS | 2 | 43 | 13 | 242 |
JavaScript | 2 | 4 | 10 | 8 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 7.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 2 | 4.26% |
▷ Public methods | 41 | 87.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 12.77% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 6 | 40.00% |
▷ Class constants | 9 | 60.00% |
▷ Public constants | 9 | 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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/plytix_icon.png | 1.28KB | 0.55KB | ▼ 56.75% |
admin/images/plytix_logo.png | 8.06KB | 4.52KB | ▼ 43.94% |