Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.90MB] [CPU: ▼32.83ms] Passed 4 tests
A check of server-side resources used by Sell BTC - Cryptocurrency Selling Calculator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.15 ▼0.51 |
Dashboard /wp-admin | 3.04 ▼0.26 | 22.40 ▼23.46 |
Posts /wp-admin/edit.php | 3.05 ▼0.31 | 23.23 ▼28.35 |
Add New Post /wp-admin/post-new.php | 3.04 ▼2.85 | 23.49 ▼61.95 |
Media Library /wp-admin/upload.php | 3.04 ▼0.19 | 21.34 ▼17.56 |
Settings /wp-admin/admin.php?page=HAYYAT_settings | 3.05 | 25.17 |
Orders /wp-admin/admin.php?page=HAYYAT_orders | 3.05 | 31.18 |
Developers /wp-admin/admin.php?page=HAYYAT_developers | 3.05 | 21.52 |
Sell BTC Lite /wp-admin/admin.php?page=MAINMENUHAYYAT | 3.05 | 25.07 |
Go Pro /wp-admin/admin.php?page=ProHAPPS | 3.05 | 21.25 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 43 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_happs_sellbtc_orders |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Sell BTC - Cryptocurrency Selling Calculator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,892 ▲146 | 13.44 ▼0.99 | 1.80 ▼0.17 | 42.28 ▼0.07 |
Dashboard /wp-admin | 2,295 ▲104 | 5.08 ▲0.05 | 136.77 ▲36.01 | 36.38 ▼3.02 |
Posts /wp-admin/edit.php | 2,183 ▲94 | 2.30 ▲0.30 | 50.56 ▲12.23 | 35.29 ▲1.64 |
Add New Post /wp-admin/post-new.php | 1,566 ▲45 | 17.69 ▼5.14 | 721.39 ▲23.26 | 39.45 ▼13.21 |
Media Library /wp-admin/upload.php | 1,479 ▲88 | 4.48 ▲0.29 | 117.88 ▲7.22 | 42.09 ▼5.43 |
Settings /wp-admin/admin.php?page=HAYYAT_settings | 3,002 | 9.38 | 320.23 | 119.41 |
Orders /wp-admin/admin.php?page=HAYYAT_orders | 909 | 2.01 | 36.25 | 36.78 |
Developers /wp-admin/admin.php?page=HAYYAT_developers | 951 | 2.09 | 30.07 | 34.21 |
Sell BTC Lite /wp-admin/admin.php?page=MAINMENUHAYYAT | 864 | 2.01 | 34.26 | 32.53 |
Go Pro /wp-admin/admin.php?page=ProHAPPS | 1,181 | 2.32 | 34.35 | 56.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 20 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ProHAPPS
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 10× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/sell-btc-by-hayyatapps/Pages/activation.php
- > /wp-content/plugins/sell-btc-by-hayyatapps/Pages/pro.php
- > /wp-content/plugins/sell-btc-by-hayyatapps/lib/country_list.php
- > /wp-content/plugins/sell-btc-by-hayyatapps/Pages/developers.php
- > /wp-content/plugins/sell-btc-by-hayyatapps/Pages/curr/crypto.php
- > /wp-content/plugins/sell-btc-by-hayyatapps/lib/index.php
- > /wp-content/plugins/sell-btc-by-hayyatapps/Pages/curr/fiat.php
- > /wp-content/plugins/sell-btc-by-hayyatapps/lib/calc.php
- > /wp-content/plugins/sell-btc-by-hayyatapps/lib/form.php
- > /wp-content/plugins/sell-btc-by-hayyatapps/Pages/settings.php
- 7× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: happs_from in wp-content/plugins/sell-btc-by-hayyatapps/lib/calc.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/sell-btc-by-hayyatapps/lib/index.php:16
- > PHP Notice
Undefined variable: happs_to in wp-content/plugins/sell-btc-by-hayyatapps/lib/calc.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/sell-btc-by-hayyatapps/sell-btc.php:30
- > PHP Notice
Undefined variable: happs_from in wp-content/plugins/sell-btc-by-hayyatapps/lib/calc.php on line 4
- > PHP Notice
Undefined variable: happs_to in wp-content/plugins/sell-btc-by-hayyatapps/lib/calc.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function AP_BTC_GET_ORDERS() in wp-content/plugins/sell-btc-by-hayyatapps/Pages/orders.php:24
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=ProHAPPS
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=ProHAPPS 195:121 Uncaught ReferenceError: iFrameResize is not defined
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: cryptocurrency calculator, sell bitcoin, sell cryptocurrency
sell-btc-by-hayyatapps/sell-btc.php 77% from 13 tests
The primary PHP file in "Sell BTC - Cryptocurrency Selling Calculator" version 1.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 141 characters long)
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: It is recommended to name the main PHP file as the plugin slug ("sell-btc-by-hayyatapps.php" instead of "sell-btc.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,727 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 162 | 68 | 1,647 |
PHP | 16 | 318 | 24 | 1,060 |
JavaScript | 10 | 0 | 0 | 16 |
SVG | 4 | 0 | 0 | 4 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.05 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
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
5 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/icons/btc.png | 1.10KB | 1.10KB | 0.00% |
lib/icons/eth.png | 1.07KB | 1.08KB | 0.00% |
lib/icons/fiat/usd.png | 0.82KB | 0.81KB | ▼ 1.07% |
JS/tipx/images/ui-icons_555555_256x240.png | 6.84KB | 4.18KB | ▼ 38.84% |
JS/tipx/images/ui-icons_444444_256x240.png | 6.84KB | 4.18KB | ▼ 38.90% |