WordPress plugin Prompt.Cash scored78%from 54 tests.

About plugin

  • Plugin page: prompt-cash-monet...
  • Plugin version: 1.0.21
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Apr 13, 2021
  • Latest release: Nov 19, 2023
  • Number of updates: 46
  • Update frequency: every 20.7 days
  • Top authors: ekliptor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,242 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.71MB] [CPU: ▲3.51ms] Passed 4 tests

This is a short check of server-side resources used by Prompt.Cash
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.15 ▲0.6943.88 ▲0.49
Dashboard /wp-admin4.02 ▲0.7250.31 ▲1.61
Posts /wp-admin/edit.php4.14 ▲0.7851.58 ▲8.23
Add New Post /wp-admin/post-new.php6.61 ▲0.7393.71 ▲4.64
Media Library /wp-admin/upload.php3.94 ▲0.7238.39 ▲7.29

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 83 new files
Database: 2 new tables, 9 new options
New tables
wp_prc_sessions
wp_prc_transactions
New WordPress options
promptcash_settings
promptcash_version
db_upgraded
promptcash_tables
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Prompt.Cash
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,927 ▲16513.46 ▼0.8910.69 ▲8.9335.92 ▼8.86
Dashboard /wp-admin2,210 ▲335.57 ▼0.0789.27 ▼7.7173.53 ▲37.02
Posts /wp-admin/edit.php2,130 ▲271.98 ▼0.0242.64 ▲2.5334.61 ▼4.38
Add New Post /wp-admin/post-new.php1,561 ▲2222.65 ▼0.62669.78 ▲40.6456.09 ▲8.88
Media Library /wp-admin/upload.php1,424 ▲244.19 ▲0.0497.08 ▼4.7167.48 ▲24.86

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 14× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/prompt-cash-monetize-your-blog-with-bitcoin-cash/tpl/client/button/hiddenContent.php
    • > /wp-content/plugins/prompt-cash-monetize-your-blog-with-bitcoin-cash/tpl/client/button/button.php
    • > /wp-content/plugins/prompt-cash-monetize-your-blog-with-bitcoin-cash/tpl/client/RestrictContentPro/payFrame.php
    • > /wp-content/plugins/prompt-cash-monetize-your-blog-with-bitcoin-cash/tpl/admin/mainSettingsWrap.php
    • > /wp-content/plugins/prompt-cash-monetize-your-blog-with-bitcoin-cash/tpl/client/woocommerce/paidMsg.php
    • > /wp-content/plugins/prompt-cash-monetize-your-blog-with-bitcoin-cash/tpl/admin/mainSettings.php
    • > /wp-content/plugins/prompt-cash-monetize-your-blog-with-bitcoin-cash/tpl/client/woocommerce/payFrame.php
    • > /wp-content/plugins/prompt-cash-monetize-your-blog-with-bitcoin-cash/tpl/message.php
    • > /wp-content/plugins/prompt-cash-monetize-your-blog-with-bitcoin-cash/tpl/cookieConfirm.php
    • > /wp-content/plugins/prompt-cash-monetize-your-blog-with-bitcoin-cash/tpl/client/button/blurryImages.php
  • 17× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Ekliptor\\PromptCash\\AbstractImage' not found in wp-content/plugins/prompt-cash-monetize-your-blog-with-bitcoin-cash/classes/blurry/ImageCache.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Ekliptor\\PromptCash\\AbstractSessionHandler' not found in wp-content/plugins/prompt-cash-monetize-your-blog-with-bitcoin-cash/classes/Session/MysqlWpSessionHandler.php:9
    • > PHP Warning
      require_once(PRCA__PLUGIN_DIRclasses/Settings.php): failed to open stream: No such file or directory in wp-content/plugins/prompt-cash-monetize-your-blog-with-bitcoin-cash/classes/PromptCash.php on line 5
    • > PHP Fatal error
      Uncaught Error: Class 'Ekliptor\\PromptCash\\AbstractSessionHandler' not found in wp-content/plugins/prompt-cash-monetize-your-blog-with-bitcoin-cash/classes/Session/MemcachedSessionHandler.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/prompt-cash-monetize-your-blog-with-bitcoin-cash/tpl/admin/metaboxBlur.php:1
    • > PHP Fatal error
      require_once(): Failed opening required 'PRCA__PLUGIN_DIRclasses/Settings.php' (include_path='.:/usr/share/php') in wp-content/plugins/prompt-cash-monetize-your-blog-with-bitcoin-cash/classes/PromptCash.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/prompt-cash-monetize-your-blog-with-bitcoin-cash/tpl/admin/metaboxPayment.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/prompt-cash-monetize-your-blog-with-bitcoin-cash/tpl/admin/metaboxAdvanced.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/prompt-cash-monetize-your-blog-with-bitcoin-cash/tpl/admin/metaboxAccount.php:2
    • > PHP Warning
      require_once(PRCA__PLUGIN_DIRclasses/Session/MemcachedSessionHandler.php): failed to open stream: No such file or directory in wp-content/plugins/prompt-cash-monetize-your-blog-with-bitcoin-cash/classes/Session/AbstractSessionHandler.php on line 31

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

prompt-cash-monetize-your-blog-with-bitcoin-cash/prompt-cash.php 85% from 13 tests

The entry point to "Prompt.Cash" version 1.0.21 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("prompt-cash-monetize-your-blog-with-bitcoin-cash.php" instead of "prompt-cash.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected4,615 lines of code in 68 files:
LanguageFilesBlank linesComment linesLines of code
PHP496111,0693,367
TypeScript12150139822
CSS26618336
JSON20046
JavaScript292932
Markdown17012

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity16.59
▷ Minimum class complexity1.00
▷ Maximum class complexity73.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes29
▷ Abstract classes13.45%
▷ Concrete classes2896.55%
▷ Final classes00.00%
Methods252
▷ Static methods3212.70%
▷ Public methods20681.75%
▷ Protected methods4116.27%
▷ Private methods51.98%
Functions14
▷ Named functions321.43%
▷ Anonymous functions1178.57%
Constants29
▷ Global constants310.34%
▷ Class constants2689.66%
▷ Public constants26100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/prompt_64.png6.65KB2.89KB▼ 56.63%
img/prompt_32.png5.00KB2.35KB▼ 52.98%
img/bch_32.png2.87KB1.60KB▼ 44.24%
img/prompt_48.png5.00KB2.35KB▼ 53.00%
img/prompt_16.png1.72KB0.97KB▼ 43.88%