Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲5.43MB] [CPU: ▲27.59ms] 50% from 4 tests
Analyzing server-side resources used by EthereumICO
Please have a look at the following items
- CPU: The total CPU usage must kept under 500.00ms (currently 2,105.54ms on /wp-admin/options-general.php?page=ethereum-ico)
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.43MB on /wp-admin/options-general.php?page=ethereum-ico)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.14 ▲5.67 | 702.37 ▲664.10 |
Dashboard /wp-admin | 9.16 ▲5.85 | 78.30 ▲30.11 |
Posts /wp-admin/edit.php | 9.16 ▲5.80 | 91.34 ▲39.75 |
Add New Post /wp-admin/post-new.php | 10.28 ▲4.39 | 110.86 ▲3.25 |
Media Library /wp-admin/upload.php | 9.16 ▲5.92 | 73.96 ▲37.23 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 9.16 | 62.88 |
EthereumICO /wp-admin/options-general.php?page=ethereum-ico | 9.16 | 2,105.54 |
Server storage [IO: ▲10.24MB] [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: 843 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_debug_mode |
widget_theysaidso_widget |
fs_accounts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
fs_active_plugins |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for EthereumICO
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲81 | 14.74 ▲0.06 | 1.62 ▼0.31 | 32.68 ▼10.46 |
Dashboard /wp-admin | 2,225 ▲37 | 5.80 ▼0.09 | 101.38 ▼8.75 | 42.25 ▲2.03 |
Posts /wp-admin/edit.php | 2,114 ▲25 | 2.05 ▲0.03 | 40.18 ▼1.83 | 37.63 ▲2.04 |
Add New Post /wp-admin/post-new.php | 1,522 ▼11 | 23.00 ▼0.02 | 633.32 ▲25.14 | 51.28 ▲1.73 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.18 ▲0.02 | 94.82 ▼6.95 | 46.35 ▲2.38 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,067 | 1.68 | 29.60 | 24.78 |
EthereumICO /wp-admin/options-general.php?page=ethereum-ico | 980 | 1.71 | 26.69 | 60.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/ethereumico/vendor/freemius/wordpress-sdk/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 9 options in the database
- fs_active_plugins
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- fs_accounts
- db_upgraded
- theysaidso_admin_options
- fs_debug_mode
- widget_theysaidso_widget
Smoke tests 75% 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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 325× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE\\ConstantTime\\Base64' not found in wp-content/plugins/ethereumico/vendor/paragonie/constant_time_encoding/src/Base64DotSlash.php:34
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/ethereumico/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:5
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\Formats\\Signature\\Raw' not found in wp-content/plugins/ethereumico/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Formats/Signature/Raw.php:27
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\BlockCipher' not found in wp-content/plugins/ethereumico/vendor/phpseclib/phpseclib/phpseclib/Crypt/Blowfish.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ethereumico/vendor/olegabr/ethereumicoio-blockchains-info/bsc-mainnet.php:12
- > PHP Fatal error
Uncaught Error: Class 'Web3\\Methods\\EthMethod' not found in wp-content/plugins/ethereumico/vendor/olegabr/web3.php/src/Methods/Eth/GetBlockTransactionCountByNumber.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/ethereumico/vendor/guzzlehttp/psr7/src/UploadedFile.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/ethereumico/vendor/guzzlehttp/psr7/src/DroppingStream.php:13
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/ethereumico/vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php:5
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Math\\BigInteger\\Engines\\PHP\\Base' not found in wp-content/plugins/ethereumico/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/PHP/Reductions/EvalBarrett.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: cryptocurrency, initial coin offering, ethereum, ico, crypto...
ethereumico/ethereum-ico.php 85% from 13 tests
This is the main PHP file of "EthereumICO" version 2.4.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ethereumico.php" instead of "ethereum-ico.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin103,542 lines of code in 779 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 739 | 18,281 | 51,784 | 88,304 |
CSS | 18 | 1,120 | 36 | 10,363 |
SVG | 1 | 0 | 0 | 2,671 |
JSON | 7 | 0 | 0 | 1,170 |
PO File | 1 | 136 | 152 | 491 |
XML | 5 | 0 | 0 | 336 |
JavaScript | 6 | 34 | 63 | 197 |
YAML | 1 | 0 | 0 | 7 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 0% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
- Method cyclomatic complexity should be reduced to less than 100 (currently 105)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 18.96 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 105.00 |
Code structure | ||
---|---|---|
Namespaces | 65 | |
Interfaces | 36 | |
Traits | 7 | |
Classes | 577 | |
▷ Abstract classes | 207 | 35.88% |
▷ Concrete classes | 370 | 64.12% |
▷ Final classes | 50 | 13.51% |
Methods | 3,636 | |
▷ Static methods | 867 | 23.84% |
▷ Public methods | 2,699 | 74.23% |
▷ Protected methods | 234 | 6.44% |
▷ Private methods | 703 | 19.33% |
Functions | 447 | |
▷ Named functions | 231 | 51.68% |
▷ Anonymous functions | 216 | 48.32% |
Constants | 526 | |
▷ Global constants | 105 | 19.96% |
▷ Class constants | 421 | 80.04% |
▷ Public constants | 410 | 97.39% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/freemius/wordpress-sdk/assets/img/ethereumico.png | 7.79KB | 3.92KB | ▼ 49.69% |
vendor/freemius/wordpress-sdk/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
vendor/freemius/wordpress-sdk/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |