Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼1.18ms] Passed 4 tests
A check of server-side resources used by WP Menu Cart
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.24 | 38.98 ▼0.54 |
Dashboard /wp-admin | 3.57 ▲0.26 | 48.39 ▲2.09 |
Posts /wp-admin/edit.php | 3.68 ▲0.33 | 51.18 ▲1.17 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 91.75 ▼7.45 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 41.54 ▲10.02 |
Menu Cart Setup /wp-admin/options-general.php?page=wpmenucart_options_page | 3.47 | 34.60 |
Server storage [IO: ▲1.52MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 139 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
wpmenucart |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WP Menu Cart
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲72 | 14.34 ▼0.00 | 1.78 ▲0.16 | 39.26 ▲0.41 |
Dashboard /wp-admin | 2,207 ▲26 | 5.59 ▲0.00 | 92.05 ▼11.77 | 40.20 ▼4.93 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.01 ▲0.07 | 39.86 ▲3.21 | 37.80 ▲2.76 |
Add New Post /wp-admin/post-new.php | 6,377 ▲4,851 | 27.39 ▲4.35 | 807.96 ▲134.40 | 57.07 ▲6.60 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.23 ▲0.08 | 98.81 ▼3.29 | 40.77 ▼4.24 |
Menu Cart Setup /wp-admin/options-general.php?page=wpmenucart_options_page | 1,369 | 1.84 | 26.43 | 44.92 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- wpmenucart
- widget_theysaidso_widget
Smoke tests Passed 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 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: woocommerce, shopping cart, header, edd, bar...
wp-menu-cart/wp-menu-cart.php 85% from 13 tests
The principal PHP file in "WP Menu Cart" v. 2.14.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("3.4" instead of "3.0")
- Description: Keep the plugin description shorter than 140 characters (currently 264 characters long)
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 detected8,620 lines of code in 63 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 23 | 1,449 | 1,621 | 3,949 |
SVG | 2 | 0 | 0 | 2,707 |
PHP | 7 | 261 | 306 | 1,436 |
JavaScript | 13 | 33 | 32 | 250 |
CSS | 17 | 21 | 8 | 243 |
Markdown | 1 | 13 | 0 | 35 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 31.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 3.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 3 | 4.05% |
▷ Public methods | 73 | 98.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.35% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
28 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/cart-icon-6.png | 0.58KB | 0.48KB | ▼ 17.25% |
images/cart-icon-13.png | 0.65KB | 0.49KB | ▼ 24.17% |
images/cart-icon-9.png | 0.81KB | 0.55KB | ▼ 32.69% |
images/cart-icon-4.png | 0.90KB | 0.68KB | ▼ 24.70% |
assets/images/cart-icon-5.png | 0.78KB | 0.59KB | ▼ 23.71% |