Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▲685.48ms] 50% from 4 tests
This is a short check of server-side resources used by Goal Tracker for Patreon
Please fix the following
- CPU: Total CPU usage must kept under 500.00ms (currently 1,046.70ms on /wp-admin/options-general.php?page=goals_for_patreon_options)
- Extra CPU: The extra CPU usage should be kept under 200.00ms (currently 685.48ms on /wp-admin/options-general.php?page=goals_for_patreon_options)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.16 | 1,211.36 ▲1,189.55 |
Dashboard /wp-admin | 3.12 ▲0.06 | 1,199.17 ▲1,158.43 |
Posts /wp-admin/edit.php | 3.23 ▲0.12 | 940.96 ▲898.99 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 956.92 ▼188.58 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 910.45 ▲873.06 |
Goal Tracker for Patreon /wp-admin/options-general.php?page=goals_for_patreon_options | 3.00 | 1,046.70 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 2 new options
New WordPress options |
---|
widget_goaltrackerforpatreongoalwidget |
widget_goaltrackerforpatreonbuttonwidget |
Browser metrics Passed 4 tests
An overview of browser requirements for Goal Tracker for Patreon
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,834 ▲228 | 16.53 ▲0.63 | 12.39 ▲3.98 | 49.57 ▼2.62 |
Dashboard /wp-admin | 2,992 ▲145 | 6.57 ▲0.76 | 138.56 ▲4.06 | 101.23 ▼5.99 |
Posts /wp-admin/edit.php | 2,769 ▲63 | 2.87 ▲0.20 | 67.93 ▲5.58 | 101.36 ▲10.69 |
Add New Post /wp-admin/post-new.php | 2,502 ▲849 | 15.83 ▼2.81 | 373.39 ▲9.26 | 125.53 ▲17.24 |
Media Library /wp-admin/upload.php | 1,837 ▲65 | 5.13 ▲0.12 | 126.27 ▼37.50 | 102.92 ▼12.86 |
Goal Tracker for Patreon /wp-admin/options-general.php?page=goals_for_patreon_options | 2,415 | 2.93 | 94.47 | 73.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 2 options
- widget_goaltrackerforpatreongoalwidget
- widget_goaltrackerforpatreonbuttonwidget
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=goals_for_patreon_options
- > Notice in wp-content/plugins/goal-tracker-for-patreon/lib/Options.php+318
Undefined variable: toggleOptionName
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=goals_for_patreon_options
- > Notice in wp-content/plugins/goal-tracker-for-patreon/lib/Options.php+315
Undefined variable: name
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #2, #3, #4, #5 in goal-tracker-for-patreon/assets to your readme.txt
goal-tracker-for-patreon/goal-tracker-for-patreon.php Passed 13 tests
The principal PHP file in "Goal Tracker for Patreon" v. 0.4.6 is loaded by WordPress automatically on each request
95 characters long description:
This plugin connects to your Patreon account and allows you to show progress toward your goals.
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
Success! There were no dangerous files found in this plugin917 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 194 | 23 | 762 |
JavaScript | 2 | 17 | 3 | 83 |
CSS | 3 | 16 | 0 | 72 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 10.71 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 1 | 1.82% |
▷ Public methods | 48 | 87.27% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 12.73% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 27 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 27 | 100.00% |
▷ Public constants | 27 | 100.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin