Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.02MB] [CPU: ▼300.62ms] Passed 4 tests
A check of server-side resources used by WooCommerce Mega Search
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 60.77 ▲3.41 |
Dashboard /wp-admin | 3.41 ▲0.00 | 34.35 ▼4.87 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 39.25 ▼1.80 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 95.44 ▼1,192.38 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 23.90 ▼3.43 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 56 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Mega Search
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲51 | 15.83 ▼0.13 | 5.95 ▲0.15 | 2.30 ▼0.05 |
Dashboard /wp-admin | 2,889 ▲35 | 6.12 ▼0.02 | 119.19 ▼17.53 | 153.24 ▼65.91 |
Posts /wp-admin/edit.php | 2,688 ▼5 | 3.24 ▲0.01 | 91.38 ▲27.63 | 139.03 ▼3.81 |
Add New Post /wp-admin/post-new.php | 1,661 ▼29 | 16.18 ▼4.95 | 403.17 ▼19.88 | 159.50 ▼15.08 |
Media Library /wp-admin/upload.php | 1,698 ▲6 | 5.52 ▲0.02 | 159.33 ▲21.71 | 199.54 ▼26.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 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
No tags were found
woo-mega-search/woo-mega-search.php Passed 13 tests
The primary PHP file in "WooCommerce Mega Search" version 1.0.1 is used by WordPress to initiate all plugin functionality
36 characters long description:
WooCommerce Mega Search By PluginRox
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected13,230 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 10,477 |
PHP | 11 | 26 | 490 | 1,219 |
CSS | 4 | 16 | 23 | 517 |
Sass | 8 | 1 | 0 | 515 |
SVG | 8 | 0 | 2 | 249 |
JavaScript | 5 | 4 | 58 | 242 |
Ruby | 1 | 2 | 9 | 11 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 22.33 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 5 | 12.50% |
▷ Public methods | 33 | 82.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 17.50% |
Functions | 21 | |
▷ Named functions | 20 | 95.24% |
▷ Anonymous functions | 1 | 4.76% |
Constants | 5 | |
▷ Global constants | 5 | 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
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/search.png | 1.33KB | 0.68KB | ▼ 48.49% |
assets/images/close.png | 1.11KB | 0.20KB | ▼ 81.68% |
assets/images/none.png | 1.38KB | 0.48KB | ▼ 65.30% |
assets/images/loading.png | 1.25KB | 0.41KB | ▼ 67.19% |