Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼288.11ms] Passed 4 tests
Analyzing server-side resources used by Prompt.Cash
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.11 | 61.48 ▲5.05 |
Dashboard /wp-admin | 3.48 ▲0.07 | 37.21 ▲3.02 |
Posts /wp-admin/edit.php | 3.70 ▲0.06 | 39.39 ▲0.70 |
Add New Post /wp-admin/post-new.php | 7.01 ▲0.04 | 101.10 ▼1,155.14 |
Media Library /wp-admin/upload.php | 3.42 ▲0.13 | 26.67 ▼1.02 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 83 new files
Database: 2 new tables, 3 new options
New tables |
---|
wp_prc_transactions |
wp_prc_sessions |
New WordPress options |
---|
promptcash_tables |
promptcash_version |
promptcash_settings |
Browser metrics Passed 4 tests
An overview of browser requirements for Prompt.Cash
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,930 ▲176 | 16.59 ▲0.87 | 11.14 ▲4.83 | 2.71 ▼1.04 |
Dashboard /wp-admin | 2,915 ▲58 | 6.01 ▼0.17 | 119.33 ▼24.85 | 229.67 ▲18.52 |
Posts /wp-admin/edit.php | 2,727 ▲39 | 3.12 ▼0.12 | 66.84 ▼2.54 | 142.23 ▼12.89 |
Add New Post /wp-admin/post-new.php | 1,687 ▲26 | 16.37 ▼0.43 | 409.72 ▼13.98 | 202.27 ▲38.80 |
Media Library /wp-admin/upload.php | 1,736 ▲41 | 5.57 ▲0.07 | 129.61 ▼48.71 | 210.73 ▲25.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
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
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 14× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /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/button/amountEditInput.php
- > /wp-content/plugins/prompt-cash-monetize-your-blog-with-bitcoin-cash/tpl/client/button/buttonCode.php
- > /wp-content/plugins/prompt-cash-monetize-your-blog-with-bitcoin-cash/prompt-cash.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/client/button/hiddenContent.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/admin/mainSettingsWrap.php
- > /wp-content/plugins/prompt-cash-monetize-your-blog-with-bitcoin-cash/tpl/client/button/blurryImages.php
- > /wp-content/plugins/prompt-cash-monetize-your-blog-with-bitcoin-cash/tpl/admin/mainSettings.php
- 17× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > 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: 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/metaboxPayment.php:1
- > 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/ImageParser.php:18
- > 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
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/prompt-cash-monetize-your-blog-with-bitcoin-cash/integrations/woocommerce/WcGateway.php:5
- > PHP Warning
Use of undefined constant PRCA__PLUGIN_DIR - assumed 'PRCA__PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/prompt-cash-monetize-your-blog-with-bitcoin-cash/classes/Session/AbstractSessionHandler.php on line 31
- > PHP Warning
Use of undefined constant PRCA__PLUGIN_DIR - assumed 'PRCA__PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/prompt-cash-monetize-your-blog-with-bitcoin-cash/classes/PromptCash.php on line 5
- > PHP Fatal error
require_once(): Failed opening required 'PRCA__PLUGIN_DIRclasses/Session/MemcachedSessionHandler.php' (include_path='.:/usr/share/php') in wp-content/plugins/prompt-cash-monetize-your-blog-with-bitcoin-cash/classes/Session/AbstractSessionHandler.php on line 31
- > 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 Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 11 tag instead of maximum 10
prompt-cash-monetize-your-blog-with-bitcoin-cash/prompt-cash.php 85% from 13 tests
The main PHP script in "Prompt.Cash" version 1.0.20 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("prompt-cash-monetize-your-blog-with-bitcoin-cash.php" instead of "prompt-cash.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin4,558 lines of code in 68 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 49 | 605 | 1,055 | 3,310 |
TypeScript | 12 | 150 | 139 | 822 |
CSS | 2 | 66 | 18 | 336 |
JSON | 2 | 0 | 0 | 46 |
JavaScript | 2 | 9 | 29 | 32 |
Markdown | 1 | 7 | 0 | 12 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 16.03 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 1 | 3.45% |
▷ Concrete classes | 28 | 96.55% |
▷ Final classes | 0 | 0.00% |
Methods | 252 | |
▷ Static methods | 32 | 12.70% |
▷ Public methods | 206 | 81.75% |
▷ Protected methods | 41 | 16.27% |
▷ Private methods | 5 | 1.98% |
Functions | 13 | |
▷ Named functions | 3 | 23.08% |
▷ Anonymous functions | 10 | 76.92% |
Constants | 29 | |
▷ Global constants | 3 | 10.34% |
▷ Class constants | 26 | 89.66% |
▷ Public constants | 26 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/prompt_48.png | 5.00KB | 2.35KB | ▼ 53.00% |
img/prompt_16.png | 1.72KB | 0.97KB | ▼ 43.88% |
img/prompt_64.png | 6.65KB | 2.89KB | ▼ 56.63% |
img/bch_32.png | 2.87KB | 1.60KB | ▼ 44.24% |
img/prompt_32.png | 5.00KB | 2.35KB | ▼ 52.98% |