Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.29ms] Passed 4 tests
Server-side resources used by Crypto Prices
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 37.81 ▼2.82 |
Dashboard /wp-admin | 3.32 ▲0.02 | 55.73 ▲5.28 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.26 ▼0.04 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 89.56 ▼8.43 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.94 ▼1.87 |
Crypto Prices /wp-admin/options-general.php?page=crypto-prices | 3.25 | 34.53 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
crypto_prices_install_date |
db_upgraded |
can_compress_scripts |
crypto_prices_last_fetch_upsell |
widget_theysaidso_widget |
crypto_prices_options |
Browser metrics Passed 4 tests
Checking browser requirements for Crypto Prices
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.70 ▲0.21 | 1.93 ▲0.35 | 45.52 ▲3.92 |
Dashboard /wp-admin | 2,196 ▲16 | 5.59 ▼0.05 | 86.53 ▼5.90 | 40.83 ▼2.52 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.99 ▼0.04 | 38.50 ▼1.51 | 36.45 ▼2.03 |
Add New Post /wp-admin/post-new.php | 1,531 ▼4 | 23.07 ▲5.01 | 663.68 ▼7.91 | 60.33 ▼8.12 |
Media Library /wp-admin/upload.php | 1,395 ▼8 | 4.20 ▼0.03 | 97.10 ▼18.77 | 45.15 ▼3.40 |
Crypto Prices /wp-admin/options-general.php?page=crypto-prices | 911 | 1.99 | 29.39 | 30.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- crypto_prices_options
- crypto_prices_install_date
- theysaidso_admin_options
- crypto_prices_last_fetch_upsell
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=crypto-prices
- > Warning in wp-content/plugins/crypto-prices/admin/partials/admin-display.php+75
Invalid argument supplied for foreach()
SRP 50% 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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/crypto-prices/includes/class-loader.php:123
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/crypto-prices/admin/partials/admin-display.php:15
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: crypto, ripple, cryptocurrency, ethereum, bitcoin
crypto-prices/crypto-prices.php Passed 13 tests
"Crypto Prices" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
52 characters long description:
Add inline cryptocurrency prices to your blog posts.
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
Everything looks great! No dangerous files found in this plugin554 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 103 | 530 | 512 |
CSS | 2 | 4 | 0 | 42 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 7 | 21.88% |
▷ Public methods | 28 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 12.50% |
Functions | 8 | |
▷ Named functions | 8 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin