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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.26ms] Passed 4 tests
This is a short check of server-side resources used by Single Page Restaurant Menu for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.09 ▼2.15 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.08 ▼0.05 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.35 ▲2.00 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.87 ▼7.36 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.81 ▲0.54 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Single Page Restaurant Menu for WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.32 ▼0.98 | 4.01 ▲2.19 | 42.08 ▼1.02 |
Dashboard /wp-admin | 2,200 ▲12 | 5.83 ▲0.90 | 106.15 ▼2.60 | 39.06 ▼2.16 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.04 ▲0.03 | 40.49 ▼1.02 | 35.87 ▼0.14 |
Add New Post /wp-admin/post-new.php | 1,514 ▼28 | 17.77 ▼0.54 | 646.92 ▲51.15 | 52.99 ▲2.74 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.26 ▲0.01 | 94.13 ▼10.30 | 41.42 ▼3.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== single-page-restaurant-menu-for-woocommerce ===
) - Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #5 in single-page-restaurant-menu-for-woocommerce/assets to your readme.txt
single-page-restaurant-menu-for-woocommerce/sprm.bootstrap.php 85% from 13 tests
The primary PHP file in "Single Page Restaurant Menu for WooCommerce" version 1.0.5 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("single-page-restaurant-menu-for-woocommerce.php" instead of "sprm.bootstrap.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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,948 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 189 | 150 | 828 |
CSS | 2 | 168 | 42 | 770 |
JavaScript | 2 | 65 | 21 | 262 |
PO File | 1 | 32 | 32 | 88 |
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.36 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 13 | 43.33% |
▷ Public methods | 30 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.08MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/empty-cart-placeholder.png | 65.47KB | 19.08KB | ▼ 70.85% |
assets/intelvue-icon.png | 21.22KB | 1.28KB | ▼ 93.99% |