Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.58MB] [CPU: ▲2.38ms] 75% from 4 tests
An overview of server-side resources used by EthPress - Web3 Login
It is recommended to improve the following
- CPU: Total CPU usage must kept under 500.00ms (currently 2,060.73ms on /wp-admin/options-general.php?page=ethpress)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.10 ▲0.64 | 39.59 ▲3.65 |
Dashboard /wp-admin | 3.94 ▲0.63 | 55.95 ▲9.02 |
Posts /wp-admin/edit.php | 3.99 ▲0.63 | 52.96 ▲4.37 |
Add New Post /wp-admin/post-new.php | 6.46 ▲0.57 | 84.77 ▼7.54 |
Media Library /wp-admin/upload.php | 3.70 ▲0.47 | 42.23 ▲9.56 |
EthPress /wp-admin/options-general.php?page=ethpress | 3.94 | 2,060.73 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 4.05 | 37.49 |
Server storage [IO: ▲4.64MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 255 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_ethpress |
fs_accounts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
fs_debug_mode |
can_compress_scripts |
fs_active_plugins |
Browser metrics Passed 4 tests
A check of browser resources used by EthPress - Web3 Login
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲48 | 56.70 ▲42.33 | 1.58 ▼0.12 | 27.13 ▼11.08 |
Dashboard /wp-admin | 2,228 ▲51 | 5.57 ▼0.10 | 92.35 ▼6.03 | 42.64 ▼0.32 |
Posts /wp-admin/edit.php | 2,134 ▲31 | 2.14 ▲0.11 | 40.17 ▼2.81 | 38.30 ▲1.35 |
Add New Post /wp-admin/post-new.php | 1,546 ▲15 | 23.35 ▲0.17 | 671.82 ▼1.80 | 55.02 ▼7.66 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.19 ▲0.07 | 97.31 ▼7.60 | 44.74 ▼2.38 |
EthPress /wp-admin/options-general.php?page=ethpress | 981 | 1.70 | 24.40 | 58.51 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,068 | 1.69 | 24.93 | 26.75 |
Uninstaller [IO: ▲4.64MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the followingZombie WordPress options detected upon uninstall: 10 options
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/ethpress/freemius/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- This plugin has failed uninstalling correctly, leaving 255 files (4.64MB) in the plugin directory
- (new file) app/Admin/Options.php
- (new file) app/Dependencies/Elliptic/Curve/MontCurve.php
- (new file) app/Dependencies/BI/BigInteger.php
- (new file) app/Dependencies/Elliptic/Curve/BaseCurve.php
- (new file) app/Address.php
- (new file) app/Dependencies/BN/Red.php
- (new file) app/Dependencies/Elliptic/Curve/BaseCurve/Point.php
- (new file) app/Dependencies/Elliptic/Curve/EdwardsCurve/Point.php
- (new file) app/Dependencies/BN/BN.php
- (new file) app/Dependencies/Elliptic/Curve/EdwardsCurve.php
- ...
- widget_recent-posts
- widget_ethpress
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- fs_active_plugins
- fs_accounts
- widget_theysaidso_widget
- can_compress_scripts
- fs_debug_mode
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'losnappas\\Ethpress\\Dependencies\\Elliptic\\Curve\\BaseCurve' not found in wp-content/plugins/ethpress/app/Dependencies/Elliptic/Curve/EdwardsCurve.php:7
- > PHP Fatal error
Uncaught Error: Class 'losnappas\\Ethpress\\Dependencies\\Elliptic\\Curve\\BaseCurve' not found in wp-content/plugins/ethpress/app/Dependencies/Elliptic/Curve/MontCurve.php:9
- > PHP Fatal error
Uncaught Exception: Cannot use BigInteger. Neither gmp nor bcmath module is loaded in wp-content/plugins/ethpress/app/Dependencies/BI/BigInteger.php:14
- > PHP Fatal error
Uncaught Error: Class 'losnappas\\Ethpress\\Dependencies\\Elliptic\\Curve\\BaseCurve\\Point' not found in wp-content/plugins/ethpress/app/Dependencies/Elliptic/Curve/MontCurve/Point.php:7
- > PHP Fatal error
Uncaught Error: Class 'losnappas\\Ethpress\\Dependencies\\Elliptic\\Curve\\BaseCurve\\Point' not found in wp-content/plugins/ethpress/app/Dependencies/Elliptic/Curve/EdwardsCurve/Point.php:6
- > PHP Fatal error
Uncaught Error: Class 'losnappas\\Ethpress\\Dependencies\\Elliptic\\Curve\\PresetCurve' not found in wp-content/plugins/ethpress/app/Dependencies/Elliptic/Curves.php:23
- > PHP Fatal error
Uncaught Error: Class 'losnappas\\Ethpress\\Dependencies\\Elliptic\\Curve\\BaseCurve' not found in wp-content/plugins/ethpress/app/Dependencies/Elliptic/Curve/ShortCurve.php:10
- > PHP Fatal error
Uncaught Error: Class 'losnappas\\Ethpress\\Dependencies\\Elliptic\\Curve\\BaseCurve\\Point' not found in wp-content/plugins/ethpress/app/Dependencies/Elliptic/Curve/ShortCurve/JPoint.php:7
- > PHP Fatal error
Uncaught Error: Class 'losnappas\\Ethpress\\Dependencies\\Elliptic\\Curve\\BaseCurve\\Point' not found in wp-content/plugins/ethpress/app/Dependencies/Elliptic/Curve/ShortCurve/Point.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: web3, login, nft, trust wallet, ethereum...
ethpress/ethpress.php Passed 13 tests
The main file in "EthPress - Web3 Login" v. 2.2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
62 characters long description:
Ethereum Web3 login. Enable crypto wallet logins to WordPress.
Code Analysis 97% 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
There were no executable files found in this plugin45,227 lines of code in 198 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 169 | 9,510 | 18,893 | 44,375 |
PO File | 1 | 127 | 168 | 324 |
JavaScript | 7 | 46 | 137 | 292 |
CSS | 16 | 23 | 1 | 172 |
JSON | 1 | 0 | 0 | 38 |
Markdown | 2 | 15 | 0 | 24 |
SVG | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 60.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 92 | |
▷ Abstract classes | 4 | 4.35% |
▷ Concrete classes | 88 | 95.65% |
▷ Final classes | 2 | 2.27% |
Methods | 1,817 | |
▷ Static methods | 361 | 19.87% |
▷ Public methods | 1,393 | 76.66% |
▷ Protected methods | 22 | 1.21% |
▷ Private methods | 402 | 22.12% |
Functions | 152 | |
▷ Named functions | 143 | 94.08% |
▷ Anonymous functions | 9 | 5.92% |
Constants | 160 | |
▷ Global constants | 108 | 67.50% |
▷ Class constants | 52 | 32.50% |
▷ Public constants | 52 | 100.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
9 PNG files occupy 0.26MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
public/images/download-metamask-dark.png | 76.53KB | 33.40KB | ▼ 56.35% |
public/images/download-metamask-small.png | 21.62KB | 8.81KB | ▼ 59.25% |
public/images/download-metamask.png | 75.67KB | 31.58KB | ▼ 58.27% |
public/images/download-metamask-dark-small.png | 21.78KB | 8.80KB | ▼ 59.59% |