Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼1.23MB] [CPU: ▼39.11ms] Passed 4 tests
A check of server-side resources used by DAO Login
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.74 ▼0.72 | 13.63 ▼21.00 |
Dashboard /wp-admin | 2.79 ▼0.52 | 15.94 ▼31.34 |
Posts /wp-admin/edit.php | 2.79 ▼0.57 | 16.61 ▼24.17 |
Add New Post /wp-admin/post-new.php | 2.79 ▼3.10 | 16.71 ▼79.91 |
Media Library /wp-admin/upload.php | 2.79 ▼0.44 | 15.48 ▼13.85 |
DAO Login /wp-admin/options-general.php?page=dao-login | 2.79 | 15.67 |
Server storage [IO: ▲2.99MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 81 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for DAO Login
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲80 | 14.37 ▼0.29 | 1.91 ▲0.45 | 33.55 ▼9.65 |
Dashboard /wp-admin | 2,207 ▲16 | 5.80 ▼0.09 | 93.67 ▼15.99 | 38.09 ▼7.37 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.06 ▲0.00 | 39.52 ▲2.37 | 36.41 ▲5.23 |
Add New Post /wp-admin/post-new.php | 6,243 ▲4,714 | 21.53 ▲3.29 | 828.44 ▲173.28 | 51.20 ▼7.18 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.26 ▲0.06 | 99.10 ▲3.54 | 41.34 ▼2.31 |
DAO Login /wp-admin/options-general.php?page=dao-login | 787 | 2.03 | 24.56 | 28.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'Artpi\WPDAOmembers_only_caps' not found or invalid function name
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=dao-login
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'Artpi\WPDAOmembers_only_caps' not found or invalid function name
- > GET request to /wp-admin/options-general.php?page=dao-login
- > Notice in wp-content/plugins/dao-login/dao-permissions.php+157
Trying to access array offset on value of type bool
SRP 50% 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
Please take a closer look at the following
- 33× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Exception: Extension bcmath not loaded in wp-content/plugins/dao-login/vendor/simplito/bigint-wrapper-php/lib/BigInteger.php:236
- > PHP Warning
require(wp-content/plugins/dao-login/vendor/simplito/elliptic-php/benchmarks/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/dao-login/vendor/simplito/elliptic-php/benchmarks/EllipticBench.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Elliptic\\Curve\\BaseCurve' not found in wp-content/plugins/dao-login/vendor/simplito/elliptic-php/lib/Curve/MontCurve.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function Artpi\\WPDAO\\add_action() in wp-content/plugins/dao-login/members-only.php:14
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/dao-login/vendor/simplito/elliptic-php/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/dao-login/vendor/simplito/elliptic-php/tests/PointCodecTest.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/dao-login/vendor/simplito/elliptic-php/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/dao-login/vendor/simplito/elliptic-php/tests/ECDSATest.php on line 2
- > PHP Fatal error
Uncaught Exception: Cannot use BigInteger. Neither gmp nor bcmath module is loaded in wp-content/plugins/dao-login/vendor/simplito/bigint-wrapper-php/lib/BigInteger.php:14
- > PHP Warning
require_once(wp-content/plugins/dao-login/vendor/simplito/elliptic-php/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/dao-login/vendor/simplito/elliptic-php/tests/PointCodecTest.php on line 2
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/dao-login/vendor/simplito/elliptic-php/benchmarks/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/dao-login/vendor/simplito/elliptic-php/benchmarks/EllipticBench.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/dao-login/vendor/simplito/elliptic-php/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/dao-login/vendor/simplito/elliptic-php/tests/HmacDRBGTest.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: nft, dao, sso, login, web3...
dao-login/dao-login.php Passed 13 tests
The main PHP script in "DAO Login" version 0.2.1 is automatically included on every request by WordPress
91 characters long description:
Make your site web3-ready: Log in with Ethereum or create users based on governance tokens.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected11,537 lines of code in 71 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 53 | 1,422 | 722 | 10,439 |
JSON | 9 | 0 | 0 | 871 |
JavaScript | 1 | 9 | 6 | 70 |
YAML | 3 | 13 | 0 | 61 |
XML | 2 | 4 | 0 | 50 |
Markdown | 2 | 10 | 0 | 36 |
make | 1 | 3 | 0 | 10 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 23.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 40 | |
▷ Abstract classes | 2 | 5.00% |
▷ Concrete classes | 38 | 95.00% |
▷ Final classes | 2 | 5.26% |
Methods | 559 | |
▷ Static methods | 95 | 16.99% |
▷ Public methods | 526 | 94.10% |
▷ Protected methods | 3 | 0.54% |
▷ Private methods | 30 | 5.37% |
Functions | 79 | |
▷ Named functions | 60 | 75.95% |
▷ Anonymous functions | 19 | 24.05% |
Constants | 14 | |
▷ Global constants | 8 | 57.14% |
▷ Class constants | 6 | 42.86% |
▷ Public constants | 1 | 16.67% |
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
There are no PNG files in this plugin