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.04MB] [CPU: ▼0.81ms] Passed 4 tests
An overview of server-side resources used by Golf Handicap Calculator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 42.84 ▼2.49 |
Dashboard /wp-admin | 3.35 ▲0.05 | 51.31 ▼1.51 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 56.09 ▲2.18 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 100.02 ▼0.27 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 39.98 ▲1.04 |
GHC Settings /wp-admin/options-general.php?page=golf-handicap-calculator/admin-page.php | 3.24 | 33.82 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_ghc_data |
New WordPress options |
---|
widget_theysaidso_widget |
ghc_db_version |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Golf Handicap Calculator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲44 | 14.28 ▼0.29 | 2.38 ▲0.49 | 39.57 ▼6.70 |
Dashboard /wp-admin | 2,199 ▲22 | 5.65 ▲0.08 | 92.86 ▲2.37 | 36.99 ▼4.45 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.96 ▼0.03 | 38.62 ▼3.61 | 35.28 ▲1.74 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 22.44 ▼0.50 | 668.98 ▼22.66 | 52.15 ▲1.78 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.19 ▼0.00 | 109.65 ▲7.13 | 47.52 ▲3.18 |
GHC Settings /wp-admin/options-general.php?page=golf-handicap-calculator/admin-page.php | 823 | 2.11 | 24.46 | 26.15 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/golf-handicap-calculator/ghc_form.php
- 9× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: cardcalc in wp-content/plugins/golf-handicap-calculator/ghc_form.php on line 55
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/golf-handicap-calculator/ghc_form.php on line 55
- > PHP Notice
Undefined variable: cardcalc in wp-content/plugins/golf-handicap-calculator/ghc_form.php on line 2
- > PHP Notice
Undefined variable: cardcalc in wp-content/plugins/golf-handicap-calculator/ghc_form.php on line 32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/golf-handicap-calculator/admin-page.php:2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/golf-handicap-calculator/ghc_form.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/golf-handicap-calculator/ghc_form.php on line 32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/golf-handicap-calculator/shortcode.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/golf-handicap-calculator/admin-page.php:2
- > PHP Notice
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)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: golf, score, congu, handicap, calculator...
golf-handicap-calculator/golf-handicap-calculator.php Passed 13 tests
The principal PHP file in "Golf Handicap Calculator" v. 1.0.3 is loaded by WordPress automatically on each request
43 characters long description:
A Plugin that calculates your golf handicap
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin540 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 9 | 27 | 345 |
JavaScript | 1 | 4 | 6 | 191 |
CSS | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin