Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼145.32ms] Passed 4 tests
This is a short check of server-side resources used by Woo Multi Order Creator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 33.45 ▲11.75 |
Dashboard /wp-admin | 3.06 ▲0.00 | 43.70 ▼1.61 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 45.44 ▼1.51 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 87.30 ▼569.79 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 33.16 ▼8.37 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Woo Multi Order Creator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲84 | 15.89 ▲0.20 | 8.01 ▼2.72 | 41.29 ▼8.50 |
Dashboard /wp-admin | 2,967 ▲33 | 5.96 ▼0.18 | 150.17 ▲8.79 | 106.44 ▼11.25 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▼0.00 | 60.78 ▼0.37 | 88.39 ▼10.22 |
Add New Post /wp-admin/post-new.php | 1,676 ▲4 | 18.84 ▲0.03 | 374.95 ▼3.82 | 113.91 ▲5.60 |
Media Library /wp-admin/upload.php | 1,810 ▼3 | 5.02 ▼0.03 | 137.47 ▼7.09 | 118.47 ▲1.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
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
Even though no errors were found, 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
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-multi-order-creator/admin/settings.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/woo-multi-order-creator/custom.php:36
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: woo multi order creator
woo-multi-order-creator/custom.php 92% from 13 tests
"Woo Multi Order Creator" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-multi-order-creator.php" instead of "custom.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected280 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 18 | 36 | 280 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 2.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 | 1 | |
▷ Static methods | 1 | 100.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.51MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 38.24KB | 12.84KB | ▼ 66.41% |
assets/screenshot-1.png | 28.35KB | 5.81KB | ▼ 79.49% |
assets/banner-772x250.png | 60.63KB | 21.14KB | ▼ 65.13% |
assets/screenshot-2.png | 58.76KB | 19.46KB | ▼ 66.87% |
assets/banner1544x500-rtl.png | 126.49KB | 56.68KB | ▼ 55.19% |