Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.84ms] Passed 4 tests
Server-side resources used by Tiny Yardage Calculator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 47.27 ▲5.20 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.00 ▼2.07 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.24 ▼2.93 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 85.82 ▲2.98 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 31.63 ▼5.32 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Tiny Yardage Calculator: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.26 ▼0.03 | 2.02 ▲0.28 | 42.84 ▼2.85 |
Dashboard /wp-admin | 2,192 ▲15 | 5.59 ▲0.00 | 88.97 ▼8.78 | 36.96 ▼5.65 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.00 | 35.87 ▼5.54 | 34.66 ▼2.06 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.17 ▼0.13 | 605.25 ▼89.75 | 55.60 ▼0.20 |
Media Library /wp-admin/upload.php | 1,394 ▼9 | 4.19 ▼0.03 | 98.91 ▼2.09 | 41.80 ▼7.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
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
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/tiny-yardage-calculator/rectangle.php
- > /wp-content/plugins/tiny-yardage-calculator/circle.php
- > /wp-content/plugins/tiny-yardage-calculator/triangle.php
- 18× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: rounding in wp-content/plugins/tiny-yardage-calculator/triangle.php on line 25
- > PHP Notice
Undefined variable: base_label in wp-content/plugins/tiny-yardage-calculator/triangle.php on line 34
- > PHP Notice
Undefined variable: width_label in wp-content/plugins/tiny-yardage-calculator/rectangle.php on line 34
- > PHP Notice
Undefined variable: rounding in wp-content/plugins/tiny-yardage-calculator/rectangle.php on line 22
- > PHP Notice
Undefined variable: result_label in wp-content/plugins/tiny-yardage-calculator/circle.php on line 38
- > PHP Notice
Undefined variable: form_label in wp-content/plugins/tiny-yardage-calculator/circle.php on line 27
- > PHP Notice
Undefined variable: depth_label in wp-content/plugins/tiny-yardage-calculator/circle.php on line 31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tiny-yardage-calculator/tiny-yardage-calculator.php:62
- > PHP Notice
Undefined variable: result_label in wp-content/plugins/tiny-yardage-calculator/rectangle.php on line 44
- > PHP Notice
Undefined variable: rounding in wp-content/plugins/tiny-yardage-calculator/circle.php on line 19
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 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
3 plugin tags: yardage, calculate, calculator
tiny-yardage-calculator/tiny-yardage-calculator.php 92% from 13 tests
This is the main PHP file of "Tiny Yardage Calculator" version 1.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 201 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected136 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 34 | 33 | 136 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
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 | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin