Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/disc-golf-metrix/discgolfmetrix-results-table.php+82
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▲0.02MB] [CPU: ▼155.22ms] Passed 4 tests
A check of server-side resources used by Disc Golf Metrix WP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 32.86 ▲4.36 |
Dashboard /wp-admin | 3.08 ▲0.02 | 53.66 ▼14.65 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 55.08 ▲1.35 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.00 | 97.25 ▼600.53 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 45.81 ▼7.06 |
Disc Golf Metrix /wp-admin/options-general.php?page=discgolfmetrix_options | 2.99 | 34.76 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Disc Golf Metrix WP
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,689 ▲117 | 15.91 ▲0.27 | 12.89 ▲0.94 | 51.33 ▲1.77 |
Dashboard /wp-admin | 2,977 ▲46 | 5.92 ▲0.04 | 158.38 ▼45.38 | 123.67 ▼25.27 |
Posts /wp-admin/edit.php | 2,755 ▲16 | 2.73 ▲0.03 | 77.81 ▲3.81 | 104.53 ▲0.57 |
Add New Post /wp-admin/post-new.php | 1,690 ▲109 | 18.41 ▲2.30 | 421.02 ▼313.83 | 125.17 ▼73.08 |
Media Library /wp-admin/upload.php | 1,817 ▲13 | 5.03 ▼0.05 | 182.91 ▼27.21 | 129.86 ▼28.72 |
Disc Golf Metrix /wp-admin/options-general.php?page=discgolfmetrix_options | 1,202 | 2.54 | 72.85 | 77.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 __() in wp-content/plugins/disc-golf-metrix/discgolfmetrix-l10n.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 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
1 plugin tags: discgolfmetrix
disc-golf-metrix/discgolfmetrix.php 77% from 13 tests
"Disc Golf Metrix WP" version 2.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Domain Path: The domain path folder does not exist ("/languages")
- Main file name: Name the main plugin file the same as the plugin slug ("disc-golf-metrix.php" instead of "discgolfmetrix.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin895 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 101 | 20 | 888 |
JavaScript | 2 | 0 | 2 | 4 |
CSS | 3 | 3 | 3 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 45.25 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 100.00 |
Average method complexity | 4.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 8 | 22.86% |
▷ Public methods | 35 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 11 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin