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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.15 ▲0.69 | 43.88 ▲0.49 |
Dashboard /wp-admin | 4.02 ▲0.72 | 50.31 ▲1.61 |
Posts /wp-admin/edit.php | 4.14 ▲0.78 | 51.58 ▲8.23 |
Add New Post /wp-admin/post-new.php | 6.61 ▲0.73 | 93.71 ▲4.64 |
Media Library /wp-admin/upload.php | 3.94 ▲0.72 | 38.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,927 ▲165 | 13.46 ▼0.89 | 10.69 ▲8.93 | 35.92 ▼8.86 |
Dashboard /wp-admin | 2,210 ▲33 | 5.57 ▼0.07 | 89.27 ▼7.71 | 73.53 ▲37.02 |
Posts /wp-admin/edit.php | 2,130 ▲27 | 1.98 ▼0.02 | 42.64 ▲2.53 | 34.61 ▼4.38 |
Add New Post /wp-admin/post-new.php | 1,561 ▲22 | 22.65 ▼0.62 | 669.78 ▲40.64 | 56.09 ▲8.88 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.19 ▲0.04 | 97.08 ▼4.71 | 67.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 49 | 611 | 1,069 | 3,367 |
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
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 code | 0.31 |
Average class complexity | 16.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 2.73 |
▷ 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 | 14 | |
▷ Named functions | 3 | 21.43% |
▷ Anonymous functions | 11 | 78.57% |
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
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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/prompt_64.png | 6.65KB | 2.89KB | ▼ 56.63% |
img/prompt_32.png | 5.00KB | 2.35KB | ▼ 52.98% |
img/bch_32.png | 2.87KB | 1.60KB | ▼ 44.24% |
img/prompt_48.png | 5.00KB | 2.35KB | ▼ 53.00% |
img/prompt_16.png | 1.72KB | 0.97KB | ▼ 43.88% |