78% cardanopress-ispo

Code Review | CardanoPress - Initial Stake Pool Offering Dashboard

WordPress plugin CardanoPress - Initial Stake Pool Offering Dashboard scored78%from 54 tests.

About plugin

  • Plugin page: cardanopress-ispo
  • Plugin version: 1.4.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.4.1
  • WordPress version: 6.3.1
  • First release: Jan 20, 2023
  • Latest release: Nov 13, 2023
  • Number of updates: 15
  • Update frequency: every 19.8 days
  • Top authors: pbwebdev (80%)gaft (26.67%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,264 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /5.05 ▲1.5956.72 ▲12.33
Dashboard /wp-admin4.87 ▲1.5655.87 ▲6.60
Posts /wp-admin/edit.php4.92 ▲1.5678.75 ▲30.80
Add New Post /wp-admin/post-new.php7.47 ▲1.5896.01 ▲3.69
Media Library /wp-admin/upload.php4.79 ▲1.5649.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5514.21 ▼0.151.79 ▲0.1044.37 ▲3.91
Dashboard /wp-admin2,222 ▲445.63 ▲0.0290.93 ▼12.9640.04 ▼2.23
Posts /wp-admin/edit.php2,128 ▲281.94 ▼0.0840.08 ▲0.3236.56 ▲0.51
Add New Post /wp-admin/post-new.php1,550 ▲2122.60 ▼0.49654.68 ▲4.1356.76 ▲8.71
Media Library /wp-admin/upload.php1,427 ▲274.18 ▼0.0299.67 ▲1.4541.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

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)
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP3987,03713,86326,002
YAML141902,929
JavaScript1626215986
CSS612115611
Markdown41810396
JSON300149
XML1216

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 code0.40
Average class complexity9.53
▷ Minimum class complexity1.00
▷ Maximum class complexity88.00
Average method complexity2.63
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces46
Interfaces50
Traits18
Classes301
▷ Abstract classes258.31%
▷ Concrete classes27691.69%
▷ Final classes3813.77%
Methods2,033
▷ Static methods24912.25%
▷ Public methods1,53775.60%
▷ Protected methods26513.03%
▷ Private methods23111.36%
Functions156
▷ Named functions3119.87%
▷ Anonymous functions12580.13%
Constants160
▷ Global constants10.62%
▷ Class constants15999.38%
▷ Public constants12176.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