Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.24MB] [CPU: ▼9.19ms] Passed 4 tests
This is a short check of server-side resources used by WeRePack - Reuse Packaging for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 46.48 ▲0.56 |
Dashboard /wp-admin | 3.61 ▲0.26 | 48.25 ▼12.95 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 43.23 ▼5.99 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 83.74 ▼16.36 |
Media Library /wp-admin/upload.php | 3.47 ▲0.23 | 36.05 ▼1.47 |
Server storage [IO: ▲0.67MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 8 new options
New WordPress options |
---|
repack_start |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
repack_counter |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WeRePack - Reuse Packaging for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.21 ▼1.18 | 4.89 ▲2.90 | 38.84 ▼8.86 |
Dashboard /wp-admin | 2,200 ▲9 | 5.82 ▲0.89 | 102.12 ▼12.60 | 40.23 ▼1.98 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.05 ▼0.00 | 37.09 ▼3.88 | 31.95 ▼3.69 |
Add New Post /wp-admin/post-new.php | 1,533 ▲4 | 21.24 ▲2.84 | 715.83 ▲81.91 | 55.58 ▲0.22 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.18 ▼0.07 | 98.07 ▼5.20 | 43.17 ▲1.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-posts
- theysaidso_admin_options
- repack_start
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- repack_counter
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/repack-for-woocommerce/templates/summary.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/repack-for-woocommerce/templates/telemetry-data.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/repack-for-woocommerce/admin/partials/repack-admin-settings.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: coupon, sustainable, shipping, reuse, consent...
repack-for-woocommerce/repack.php 69% from 13 tests
"WeRePack - Reuse Packaging for WooCommerce" version 1.4.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.0.0" instead of "3.6")
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Description: Keep the plugin description shorter than 140 characters (currently 177 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("repack-for-woocommerce.php" instead of "repack.php")
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
Success! There were no dangerous files found in this plugin1,585 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 270 | 1,114 | 1,184 |
Sass | 5 | 35 | 6 | 224 |
CSS | 1 | 6 | 12 | 101 |
JSON | 1 | 0 | 0 | 40 |
JavaScript | 2 | 6 | 3 | 36 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 12.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 2.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 12 | 17.14% |
▷ Public methods | 57 | 81.43% |
▷ Protected methods | 3 | 4.29% |
▷ Private methods | 10 | 14.29% |
Functions | 12 | |
▷ Named functions | 3 | 25.00% |
▷ Anonymous functions | 9 | 75.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.56MB with 0.19MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/werepack-teal-mini.png | 9.91KB | 6.50KB | ▼ 34.35% |
public/images/werepack-teal.png | 184.16KB | 123.07KB | ▼ 33.17% |
public/images/werepack-teal-square.png | 374.88KB | 245.05KB | ▼ 34.63% |