Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲1.56MB] [CPU: ▲10.39ms] Passed 4 tests
Server-side resources used by CardanoPress - Initial Stake Pool Offering Dashboard
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.05 ▲1.59 | 56.72 ▲12.33 |
Dashboard /wp-admin | 4.87 ▲1.56 | 55.87 ▲6.60 |
Posts /wp-admin/edit.php | 4.92 ▲1.56 | 78.75 ▲30.80 |
Add New Post /wp-admin/post-new.php | 7.47 ▲1.58 | 96.01 ▲3.69 |
Media Library /wp-admin/upload.php | 4.79 ▲1.56 | 49.83 ▲18.93 |
Server storage [IO: ▲1.97MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Please fix the following
- The plugin illegally modified 1 file (0.12KB) outside of "wp-content/plugins/cardanopress-ispo/" and "wp-content/uploads/"
- (new file) wp-content/cardanopress-logs/2023/11/13/installer.log
Filesystem: 434 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
cp_ispo_version |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for CardanoPress - Initial Stake Pool Offering Dashboard
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲55 | 14.21 ▼0.15 | 1.79 ▲0.10 | 44.37 ▲3.91 |
Dashboard /wp-admin | 2,222 ▲44 | 5.63 ▲0.02 | 90.93 ▼12.96 | 40.04 ▼2.23 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 1.94 ▼0.08 | 40.08 ▲0.32 | 36.56 ▲0.51 |
Add New Post /wp-admin/post-new.php | 1,550 ▲21 | 22.60 ▼0.49 | 654.68 ▲4.13 | 56.76 ▲8.71 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.18 ▼0.02 | 99.67 ▲1.45 | 41.24 ▼1.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- cp_ispo_version
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/cardanopress-ispo/templates/part/estimate-result.php
- > /wp-content/plugins/cardanopress-ispo/templates/part/track-result.php
- > /wp-content/plugins/cardanopress-ispo/templates/part/delegate-result.php
- > /wp-content/plugins/cardanopress-ispo/templates/part/estimate-calculator.php
- 213× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CardanoPress\\Dependencies\\Monolog\\Handler\\MailHandler' not found in wp-content/plugins/cardanopress-ispo/dependencies/vendor/cardanopress/framework/dependencies/Monolog/Handler/SymfonyMailerHandler.php:29
- > PHP Fatal error
Uncaught Error: Class 'CardanoPress\\Dependencies\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/cardanopress-ispo/dependencies/vendor/cardanopress/framework/dependencies/Monolog/Handler/IFTTTHandler.php:28
- > PHP Fatal error
Uncaught Error: Class 'CardanoPress\\Dependencies\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/cardanopress-ispo/dependencies/vendor/cardanopress/framework/dependencies/Monolog/Handler/RedisHandler.php:31
- > PHP Fatal error
Uncaught Error: Interface 'CardanoPress\\Dependencies\\Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/cardanopress-ispo/dependencies/vendor/cardanopress/framework/dependencies/GuzzleHttp/Psr7/Stream.php:12
- > PHP Fatal error
Uncaught Error: Class 'CardanoPress\\Dependencies\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/cardanopress-ispo/dependencies/vendor/cardanopress/framework/dependencies/Monolog/Handler/PHPConsoleHandler.php:44
- > PHP Fatal error
Uncaught Error: Class 'CardanoPress\\Dependencies\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/cardanopress-ispo/dependencies/vendor/cardanopress/framework/dependencies/Monolog/Handler/CubeHandler.php:24
- > PHP Fatal error
Uncaught Error: Class 'CardanoPress\\Dependencies\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/cardanopress-ispo/dependencies/vendor/cardanopress/framework/dependencies/Monolog/Handler/RollbarHandler.php:34
- > PHP Fatal error
Uncaught Error: Class 'CardanoPress\\Dependencies\\Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/cardanopress-ispo/dependencies/vendor/cardanopress/framework/dependencies/Monolog/Handler/LogmaticHandler.php:21
- > PHP Fatal error
Uncaught Error: Interface 'CardanoPress\\Dependencies\\Psr\\Log\\LoggerInterface' not found in wp-content/plugins/cardanopress-ispo/dependencies/vendor/cardanopress/framework/dependencies/Monolog/Logger.php:34
- > PHP Fatal error
Uncaught Error: Class 'CardanoPress\\SharedBase' not found in wp-content/plugins/cardanopress-ispo/dependencies/vendor/cardanopress/framework/src/Foundation/AbstractManifest.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (CardanoPress ISPO configuration screen), #2 (GoKey ISPO Rewards Calculator), #3 (GoKey ISPO Stake Pool Stats & Delegation)
cardanopress-ispo/cardanopress-ispo.php Passed 13 tests
"CardanoPress - Initial Stake Pool Offering Dashboard" version 1.4.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
33 characters long description:
A CardanoPress extension for ISPO
Code Analysis Passed 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
No dangerous file extensions were detected31,079 lines of code in 429 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 398 | 7,037 | 13,863 | 26,002 |
YAML | 1 | 419 | 0 | 2,929 |
JavaScript | 16 | 262 | 15 | 986 |
CSS | 6 | 121 | 15 | 611 |
Markdown | 4 | 181 | 0 | 396 |
JSON | 3 | 0 | 0 | 149 |
XML | 1 | 2 | 1 | 6 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 9.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 46 | |
Interfaces | 50 | |
Traits | 18 | |
Classes | 301 | |
▷ Abstract classes | 25 | 8.31% |
▷ Concrete classes | 276 | 91.69% |
▷ Final classes | 38 | 13.77% |
Methods | 2,033 | |
▷ Static methods | 249 | 12.25% |
▷ Public methods | 1,537 | 75.60% |
▷ Protected methods | 265 | 13.03% |
▷ Private methods | 231 | 11.36% |
Functions | 156 | |
▷ Named functions | 31 | 19.87% |
▷ Anonymous functions | 125 | 80.13% |
Constants | 160 | |
▷ Global constants | 1 | 0.62% |
▷ Class constants | 159 | 99.38% |
▷ Public constants | 121 | 76.10% |
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
PNG images were not found in this plugin