Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.97MB] [CPU: ▲1.30ms] Passed 4 tests
Server-side resources used by Crypto
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.38 ▲0.92 | 57.17 ▲15.99 |
Dashboard /wp-admin | 4.31 ▲0.96 | 52.51 ▼11.77 |
Posts /wp-admin/edit.php | 4.36 ▲1.00 | 49.90 ▼2.67 |
Add New Post /wp-admin/post-new.php | 6.94 ▲1.05 | 105.52 ▲20.64 |
Media Library /wp-admin/upload.php | 4.23 ▲1.00 | 41.45 ▲3.65 |
Settings /wp-admin/admin.php?page=crypto_settings | 4.16 | 39.24 |
Dashboard /wp-admin/admin.php?page=crypto | 4.17 | 37.01 |
Server storage [IO: ▲4.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 118 new files
Database: no new tables, 16 new options
New WordPress options |
---|
crypto_marketplace_settings |
theysaidso_admin_options |
crypto_login_metamask |
crypto_general_settings |
crypto_price_settings |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
crypto_access_other |
crypto_access_settings_start |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Crypto
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,991 ▲245 | 18.83 ▲4.21 | 134.14 ▲132.35 | 37.84 ▼4.86 |
Dashboard /wp-admin | 2,264 ▲76 | 5.84 ▲0.98 | 99.82 ▼14.31 | 38.55 ▼5.43 |
Posts /wp-admin/edit.php | 2,147 ▲58 | 2.03 ▲0.03 | 36.79 ▼0.50 | 36.84 ▲5.54 |
Add New Post /wp-admin/post-new.php | 6,267 ▲4,748 | 18.93 ▼4.41 | 907.75 ▲265.35 | 37.84 ▼11.86 |
Media Library /wp-admin/upload.php | 1,446 ▲58 | 4.26 ▲0.09 | 100.16 ▲5.09 | 41.35 ▼3.17 |
Settings /wp-admin/admin.php?page=crypto_settings | 848 | 2.07 | 26.57 | 26.52 |
Dashboard /wp-admin/admin.php?page=crypto | 871 | 2.03 | 23.68 | 45.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 16 options
- crypto_general_settings
- crypto_access_other
- widget_cryptologin_widget
- crypto_access_settings_start
- theysaidso_admin_options
- widget_recent-comments
- crypto_price_settings
- widget_recent-posts
- crypto_login_metamask
- widget_theysaidso_widget
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/crypto/admin/partials/crypto-admin-display.php
- > /wp-content/plugins/crypto/public/partials/crypto-public-display.php
- 17× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/crypto/admin/partials/settings.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/crypto/includes/class-crypto-domain-url.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function crypto_get_option() in wp-content/plugins/crypto/includes/class-crypto-price.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function crypto_get_option() in wp-content/plugins/crypto/includes/class-crypto-block.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/crypto/includes/class-crypto-add-token.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/crypto/includes/dashboard/class-crypto-dashboard-intro.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/crypto/includes/class-crypto-json.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/crypto/includes/class-crypto_connect_ajax_register.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/crypto/includes/class-crypto-domain-search.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/crypto/includes/class-crypto-domain-info.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: No descriptions were found for these screenshots #4, #5 in crypto/assets to your readme.txt
crypto/crypto.php Passed 13 tests
The entry point to "Crypto" version 2.10 is a PHP file that has certain tags in its header comment area
28 characters long description:
Crypto - everyday use tools.
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
Success! There were no dangerous files found in this plugin35,527 lines of code in 85 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 11 | 0 | 0 | 28,495 |
PHP | 35 | 1,065 | 1,070 | 4,904 |
JavaScript | 19 | 343 | 989 | 1,935 |
Sass | 8 | 8 | 0 | 76 |
SVG | 1 | 0 | 1 | 60 |
CSS | 11 | 12 | 86 | 57 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 13.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 23 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 174 | |
▷ Static methods | 2 | 1.15% |
▷ Public methods | 162 | 93.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 6.90% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/yak.png | 10.67KB | 4.29KB | ▼ 59.77% |
public/img/warning.png | 0.47KB | 0.45KB | ▼ 4.14% |
public/img/success.png | 0.69KB | 0.65KB | ▼ 5.54% |
public/img/notice.png | 0.46KB | 0.48KB | 0.00% |
public/img/error.png | 0.70KB | 0.74KB | 0.00% |