Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼144.47ms] Passed 4 tests
Analyzing server-side resources used by Bitcan Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.01 | 35.58 ▲2.44 |
Dashboard /wp-admin | 3.07 ▲0.01 | 46.51 ▼2.55 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 46.02 ▲1.47 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 89.62 ▼572.59 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 28.10 ▼4.20 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_bitcan |
Browser metrics Passed 4 tests
An overview of browser requirements for Bitcan Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲107 | 16.10 ▲0.71 | 7.97 ▼2.34 | 47.02 ▼3.64 |
Dashboard /wp-admin | 2,992 ▲61 | 6.08 ▲0.09 | 148.98 ▼7.97 | 113.48 ▲3.72 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▼0.00 | 67.65 ▼2.10 | 90.73 ▼1.59 |
Add New Post /wp-admin/post-new.php | 1,683 ▲68 | 18.78 ▼2.61 | 381.02 ▲69.12 | 107.50 ▲10.33 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.02 ▼0.00 | 153.28 ▼14.07 | 115.81 ▲1.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 1 option
- widget_bitcan
Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bitcan-widget/bitcan-widget.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: widget, cryptocurrency, bitcoin, bitcan, crypto
bitcan-widget/bitcan-widget.php Passed 13 tests
"Bitcan Widget" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
73 characters long description:
Widget and shortcode of a secure platform for buying bitcoin - bitcan.pl.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin180 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 36 | 12 | 123 |
PO File | 1 | 17 | 17 | 57 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin