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.03MB] [CPU: ▲0.16ms] Passed 4 tests
A check of server-side resources used by Precise Sales for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 45.63 ▲3.59 |
Dashboard /wp-admin | 3.34 ▲0.03 | 47.72 ▼0.33 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.71 ▼4.06 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 92.62 ▲1.98 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.23 ▲3.06 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Precise Sales for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.68 ▲0.31 | 1.61 ▼0.51 | 40.96 ▼7.71 |
Dashboard /wp-admin | 2,195 ▲15 | 5.51 ▼0.18 | 89.30 ▼0.94 | 43.59 ▲0.47 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.97 ▼0.03 | 39.87 ▼1.01 | 36.54 ▼2.57 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.10 ▼0.16 | 649.70 ▼50.31 | 55.50 ▼7.24 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.19 ▼0.08 | 100.54 ▲0.05 | 44.08 ▼1.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- 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
Everything seems fine, however 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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/precise-sales-for-woocommerce/precise-sales-for-woocommerce.php:50
- > 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
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: sales, woocommerce
precise-sales-for-woocommerce/precise-sales-for-woocommerce.php 92% from 13 tests
The entry point to "Precise Sales for WooCommerce" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("6.0" instead of "5.9.1")
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
No dangerous file extensions were detected196 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 42 | 64 | 196 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 3.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 1 | 14.29% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.14MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
.wordpress-org/screenshot-1.png | 111.10KB | 30.00KB | ▼ 73.00% |
.wordpress-org/icon-128x128.png | 10.52KB | 4.16KB | ▼ 60.47% |
.wordpress-org/icon-256x256.png | 22.55KB | 8.11KB | ▼ 64.05% |