Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.24ms] Passed 4 tests
This is a short check of server-side resources used by Product Rearrange for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 40.96 ▼1.19 |
Dashboard /wp-admin | 3.37 ▲0.02 | 51.61 ▼3.89 |
Posts /wp-admin/edit.php | 3.48 ▲0.08 | 49.89 ▼6.19 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.02 | 85.85 ▼13.68 |
Media Library /wp-admin/upload.php | 3.29 ▲0.02 | 40.97 ▲3.18 |
Server storage [IO: ▲11.22MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Product Rearrange for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.42 ▲0.05 | 1.85 ▲0.13 | 44.58 ▲2.77 |
Dashboard /wp-admin | 2,204 ▲24 | 5.61 ▼0.03 | 94.12 ▲5.63 | 45.25 ▲3.41 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.02 ▲0.01 | 33.78 ▼7.76 | 33.05 ▼5.55 |
Add New Post /wp-admin/post-new.php | 1,532 ▼3 | 23.06 ▲4.58 | 659.09 ▼7.49 | 53.90 ▼23.78 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.26 ▲0.06 | 113.88 ▲8.42 | 47.31 ▼0.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- wcprdeactivation
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/products-rearrange-woocommerce/admin/partials/wcpr-admin-display.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/products-rearrange-woocommerce/admin/partials/wcpr-admin-settings.php:16
- > 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 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Screenshot for the drag and drop UI in the admin end.), #2 (Working DEMO of the plugin and rearranging the products.), #3 (Working DEMO of Selecting the WooCommerce Product Category and rearranging the products.)
products-rearrange-woocommerce/wcpr.php 77% from 13 tests
The principal PHP file in "Product Rearrange for WooCommerce" v. 1.2.1 is loaded by WordPress automatically on each request
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Requires at least: The required version number did not match the one declared in readme.txt ("6.0" instead of "7.0.0")
- Main file name: Name the main plugin file the same as the plugin slug ("products-rearrange-woocommerce.php" instead of "wcpr.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
Everything looks great! No dangerous files found in this plugin521 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 98 | 515 | 363 |
JavaScript | 3 | 19 | 31 | 134 |
CSS | 1 | 1 | 0 | 24 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 3.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.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
5 PNG files occupy 0.40MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/wcpr_reorder.png | 38.59KB | 11.39KB | ▼ 70.48% |
admin/img/wcpr_api.png | 56.22KB | 17.33KB | ▼ 69.17% |
screenshot-1.png | 257.36KB | 70.93KB | ▼ 72.44% |
admin/img/wcpr_permalinks.png | 51.72KB | 18.16KB | ▼ 64.88% |
admin/img/wcpr_noimage.png | 4.14KB | 3.96KB | ▼ 4.36% |