Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼10.34ms] Passed 4 tests
A check of server-side resources used by BeerXML Shortcode
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 37.25 ▼6.58 |
Dashboard /wp-admin | 3.60 ▲0.25 | 45.91 ▼20.51 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 46.12 ▲0.92 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 90.89 ▼9.23 |
Media Library /wp-admin/upload.php | 3.46 ▲0.22 | 34.95 ▼5.05 |
BeerXML Shortcode /wp-admin/options-general.php?page=beerxml-shortcode | 3.40 | 29.28 |
Beer Style /wp-admin/edit-tags.php?taxonomy=beer_style | 3.45 | 34.65 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by BeerXML Shortcode
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 14.76 ▲0.36 | 1.69 ▼0.06 | 39.82 ▼2.51 |
Dashboard /wp-admin | 2,217 ▲26 | 4.86 ▼0.01 | 106.55 ▲2.71 | 43.33 ▲5.82 |
Posts /wp-admin/edit.php | 2,145 ▲53 | 2.02 ▲0.04 | 38.96 ▲0.49 | 34.05 ▼1.11 |
Add New Post /wp-admin/post-new.php | 1,539 ▲19 | 23.21 ▲0.08 | 616.21 ▼5.37 | 52.51 ▼5.77 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.31 ▲0.14 | 96.69 ▼4.08 | 42.56 ▲0.93 |
BeerXML Shortcode /wp-admin/options-general.php?page=beerxml-shortcode | 896 | 2.05 | 23.70 | 27.41 |
Beer Style /wp-admin/edit-tags.php?taxonomy=beer_style | 1,245 | 2.13 | 27.77 | 28.40 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=beerxml-shortcode
- > 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=beerxml-shortcode
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/beerxml-shortcode/beerxml-shortcode.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/beerxml-shortcode/includes/mime.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/beerxml-shortcode/includes/admin.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% 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
5 plugin tags: beer, homebrew, recipe, beerxml, shortcode
beerxml-shortcode/beerxml-shortcode.php 92% from 13 tests
The primary PHP file in "BeerXML Shortcode" version 0.7.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 169 characters long)
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
Everything looks great! No dangerous files found in this plugin1,266 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 168 | 185 | 1,266 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 7.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 9 | 21.43% |
▷ Public methods | 42 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin