Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼7.24ms] Passed 4 tests
This is a short check of server-side resources used by Beer Directory
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 38.60 ▼6.72 |
Dashboard /wp-admin | 3.35 ▲0.05 | 34.71 ▼14.39 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 41.49 ▼5.23 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 92.71 ▼2.62 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 37.34 ▲6.64 |
Beer /wp-admin/edit.php?post_type=beer | 3.43 | 32.98 |
Beer Categories /wp-admin/edit-tags.php?taxonomy=beer-category&post_type=beer | 3.38 | 33.52 |
Add Beer /wp-admin/post-new.php?post_type=beer | 3.52 | 52.25 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Beer Directory
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲65 | 13.22 ▼1.34 | 1.77 ▼0.12 | 37.28 ▼6.49 |
Dashboard /wp-admin | 2,240 ▲52 | 4.89 ▲0.01 | 101.35 ▼16.55 | 37.76 ▼7.17 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.05 ▼0.11 | 39.15 ▲3.80 | 35.09 ▼0.87 |
Add New Post /wp-admin/post-new.php | 1,560 ▲22 | 23.39 ▲0.06 | 631.95 ▼12.84 | 51.40 ▼13.20 |
Media Library /wp-admin/upload.php | 1,419 ▲28 | 4.20 ▼0.06 | 100.59 ▲2.31 | 43.06 ▼1.26 |
Beer /wp-admin/edit.php?post_type=beer | 1,134 | 1.95 | 34.19 | 31.95 |
Beer Categories /wp-admin/edit-tags.php?taxonomy=beer-category&post_type=beer | 1,293 | 2.13 | 26.44 | 28.14 |
Add Beer /wp-admin/post-new.php?post_type=beer | 2,760 | 7.70 | 170.69 | 71.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/beer-directory/includes/single-beer.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/beer-directory/includes/scripts.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/beer-directory/includes/class-post-shortcodes.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: directory, malt, beer, hops, yeast...
beer-directory/beer-post-type.php 92% from 13 tests
"Beer Directory" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("beer-directory.php" instead of "beer-post-type.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected763 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 227 | 309 | 721 |
CSS | 1 | 3 | 17 | 42 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 11.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.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 | 32 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 68.75% |
▷ Protected methods | 10 | 31.25% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected