Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.33MB] [CPU: ▼2.22ms] Passed 4 tests
Analyzing server-side resources used by Live Sales Notification for Woocommerce - Woomotiv
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 36.89 ▼6.34 |
Dashboard /wp-admin | 3.63 ▲0.33 | 46.15 ▼1.87 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 51.00 ▲1.36 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.35 | 92.77 ▼2.02 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 36.70 ▲3.39 |
Woomotiv /wp-admin/admin.php?page=woomotiv | 3.67 | 41.23 |
Get Support /wp-admin/admin.php?page=woomotiv_contact | 3.54 | 33.21 |
Server storage [IO: ▲1.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 72 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_woomotiv_custom_popups |
wp_woomotiv_stats |
New WordPress options |
---|
woomotiv_version |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Live Sales Notification for Woocommerce - Woomotiv
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲61 | 14.36 ▲0.00 | 1.73 ▲0.00 | 36.73 ▼7.65 |
Dashboard /wp-admin | 2,228 ▲57 | 5.61 ▼0.04 | 92.20 ▼6.64 | 42.77 ▼5.61 |
Posts /wp-admin/edit.php | 2,134 ▲31 | 2.01 ▲0.02 | 40.87 ▲0.52 | 36.10 ▲3.34 |
Add New Post /wp-admin/post-new.php | 1,555 ▲29 | 23.06 ▼0.14 | 587.63 ▲1.76 | 50.46 ▲4.00 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.17 ▼0.05 | 96.62 ▼2.69 | 41.01 ▲1.02 |
Woomotiv /wp-admin/admin.php?page=woomotiv | 1,212 | 3.52 | 44.93 | 30.42 |
Get Support /wp-admin/admin.php?page=woomotiv_contact | 1,257 | 11.66 | 143.20 | 73.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie tables were found after uninstall: 2 tables
- wp_woomotiv_custom_popups
- wp_woomotiv_stats
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- woomotiv_version
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/woomotiv/index.php
- 13× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/woomotiv/views/tabs/discover.php:9
- > PHP Fatal error
Uncaught Error: Class 'WooMotiv\\Framework\\HTML' not found in wp-content/plugins/woomotiv/views/tabs/advanced.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woomotiv/views/tabs/filters.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/woomotiv/activation.php:7
- > PHP Fatal error
Uncaught Error: Class 'WooMotiv\\Framework\\HTML' not found in wp-content/plugins/woomotiv/views/tabs/style.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woomotiv/views/custom-popup/add.php:5
- > PHP Fatal error
Uncaught Error: Class 'WooMotiv\\Framework\\HTML' not found in wp-content/plugins/woomotiv/views/tabs/general.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woomotiv/views/tabs/report.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woomotiv/views/custom-popup/edit.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woomotiv/lib/hooks.php:6
- > 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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: woocommerce notification, woocommerce sales notification, marketing, boost conversion, boost sales...
woomotiv/index.php 85% from 13 tests
"Live Sales Notification for Woocommerce - Woomotiv" version 3.4.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woomotiv.php" instead of "index.php")
- Requires at least: Required version does not match the one declared in readme.txt ("4.6" instead of "3.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin5,319 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 940 | 666 | 2,829 |
CSS | 9 | 272 | 123 | 1,930 |
JavaScript | 6 | 186 | 162 | 548 |
SVG | 1 | 0 | 0 | 11 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 14.07 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 97 | |
▷ Static methods | 31 | 31.96% |
▷ Public methods | 82 | 84.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 15.46% |
Functions | 27 | |
▷ Named functions | 16 | 59.26% |
▷ Anonymous functions | 11 | 40.74% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
16 PNG files occupy 0.50MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/150.png | 0.36KB | 0.34KB | ▼ 5.63% |
css/images/ui-icons_454545_256x240.png | 6.92KB | 4.18KB | ▼ 39.61% |
css/images/ui-icons_222222_256x240.png | 6.86KB | 4.18KB | ▼ 39.05% |
lib/Framework/img/table-bg.png | 0.92KB | 0.12KB | ▼ 87.09% |
img/trophy.png | 70.22KB | 34.87KB | ▼ 50.35% |