Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/menu-card/inc/class-menu-card.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; Menu_Card has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼50.98ms] Passed 4 tests
Analyzing server-side resources used by Menu Card
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.40 ▼37.71 |
Dashboard /wp-admin | 2.10 ▼1.20 | 6.88 ▼41.07 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 6.37 ▼39.03 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 5.71 ▼86.11 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 4.97 ▼31.30 |
All Menu Cards /wp-admin/edit.php?post_type=menu-cards | 2.10 | 5.76 |
Menu Card /wp-admin/options-general.php?page=menu-card-options | 2.10 | 7.05 |
Menu Card Categories /wp-admin/edit-tags.php?taxonomy=menu-card-category&post_type=menu-cards | 2.10 | 6.15 |
Add New /wp-admin/post-new.php?post_type=menu-cards | 2.10 | 6.44 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Menu Card
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,953 ▲207 | 13.69 ▼0.62 | 9.49 ▲7.72 | 39.52 ▼3.15 |
Dashboard /wp-admin | 2,241 ▲52 | 4.84 ▼0.27 | 109.98 ▼11.71 | 42.69 ▲0.45 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.17 ▲0.13 | 40.27 ▲3.77 | 35.90 ▼0.57 |
Add New Post /wp-admin/post-new.php | 1,576 ▲43 | 18.64 ▼4.62 | 594.19 ▼78.79 | 56.51 ▲2.35 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.19 ▼0.02 | 94.86 ▼20.38 | 40.67 ▼8.66 |
All Menu Cards /wp-admin/edit.php?post_type=menu-cards | 1,096 | 1.93 | 29.92 | 28.55 |
Menu Card /wp-admin/options-general.php?page=menu-card-options | 827 | 1.71 | 23.70 | 25.58 |
Menu Card Categories /wp-admin/edit-tags.php?taxonomy=menu-card-category&post_type=menu-cards | 1,294 | 2.14 | 28.82 | 28.52 |
Add New /wp-admin/post-new.php?post_type=menu-cards | 2,430 | 7.69 | 166.45 | 62.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/menu-card/inc/class-menu-card.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; Menu_Card has a deprecated constructor
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=menu-cards
- > Deprecated in wp-content/plugins/menu-card/inc/class-menu-card.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; Menu_Card has a deprecated constructor
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=menu-cards
- > Deprecated in wp-content/plugins/menu-card/inc/custom-post-base.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; Menu_Card_Custom_Post_Base has a deprecated constructor
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=menu-cards
- > Deprecated in wp-content/plugins/menu-card/inc/custom-post-menu-cards.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; Menu_Card_MenuCards_Custom_Post has a deprecated constructor
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=menu-cards
- > Deprecated in wp-content/plugins/menu-card/inc/admin-settings.php+13
Methods with the same name as their class will not be constructors in a future version of PHP; Menu_Card_Admin has a deprecated constructor
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=menu-cards
- > Deprecated in wp-content/plugins/menu-card/inc/admin-settings-base.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; Menu_Card_Admin_Base has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=menu-card-options
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=menu-card-options
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=menu-card-options
- > Notice in wp-content/plugins/menu-card/inc/admin-settings-base.php+65
Trying to access array offset on value of type bool
SRP 0% 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 take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/menu-card/views/public.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Menu_Card_Custom_Post_Base' not found in wp-content/plugins/menu-card/inc/custom-post-menu-cards.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/menu-card/views/admin.php:17
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (screenshot-1.png) image missing
menu-card/menu-card.php 92% from 13 tests
"Menu Card" version 0.8.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,170 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 242 | 477 | 629 |
CSS | 4 | 19 | 37 | 243 |
JavaScript | 4 | 57 | 54 | 177 |
HTML | 1 | 1 | 27 | 85 |
PO File | 2 | 2 | 4 | 36 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 7.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 61 | |
▷ Static methods | 8 | 13.11% |
▷ Public methods | 33 | 54.10% |
▷ Protected methods | 17 | 27.87% |
▷ Private methods | 11 | 18.03% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.38MB with 0.32MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 345.59KB | 116.20KB | ▼ 66.38% |
(invalid) assets/banner-1544x500.png | 40.22KB | 0.00KB | ▼ 100.00% |
assets/price-line.png | 0.91KB | 0.10KB | ▼ 89.35% |