Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/beer-recommender/beerrecommender.php+86
Methods with the same name as their class will not be constructors in a future version of PHP; beerRecommenderWidget has a deprecated constructor
Server metrics [RAM: ▼1.92MB] [CPU: ▼58.22ms] Passed 4 tests
Server-side resources used by Beer Recommender
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.12 ▼40.62 |
Dashboard /wp-admin | 2.08 ▼1.22 | 6.75 ▼47.97 |
Posts /wp-admin/edit.php | 2.08 ▼1.27 | 7.39 ▼46.34 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.80 | 5.77 ▼97.93 |
Media Library /wp-admin/upload.php | 2.08 ▼1.14 | 5.90 ▼30.91 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_beerrecommenderwidget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Beer Recommender
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.81 ▲0.43 | 1.95 ▲0.19 | 40.33 ▼7.00 |
Dashboard /wp-admin | 2,206 ▲29 | 5.85 ▲0.93 | 126.80 ▲3.90 | 45.55 ▼0.85 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▲0.01 | 50.82 ▲10.73 | 39.19 ▲1.85 |
Add New Post /wp-admin/post-new.php | 1,534 ▲1 | 23.12 ▲0.13 | 665.86 ▲20.39 | 52.44 ▼5.02 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.12 ▼0.20 | 111.25 ▼0.91 | 41.70 ▼6.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/beer-recommender/beerrecommender.php+86
Methods with the same name as their class will not be constructors in a future version of PHP; beerRecommenderWidget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_beerrecommenderwidget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/beer-recommender/beerrecommender.php:50
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== beer-recommender ===
)
beer-recommender/beerrecommender.php 92% from 13 tests
The principal PHP file in "Beer Recommender" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("beer-recommender.php" instead of "beerrecommender.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected79 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 35 | 25 | 67 |
JavaScript | 1 | 4 | 5 | 12 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
beerglass.png | 0.88KB | 0.73KB | ▼ 17.44% |