Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.95MB] [CPU: ▼37.88ms] Passed 4 tests
A check of server-side resources used by Maimenu for Restaurant Menus Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.24 ▼1.44 |
Dashboard /wp-admin | 3.00 ▼0.31 | 22.02 ▼26.41 |
Posts /wp-admin/edit.php | 3.00 ▼0.36 | 22.86 ▼28.17 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.89 | 23.69 ▼86.85 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 24.05 ▼10.07 |
Server storage [IO: ▲0.47MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Maimenu for Restaurant Menus Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲80 | 13.23 ▼1.13 | 1.73 ▼0.21 | 43.08 ▼0.66 |
Dashboard /wp-admin | 2,224 ▲50 | 4.92 ▼0.90 | 95.64 ▼6.12 | 70.85 ▲25.22 |
Posts /wp-admin/edit.php | 2,107 ▲15 | 1.98 ▼0.07 | 37.52 ▼1.86 | 32.30 ▼4.53 |
Add New Post /wp-admin/post-new.php | 1,681 ▲153 | 21.78 ▲3.21 | 742.69 ▲123.87 | 49.53 ▼8.96 |
Media Library /wp-admin/upload.php | 1,394 ▲12 | 4.22 ▲0.08 | 95.40 ▼3.92 | 68.43 ▲26.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 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 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
Please 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 add_action() in wp-content/plugins/maimenu/maimenu.php:148
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/maimenu/interface/view.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 16 tag instead of maximum 10
- Screenshots: Please add images for these screenshots: #1 (Login on Maimenu.it), #2 (List of plates), #3 (Edit your menu), #4 (Copy the HTML snippet to enter into the plugin)
maimenu/maimenu.php Passed 13 tests
The entry point to "Maimenu for Restaurant Menus Plugin" version 1.0 is a PHP file that has certain tags in its header comment area
82 characters long description:
FREE service for RESTAURANTS. Create your MENU easily with the shortcode [maimenu]
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected111 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 38 | 28 | 111 |
CSS | 1 | 0 | 3 | 0 |
JavaScript | 1 | 0 | 1 | 0 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 33.33% |
Functions | 1 | |
▷ Named functions | 1 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.46MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 151.34KB | 67.17KB | ▼ 55.61% |
screenshot-4.png | 127.95KB | 52.27KB | ▼ 59.15% |
images/icon.png | 1.38KB | 0.57KB | ▼ 58.40% |
screenshot-1.png | 61.51KB | 34.83KB | ▼ 43.38% |
screenshot-3.png | 129.38KB | 62.04KB | ▼ 52.05% |