Benchmarks
Plugin footprint Passed 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼291.16ms] Passed 4 tests
Analyzing server-side resources used by Predictive Marketing for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.02 | 59.02 ▲7.55 |
Dashboard /wp-admin | 3.43 ▲0.02 | 37.70 ▲3.21 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 36.97 ▼1.69 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 92.79 ▼1,164.48 |
Media Library /wp-admin/upload.php | 3.31 ▲0.02 | 23.85 ▼1.67 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 71 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Predictive Marketing for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,804 ▲50 | 15.91 ▲0.34 | 5.90 ▼0.42 | 3.03 ▲0.21 |
Dashboard /wp-admin | 2,904 ▲43 | 6.13 ▲0.00 | 121.57 ▼13.33 | 161.27 ▲4.89 |
Posts /wp-admin/edit.php | 2,703 ▲15 | 3.23 ▼0.00 | 62.65 ▼1.37 | 139.67 ▼3.87 |
Add New Post /wp-admin/post-new.php | 1,674 ▼78 | 18.81 ▼2.75 | 402.91 ▼66.57 | 152.47 ▼11.13 |
Media Library /wp-admin/upload.php | 1,707 ▲12 | 5.49 ▼0.04 | 136.85 ▼1.40 | 187.66 ▲0.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
Please fix the following
- 20× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Action' not found in wp-content/plugins/graphflow-analytics/includes/action-scheduler/classes/ActionScheduler_NullAction.php:6
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_LogEntry' not found in wp-content/plugins/graphflow-analytics/includes/action-scheduler/classes/ActionScheduler_NullLogEntry.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/graphflow-analytics/includes/graphflow-admin-functions.php:3
- > PHP Fatal error
Uncaught Error: Interface 'ActionScheduler_Schedule' not found in wp-content/plugins/graphflow-analytics/includes/action-scheduler/classes/ActionScheduler_SimpleSchedule.php:6
- > PHP Fatal error
Uncaught Error: Interface 'ActionScheduler_Schedule' not found in wp-content/plugins/graphflow-analytics/includes/action-scheduler/classes/ActionScheduler_IntervalSchedule.php:6
- > PHP Fatal error
Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/graphflow-analytics/includes/action-scheduler/lib/cron-expression/CronExpression_MonthField.php:8
- > PHP Fatal error
Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/graphflow-analytics/includes/action-scheduler/lib/cron-expression/CronExpression_DayOfMonthField.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_get_product() in wp-content/plugins/graphflow-analytics/templates/email/recommended-product.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/graphflow-analytics/includes/action-scheduler/action-scheduler.php:15
- > PHP Fatal error
Uncaught Error: Interface 'ActionScheduler_Schedule' not found in wp-content/plugins/graphflow-analytics/includes/action-scheduler/classes/ActionScheduler_CronSchedule.php:6
- > 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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
graphflow-analytics/woocommerce-graphflow.php 92% from 13 tests
"Predictive Marketing for WooCommerce" version 3.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("graphflow-analytics.php" instead of "woocommerce-graphflow.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin6,048 lines of code in 63 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 56 | 993 | 1,906 | 5,668 |
Markdown | 2 | 127 | 0 | 234 |
JavaScript | 3 | 14 | 18 | 84 |
CSS | 1 | 10 | 7 | 51 |
SVG | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 13.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 168.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 41 | |
▷ Abstract classes | 5 | 12.20% |
▷ Concrete classes | 36 | 87.80% |
▷ Final classes | 0 | 0.00% |
Methods | 339 | |
▷ Static methods | 30 | 8.85% |
▷ Public methods | 299 | 88.20% |
▷ Protected methods | 29 | 8.55% |
▷ Private methods | 11 | 3.24% |
Functions | 49 | |
▷ Named functions | 49 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 18 | 100.00% |
▷ Public constants | 18 | 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
3 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/graphflow-logo.png | 15.82KB | 7.75KB | ▼ 50.99% |
assets/graphflow-icon.png | 1.69KB | 1.20KB | ▼ 29.12% |
assets/help.png | 0.30KB | 0.32KB | 0.00% |