78% publiq-wallet

Code Review | PUBLIQ Wallet

WordPress plugin PUBLIQ Wallet scored78%from 54 tests.

About plugin

  • Plugin page: publiq-wallet
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.2.2
  • WordPress version: 6.3.1
  • First release: Sep 9, 2019
  • Latest release: Sep 9, 2019
  • Number of updates: 4
  • Update frequency: every 18.0 days
  • Top authors: publiq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /886 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.06ms] Passed 4 tests

A check of server-side resources used by PUBLIQ Wallet
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.32 ▼1.31
Dashboard /wp-admin3.35 ▲0.0046.31 ▼12.43
Posts /wp-admin/edit.php3.40 ▲0.0449.22 ▲3.73
Add New Post /wp-admin/post-new.php5.93 ▲0.0481.21 ▼14.23
Media Library /wp-admin/upload.php3.27 ▲0.0440.97 ▲5.93
Welcome To PUBLIQ /wp-admin/index.php?page=pbq-wallet-about3.2429.08

Server storage [IO: ▲14.92MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by PUBLIQ Wallet
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲4814.42 ▲0.211.70 ▼0.0742.97 ▲2.86
Dashboard /wp-admin2,228 ▲505.60 ▼0.0480.44 ▼16.5174.74 ▲29.84
Posts /wp-admin/edit.php2,130 ▲301.96 ▼0.0435.32 ▼1.2937.22 ▲6.22
Add New Post /wp-admin/post-new.php1,553 ▲2522.82 ▼0.41727.02 ▲100.8359.07 ▲7.59
Media Library /wp-admin/upload.php1,430 ▲304.19 ▲0.0796.62 ▼17.3369.79 ▲22.74
Welcome To PUBLIQ /wp-admin/index.php?page=pbq-wallet-about84612.25107.0357.93

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 fix the following
  • 6× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/publiq-wallet/views/signin-password-dialog.php
    • > /wp-content/plugins/publiq-wallet/templates/admin/signin.php
    • > /wp-content/plugins/publiq-wallet/templates/admin/signup.php
    • > /wp-content/plugins/publiq-wallet/views/signup-password-dialog.php
    • > /wp-content/plugins/publiq-wallet/templates/admin/wallet.php
    • > /wp-content/plugins/publiq-wallet/views/signup-dialog.php
  • 9× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Use of undefined constant PBQ_WALLET_PLUGIN_URL - assumed 'PBQ_WALLET_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/publiq-wallet/templates/admin/wallet.php on line 195
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/publiq-wallet/templates/pages/signin-password.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/publiq-wallet/templates/pages/signup-password.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/publiq-wallet/views/signin-password-page.php:3
    • > PHP Warning
      Use of undefined constant PBQ_WALLET_PLUGIN_URL - assumed 'PBQ_WALLET_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/publiq-wallet/templates/admin/wallet.php on line 79
    • > PHP Warning
      Use of undefined constant PBQ_WALLET_PLUGIN_URL - assumed 'PBQ_WALLET_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/publiq-wallet/templates/admin/wallet.php on line 210
    • > PHP Warning
      Use of undefined constant PBQ_WALLET_PLUGIN_URL - assumed 'PBQ_WALLET_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/publiq-wallet/templates/admin/wallet.php on line 184
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/publiq-wallet/index.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/publiq-wallet/views/signup-password-page.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% 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
3 plugin tags: wallet, blockchain, cryptocurrency

publiq-wallet/index.php 77% from 13 tests

The principal PHP file in "PUBLIQ Wallet" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("publiq-wallet.php" instead of "index.php")
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin13,272 lines of code in 50 files:
LanguageFilesBlank linesComment linesLines of code
CSS31,1374457,679
JavaScript251,3936233,855
Sass4960922
PHP118316728
SVG50460
JSON20028

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions1588.24%
▷ Anonymous functions211.76%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin