Benchmarks
Plugin footprint Passed 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.00MB] [CPU: ▼143.91ms] Passed 4 tests
A check of server-side resources used by Woocommerce Woowrap
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 38.96 ▲15.57 |
Dashboard /wp-admin | 3.06 ▲0.01 | 45.86 ▼2.85 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 48.84 ▼1.30 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 89.25 ▼574.16 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 29.88 ▲2.66 |
Server storage [IO: ▲1.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 183 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Woocommerce Woowrap
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 16.31 ▲0.65 | 8.34 ▲0.54 | 48.34 ▼11.30 |
Dashboard /wp-admin | 2,967 ▲36 | 5.93 ▲0.05 | 144.20 ▼11.04 | 127.11 ▲7.10 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.68 ▼0.01 | 68.10 ▲2.31 | 93.54 ▼7.02 |
Add New Post /wp-admin/post-new.php | 1,672 ▼11 | 19.16 ▲0.38 | 378.30 ▲6.29 | 119.69 ▲8.76 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.05 ▲0.05 | 166.37 ▲6.29 | 120.97 ▼5.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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 fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/woowrap/woocommerce-woowrap.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== woowrap ===
)
woowrap/woocommerce-woowrap.php 85% from 13 tests
"Woocommerce Woowrap" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("woowrap.php" instead of "woocommerce-woowrap.php")
- Git Repository: Please do not include Git repositories in your plugin
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
There were no executable files found in this plugin11,397 lines of code in 163 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Sass | 80 | 1,445 | 2,244 | 5,794 |
JavaScript | 18 | 1,186 | 427 | 3,223 |
Ruby | 48 | 254 | 267 | 1,366 |
Markdown | 3 | 215 | 0 | 431 |
SVG | 1 | 0 | 0 | 288 |
JSON | 5 | 0 | 0 | 133 |
Slim | 1 | 2 | 0 | 82 |
PHP | 1 | 10 | 9 | 31 |
YAML | 3 | 0 | 0 | 31 |
ERB | 1 | 2 | 0 | 12 |
Bourne Shell | 1 | 2 | 1 | 5 |
CSS | 1 | 0 | 5 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/sass/bootstrap-sass/test/dummy_node_mincer/apple-touch-icon-144-precomposed.png | 3.47KB | 3.17KB | ▼ 8.54% |