Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- The plugin cannot be installed
- > Error in wp-includes/Requests/Transport/cURL.php+573
Uncaught Error: Object of class stdClass could not be converted to string in wp-includes/Requests/Transport/cURL.php:573
Stack trace:
#0 wp-includes/Requests/Transport/cURL.php(332): Requests_Transport_cURL->get_expect_header()
#1 wp-includes/Requests/Transport/cURL.php(135): Requests_Transport_cURL->setup_handle()
#2 wp-includes/class-requests.php(381): Requests_Transport_cURL->request()
#3 wp-includes/class-wp-http.php(394): Requests::request()
#4 wp-includes/class-wp-http.php(614): WP_Http->request()
#5 wp-includes/http.php(179): WP_Http->post()
#6 wp-content/plugins/bitwords-io/lib/BitwordsAPI.php(36): wp_remote_post()
#7 wp-content/plugins/bitwords-io/lib/BitwordsAPI.php(51): BitwordsAPI->_api()
#8 wp-content/plugins/bitwords-io/bitwords_admin_settings.php(112): BitwordsAPI->registerPlugin()
#9 wp-i
Server metrics [RAM: ▼0.02MB] [CPU: ▼296.01ms] Passed 4 tests
An overview of server-side resources used by Bitwords
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 62.78 ▲11.09 |
Dashboard /wp-admin | 3.41 ▲0.00 | 34.02 ▼3.51 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 38.62 ▲1.64 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 93.04 ▼1,183.44 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 25.14 ▲1.26 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Bitwords
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲17 | 15.78 ▲0.19 | 6.71 ▼0.04 | 2.26 ▲0.08 |
Dashboard /wp-admin | 2,892 ▲31 | 6.15 ▼0.05 | 116.48 ▼19.10 | 159.52 ▼3.32 |
Posts /wp-admin/edit.php | 2,691 ▲34 | 3.24 ▲0.00 | 65.73 ▼4.15 | 143.77 ▼4.01 |
Add New Post /wp-admin/post-new.php | 1,752 ▲91 | 20.87 ▲5.32 | 445.77 ▲25.42 | 163.09 ▲10.08 |
Media Library /wp-admin/upload.php | 1,695 ▼3 | 5.54 ▲0.03 | 149.32 ▲13.40 | 181.24 ▼0.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/bitwords-io/admin/views/tab_statistics.php
- 23× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to get property 'totalImpressions' of non-object in wp-content/plugins/bitwords-io/admin/views/tab_payouts_wallet_stats.php on line 6
- > PHP Notice
Trying to get property 'totalImpressions' of non-object in wp-content/plugins/bitwords-io/admin/views/tab_payouts_wallet_stats.php on line 7
- > PHP Notice
Trying to get property 'totalClicks' of non-object in wp-content/plugins/bitwords-io/admin/views/tab_payouts_wallet_stats.php on line 7
- > PHP Notice
Trying to get property 'walletAddress' of non-object in wp-content/plugins/bitwords-io/admin/views/tab_payouts_wallet_stats.php on line 2
- > PHP Notice
Undefined variable: dataForPublisher in wp-content/plugins/bitwords-io/admin/views/tab_payouts_wallet_stats.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/bitwords-io/admin/views/agreement.php:8
- > PHP Notice
Undefined variable: dataForPublisher in wp-content/plugins/bitwords-io/admin/views/tab_payouts_wallet_stats.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/bitwords-io/admin/views/tab_settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bitwords-io/include/shortcode.php:37
- > PHP Notice
Undefined variable: dataForPublisher in wp-content/plugins/bitwords-io/admin/views/tab_payouts_wallet_stats.php on line 6
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Screenshot #1 (The screen where the user enters his Ethereum withdrawal address.) image missing
bitwords-io/bitwords_admin_settings.php 92% from 13 tests
The main PHP script in "Bitwords" version 1.4.1 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bitwords-io.php" instead of "bitwords_admin_settings.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin789 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 153 | 154 | 552 |
JavaScript | 4 | 36 | 12 | 151 |
CSS | 2 | 17 | 0 | 86 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 5.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 11.11% |
Functions | 9 | |
▷ Named functions | 9 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.10MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 77.17KB | 21.19KB | ▼ 72.55% |
assets/logo.png | 21.13KB | 1.63KB | ▼ 92.29% |