Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/bittipit-bitcoin-donation-button/bittip_it.php+253
Use of undefined constant add_after_content - assumed 'add_after_content' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.84MB] [CPU: ▼301.99ms] Passed 4 tests
Analyzing server-side resources used by Bittip.It - Bitcoin Donation Button
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.79 ▼1.04 | 5.19 ▼26.81 |
Dashboard /wp-admin | 1.81 ▼1.24 | 5.24 ▼33.22 |
Posts /wp-admin/edit.php | 1.81 ▼1.30 | 4.79 ▼38.30 |
Add New Post /wp-admin/post-new.php | 1.81 ▼3.62 | 4.82 ▼1,107.81 |
Media Library /wp-admin/upload.php | 1.81 ▼1.20 | 6.91 ▼28.64 |
Bittip.It Options /wp-admin/options-general.php?page=bittipit_options | 1.81 | 5.21 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Bittip.It - Bitcoin Donation Button
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,678 ▲72 | 16.03 ▲0.38 | 8.66 ▲1.05 | 48.27 ▲0.99 |
Dashboard /wp-admin | 2,938 ▲88 | 5.90 ▲0.06 | 138.78 ▼9.31 | 98.36 ▼6.92 |
Posts /wp-admin/edit.php | 2,711 ▲5 | 2.69 ▼0.00 | 63.51 ▼3.41 | 81.65 ▼6.30 |
Add New Post /wp-admin/post-new.php | 1,659 ▲6 | 13.86 ▼4.81 | 374.68 ▼17.11 | 112.16 ▲6.89 |
Media Library /wp-admin/upload.php | 1,780 ▲8 | 5.00 ▼0.03 | 161.28 ▲8.02 | 115.60 ▼0.38 |
Bittip.It Options /wp-admin/options-general.php?page=bittipit_options | 1,360 | 3.76 | 71.09 | 69.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/bittipit-bitcoin-donation-button/bittip_it.php+253
Use of undefined constant add_after_content - assumed 'add_after_content' (this will throw an Error in a future version of PHP)
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=bittipit_options
- > Warning in wp-content/plugins/bittipit-bitcoin-donation-button/bittip_it.php+253
Use of undefined constant add_after_content - assumed 'add_after_content' (this will throw an Error in a future version of PHP)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=bittipit_options
- > Notice in wp-content/plugins/bittipit-bitcoin-donation-button/bittip_it.php+115
Trying to access array offset on value of type bool
SRP 50% 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 items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bittipit-bitcoin-donation-button/bittip_it.php:36
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=bittipit_options
- > Javascript (severe) in unknown
/wp-admin/options-general.php?page=bittipit_options 194:393 Uncaught SyntaxError: Unexpected token '
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: bitcoin, flickr, donate
bittipit-bitcoin-donation-button/bittip_it.php 92% from 13 tests
The main PHP script in "Bittip.It - Bitcoin Donation Button" version 1.0.1 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bittipit-bitcoin-donation-button.php" instead of "bittip_it.php")
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
Everything looks great! No dangerous files found in this plugin137 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 79 | 38 | 137 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
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 | 7 | |
▷ Named functions | 7 | 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 1 test
Image compression Passed 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin