Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲3.92MB] [CPU: ▼271.23ms] Passed 4 tests
An overview of server-side resources used by Cryptocurrency Portfolio Tracker
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.45 ▲3.93 | 81.05 ▲14.03 |
Dashboard /wp-admin | 7.35 ▲3.94 | 61.59 ▲25.98 |
Posts /wp-admin/edit.php | 7.62 ▲3.97 | 64.91 ▲26.48 |
Add New Post /wp-admin/post-new.php | 10.86 ▲3.88 | 116.94 ▼1,146.19 |
Media Library /wp-admin/upload.php | 7.25 ▲3.95 | 47.06 ▲21.28 |
Freemius Debug [v.2.0.1] /wp-admin/admin.php?page=freemius | 7.47 | 50.01 |
Server storage [IO: ▲2.64MB] [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: 204 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_accounts |
fs_active_plugins |
fs_api_cache |
fs_debug_mode |
Browser metrics Passed 4 tests
An overview of browser requirements for Cryptocurrency Portfolio Tracker
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,063 ▲309 | 21.34 ▲5.42 | 6.10 ▼1.41 | 2.26 ▼0.89 |
Dashboard /wp-admin | 3,170 ▲312 | 11.29 ▲5.12 | 197.85 ▲63.68 | 171.97 ▲9.23 |
Posts /wp-admin/edit.php | 3,006 ▲349 | 8.32 ▲5.08 | 142.08 ▲76.42 | 150.94 ▲4.27 |
Add New Post /wp-admin/post-new.php | 1,688 ▼64 | 22.31 ▲0.73 | 468.71 ▲6.61 | 153.29 ▼6.79 |
Media Library /wp-admin/upload.php | 1,781 ▲83 | 8.68 ▲3.23 | 171.77 ▲6.59 | 198.87 ▼2.93 |
Cryptocurrency /wp-admin/crb_carbon_fields_container_cryptocurrency.php | 26 | 0.94 | 0.03 | 20.79 |
Freemius Debug [v.2.0.1] /wp-admin/admin.php?page=freemius | 1,751 | 7.97 | 133.72 | 130.33 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 4 options in the database
- fs_accounts
- fs_active_plugins
- fs_debug_mode
- fs_api_cache
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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
Please fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/cryptocurrency/freemius/templates/ajax-loader.php
- > /wp-content/plugins/cryptocurrency/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 118× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Comparer\\Comparer' not found in wp-content/plugins/cryptocurrency/vendor/htmlburger/carbon-fields/core/Container/Condition/Comparer/Scalar_Comparer.php:7
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Widget\\Widget' not found in wp-content/plugins/cryptocurrency/vendor/htmlburger/carbon-fields/core/Widget.php:11
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Term_Condition' not found in wp-content/plugins/cryptocurrency/vendor/htmlburger/carbon-fields/core/Container/Condition/Term_Parent_Condition.php:28
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/cryptocurrency/freemius/templates/account/partials/addon.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Carbon_Fields\\Datastore\\Datastore_Holder_Interface' not found in wp-content/plugins/cryptocurrency/vendor/htmlburger/carbon-fields/core/Field/Field.php:18
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/cryptocurrency/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Ancestor_ID_Condition.php:10
- > PHP Fatal error
Uncaught Error: Class 'Cryptocurrency\\Cache\\Cache' not found in wp-content/plugins/cryptocurrency/cryptocurrency/cache/transient.php:5
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Select_Field' not found in wp-content/plugins/cryptocurrency/vendor/htmlburger/carbon-fields/core/Field/Radio_Image_Field.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/cryptocurrency/vendor/htmlburger/carbon-fields/core/Field/Html_Field.php:9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/cryptocurrency/freemius/templates/account/partials/addon.php on line 7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/crb_carbon_fields_container_cryptocurrency.php
- > Network (severe)
wp-admin/crb_carbon_fields_container_cryptocurrency.php - Failed to load resource: the server responded with a status of 404 (Not 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
Attributes that require attention:
- Screenshots: These screenshots need descriptions #1, #2 in cryptocurrency/assets to your readme.txt
cryptocurrency/cryptocurrency.php Passed 13 tests
"Cryptocurrency Portfolio Tracker" version 0.0.17's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
72 characters long description:
Enter your cryptocurrency purchases and track their pricing in real time
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected109,754 lines of code in 486 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 146 | 16,002 | 28,559 | 60,151 |
PHP | 246 | 8,094 | 19,259 | 32,240 |
PO File | 19 | 4,554 | 5,481 | 9,983 |
SVG | 1 | 122 | 1 | 3,782 |
Sass | 23 | 377 | 77 | 2,357 |
CSS | 38 | 296 | 125 | 643 |
JSON | 7 | 0 | 0 | 336 |
Markdown | 4 | 78 | 0 | 234 |
YAML | 2 | 2 | 0 | 28 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please tend to the following items
- Class cyclomatic complexity should be reduced to less than 1000 (currently 2,092)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 22.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,092.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 30 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 169 | |
▷ Abstract classes | 16 | 9.47% |
▷ Concrete classes | 153 | 90.53% |
▷ Final classes | 1 | 0.65% |
Methods | 1,796 | |
▷ Static methods | 237 | 13.20% |
▷ Public methods | 1,349 | 75.11% |
▷ Protected methods | 166 | 9.24% |
▷ Private methods | 281 | 15.65% |
Functions | 183 | |
▷ Named functions | 112 | 61.20% |
▷ Anonymous functions | 71 | 38.80% |
Constants | 136 | |
▷ Global constants | 94 | 69.12% |
▷ Class constants | 42 | 30.88% |
▷ Public constants | 42 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |