Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.28ms] Passed 4 tests
An overview of server-side resources used by Sales Map for Woocommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 39.40 ▼1.03 |
Dashboard /wp-admin | 3.38 ▲0.08 | 46.13 ▼3.27 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 49.45 ▼2.38 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 92.02 ▼10.42 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 35.22 ▲1.59 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Sales Map for Woocommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲74 | 13.57 ▼0.79 | 2.07 ▲0.00 | 44.60 ▲0.06 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼1.03 | 110.10 ▲8.68 | 39.83 ▼4.68 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.05 | 40.06 ▼0.22 | 34.99 ▼1.77 |
Add New Post /wp-admin/post-new.php | 1,518 ▼16 | 23.11 ▼0.09 | 605.80 ▼6.91 | 55.71 ▼2.36 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.18 ▼0.05 | 95.89 ▲1.83 | 41.62 ▼3.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/sales-map-for-woocommerce/admin/partials/sales-map-woo-admin-display.php
- > /wp-content/plugins/sales-map-for-woocommerce/public/partials/sales-map-woo-public-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/sales-map-for-woocommerce/admin/partials/sales-map-woo-admin-settings.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
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
3 plugin tags: order, sales, map
sales-map-for-woocommerce/sales-map-for-woocommerce.php 92% from 13 tests
The primary PHP file in "Sales Map for Woocommerce" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.0.1" instead of "3.7")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin404 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 138 | 573 | 369 |
JavaScript | 2 | 8 | 60 | 31 |
CSS | 2 | 1 | 8 | 4 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 2.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 2 | 6.67% |
▷ Public methods | 25 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.67% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected