Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼1.76MB] [CPU: ▼186.04ms] Passed 4 tests
Analyzing server-side resources used by EM Beer Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.83 ▼1.00 | 6.63 ▼26.94 |
Dashboard /wp-admin | 1.89 ▼1.16 | 12.59 ▼30.04 |
Posts /wp-admin/edit.php | 1.90 ▼1.21 | 6.48 ▼31.38 |
Add New Post /wp-admin/post-new.php | 1.89 ▼3.54 | 8.50 ▼651.42 |
Media Library /wp-admin/upload.php | 1.89 ▼1.11 | 7.71 ▼31.31 |
Add New /wp-admin/post-new.php?post_type=embm_beer | 1.89 | 7.75 |
Menus /wp-admin/edit-tags.php?taxonomy=embm_menu&post_type=embm_beer | 1.90 | 7.46 |
EM Beer Manager /wp-admin/options-general.php?page=embm-settings | 1.90 | 7.80 |
Groups /wp-admin/edit-tags.php?taxonomy=embm_group&post_type=embm_beer | 1.90 | 7.94 |
All Beers /wp-admin/edit.php?post_type=embm_beer | 1.90 | 8.02 |
Styles /wp-admin/edit-tags.php?taxonomy=embm_style&post_type=embm_beer | 1.90 | 6.92 |
Server storage [IO: ▲0.83MB] [DB: ▲0.02MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 59 new files
Database: no new tables, 5 new options
New WordPress options |
---|
widget_embm_recent_untappd_widget |
embm_options |
embm_styles_loaded |
embm_version |
widget_embm_beer_list_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for EM Beer Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,797 ▲201 | 16.29 ▲0.64 | 10.86 ▲1.29 | 47.33 ▼1.51 |
Dashboard /wp-admin | 3,058 ▲124 | 6.98 ▲1.00 | 142.92 ▼1.26 | 112.06 ▼4.44 |
Posts /wp-admin/edit.php | 2,828 ▲92 | 2.87 ▲0.16 | 68.66 ▲6.47 | 96.66 ▲2.39 |
Add New Post /wp-admin/post-new.php | 1,689 ▲17 | 22.94 ▲4.12 | 264.01 ▼116.45 | 125.06 ▲10.79 |
Media Library /wp-admin/upload.php | 1,894 ▲84 | 5.57 ▲0.54 | 122.37 ▼20.78 | 118.10 ▼7.87 |
Add New /wp-admin/post-new.php?post_type=embm_beer | 6,189 | 16.67 | 464.82 | 164.84 |
Menus /wp-admin/edit-tags.php?taxonomy=embm_menu&post_type=embm_beer | 1,908 | 2.70 | 64.58 | 98.65 |
EM Beer Manager /wp-admin/options-general.php?page=embm-settings | 3,283 | 2.60 | 67.10 | 184.89 |
Groups /wp-admin/edit-tags.php?taxonomy=embm_group&post_type=embm_beer | 1,847 | 2.69 | 59.42 | 109.16 |
All Beers /wp-admin/edit.php?post_type=embm_beer | 1,775 | 3.01 | 72.61 | 98.02 |
Styles /wp-admin/edit-tags.php?taxonomy=embm_style&post_type=embm_beer | 3,063 | 2.79 | 68.40 | 111.11 |
Uninstaller [IO: ▲0.83MB] [DB: ▲0.02MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attentionThis plugin does not fully uninstall, leaving 5 options in the database
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/em-beer-manager/includes/widgets/embm-widget-list.php+179
Function create_function() is deprecated
- The plugin did not uninstall correctly, leaving 59 files (0.83MB) in the plugin directory
- (new file) assets/fonts/beer-icons.eot
- (new file) assets/fonts/beer-icons.woff
- (new file) assets/fonts/beer-icons.ttf
- (new file) README.txt
- (new file) assets/css/widgets.css
- (new file) assets/css/admin.css
- (new file) assets/fonts/beer-icons.svg
- (new file) assets/css/output.css
- (new file) assets/beer-styles.txt
- (new file) assets/img/checkin-button-1.png
- ...
- embm_options
- embm_styles_loaded
- widget_embm_beer_list_widget
- embm_version
- widget_embm_recent_untappd_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 12 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=embm_style&post_type=embm_beer
- > Deprecated in wp-content/plugins/em-beer-manager/includes/widgets/embm-widget-list.php+179
Function create_function() is deprecated
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=embm_beer
- > Notice in wp-content/plugins/em-beer-manager/includes/embm-core.php+663
Undefined index: abv
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=embm_beer
- > Notice in wp-content/plugins/em-beer-manager/includes/embm-core.php+664
Undefined index: ibu
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=embm_beer
- > Notice in wp-content/plugins/em-beer-manager/includes/embm-core.php+668
Undefined index: malts
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=embm_beer
- > Notice in wp-content/plugins/em-beer-manager/includes/embm-core.php+669
Undefined index: hops
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=embm_beer
- > Notice in wp-content/plugins/em-beer-manager/includes/embm-core.php+670
Undefined index: adds
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=embm_beer
- > Notice in wp-content/plugins/em-beer-manager/includes/embm-core.php+671
Undefined index: yeast
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=embm_beer
- > Notice in wp-content/plugins/em-beer-manager/includes/embm-core.php+680
Undefined index: beer_num
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=embm_beer
- > Notice in wp-content/plugins/em-beer-manager/includes/embm-core.php+684
Undefined index: avail
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=embm_beer
- > Notice in wp-content/plugins/em-beer-manager/includes/embm-core.php+685
Undefined index: notes
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=embm_beer
- > Notice in wp-content/plugins/em-beer-manager/includes/embm-core.php+693
Undefined index: untappd_id
- > GET request to /wp-admin/post-new.php?post_type=embm_beer
- > Notice in wp-content/plugins/em-beer-manager/includes/metaboxes/embm-metabox-untappd.php+176
Undefined variable: utfb_id
- > GET request to /wp-admin/post-new.php?post_type=embm_beer
- > Notice in wp-content/plugins/em-beer-manager/includes/metaboxes/embm-metabox-untappd.php+206
Undefined variable: menus
- > GET request to /wp-admin/post-new.php?post_type=embm_beer
- > Warning in wp-content/plugins/em-beer-manager/includes/metaboxes/embm-metabox-untappd.php+206
Invalid argument supplied for foreach()
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 34× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/em-beer-manager/includes/output/embm-output-shortcodes.php:54
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/em-beer-manager/includes/metaboxes/embm-metabox-menus.php:57
- > PHP Warning
require(EMBM_PLUGIN_DIRincludes/admin/tabs/embm-tabs-labs.php): failed to open stream: No such file or directory in wp-content/plugins/em-beer-manager/includes/admin/tabs/embm-tabs-untappd.php on line 22
- > PHP Warning
Use of undefined constant EMBM_PLUGIN_DIR - assumed 'EMBM_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/em-beer-manager/includes/admin/embm-admin-settings.php on line 23
- > PHP Fatal error
require(): Failed opening required 'EMBM_PLUGIN_DIRincludes/admin/tabs/embm-tabs-labs.php' (include_path='.:/usr/share/php') in wp-content/plugins/em-beer-manager/includes/admin/tabs/embm-tabs-utfb.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/em-beer-manager/includes/admin/embm-admin-actions.php:51
- > PHP Fatal error
require(): Failed opening required 'EMBM_PLUGIN_DIRincludes/admin/embm-admin-notices.php' (include_path='.:/usr/share/php') in wp-content/plugins/em-beer-manager/includes/admin/embm-admin-settings.php on line 23
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/em-beer-manager/includes/widgets/embm-widget-untappd.php:31
- > PHP Warning
A non-numeric value encountered in wp-content/plugins/em-beer-manager/includes/admin/integrations/embm-integrations-untappd.php on line 27
- > PHP Fatal error
require(): Failed opening required 'EMBM_PLUGIN_DIRincludes/admin/tabs/embm-tabs-labs.php' (include_path='.:/usr/share/php') in wp-content/plugins/em-beer-manager/includes/admin/tabs/embm-tabs-untappd.php on line 22
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/edit-tags.php?taxonomy=embm_menu&post_type=embm_beer
- > Intervention (severe) in unknown
/wp-admin/post-new.php?post_type=embm_beer - Blocked attempt to show a 'beforeunload' confirmation panel for a frame that never had a user gesture since its load. https://www.chromestatus.com/feature/5082396709879808
Optimizations
Plugin configuration 96% from 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
7 plugin tags: beer, beers, brew, homebrew, untappd for business...
em-beer-manager/em-beer-manager.php 92% from 13 tests
The entry point to "EM Beer Manager" version 3.2.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 166 characters long)
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
No dangerous file extensions were detected11,154 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 1,452 | 3,258 | 6,585 |
PO File | 5 | 1,186 | 1,338 | 2,988 |
CSS | 3 | 27 | 99 | 1,069 |
JavaScript | 1 | 129 | 153 | 488 |
SVG | 6 | 0 | 0 | 24 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 18.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 201 | |
▷ Named functions | 190 | 94.53% |
▷ Anonymous functions | 11 | 5.47% |
Constants | 41 | |
▷ Global constants | 41 | 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
6 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/checkin-button-1.png | 3.95KB | 2.24KB | ▼ 43.33% |
assets/img/ut-icon-2.png | 1.58KB | 0.79KB | ▼ 49.57% |
assets/img/checkin-button-2.png | 5.39KB | 2.99KB | ▼ 44.46% |
assets/img/ut-credit.png | 3.44KB | 2.50KB | ▼ 27.45% |
assets/img/ut-icon-1.png | 1.61KB | 1.55KB | ▼ 4.06% |