Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/my-two-cents/lib/bitcoin-php/src/includes/xmlrpc.inc+804
Methods with the same name as their class will not be constructors in a future version of PHP; xmlrpc_client has a deprecated constructor
Server metrics [RAM: ▼1.02MB] [CPU: ▼52.97ms] Passed 4 tests
An overview of server-side resources used by My Two Cents
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▼0.50 | 8.25 ▼45.20 |
Dashboard /wp-admin | 2.98 ▼0.32 | 8.81 ▼37.71 |
Posts /wp-admin/edit.php | 2.98 ▼0.37 | 10.08 ▼39.91 |
Add New Post /wp-admin/post-new.php | 2.98 ▼2.90 | 7.77 ▼89.05 |
Media Library /wp-admin/upload.php | 2.98 ▼0.24 | 9.24 ▼25.08 |
My Two Cents /wp-admin/options-general.php?page=my_two_cents_settings | 2.98 | 8.74 |
Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by My Two Cents
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 14.48 ▼0.04 | 2.04 ▲0.07 | 40.15 ▼3.38 |
Dashboard /wp-admin | 2,207 ▲16 | 5.83 ▲0.92 | 94.89 ▼9.78 | 38.91 ▼5.26 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▼0.01 | 39.44 ▼0.68 | 35.94 ▲0.58 |
Add New Post /wp-admin/post-new.php | 1,536 ▼7 | 23.54 ▲5.21 | 671.47 ▲5.21 | 58.10 ▼2.19 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.36 ▲0.13 | 95.10 ▼8.61 | 39.96 ▼4.33 |
My Two Cents /wp-admin/options-general.php?page=my_two_cents_settings | 927 | 2.18 | 33.35 | 45.59 |
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
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/my-two-cents/lib/bitcoin-php/src/includes/xmlrpc.inc+804
Methods with the same name as their class will not be constructors in a future version of PHP; xmlrpc_client has a deprecated constructor
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% 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)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=my_two_cents_settings
- > Deprecated in wp-content/plugins/my-two-cents/lib/bitcoin-php/src/includes/xmlrpc.inc+804
Methods with the same name as their class will not be constructors in a future version of PHP; xmlrpc_client has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=my_two_cents_settings
- > Deprecated in wp-content/plugins/my-two-cents/lib/bitcoin-php/src/includes/xmlrpc.inc+1929
Methods with the same name as their class will not be constructors in a future version of PHP; xmlrpcresp has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=my_two_cents_settings
- > Deprecated in wp-content/plugins/my-two-cents/lib/bitcoin-php/src/includes/xmlrpc.inc+2087
Methods with the same name as their class will not be constructors in a future version of PHP; xmlrpcmsg has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=my_two_cents_settings
- > Deprecated in wp-content/plugins/my-two-cents/lib/bitcoin-php/src/includes/xmlrpc.inc+2712
Methods with the same name as their class will not be constructors in a future version of PHP; xmlrpcval has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=my_two_cents_settings
- > Deprecated in wp-content/plugins/my-two-cents/lib/bitcoin-php/src/includes/jsonrpc.inc+918
Methods with the same name as their class will not be constructors in a future version of PHP; jsonrpcmsg has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=my_two_cents_settings
- > Notice in wp-content/plugins/my-two-cents/my-two-cents.php+48
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-two-cents/my-two-cents.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (When you first install My Two Cents, you'll need to enter one or more of your receiving addresses. Other options allow you to tweak display and security options such as the size of the generated QR code image and the number of network confirmations required before a transaction is considered valid.), #2 (When a comment is submitted, My Two Cents offers a direct clickable link and a QR code with which the commenter can send you BitCoin. Within the hour of their BitCoin transaction being confirmed on the blockchain, My Two Cents will approve their comment automatically.), #3 (Optionally, My Two Cents can also use "transaction polling," a method for detecting transactions without the use of automatically-generated forarding addresses. If you choose to enable this feature, My Two Cents adds a "BitCoin address" field to your comment forms. Commenters provide their BitCoin address here to register their "My Two Cents.")
my-two-cents/my-two-cents.php Passed 13 tests
The principal PHP file in "My Two Cents" v. 0.2 is loaded by WordPress automatically on each request
92 characters long description:
Receive BitCoin from your commenters. Auto-approve comments that include a BitCoin donation.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin5,091 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 365 | 1,545 | 4,473 |
Pascal | 1 | 68 | 305 | 588 |
Markdown | 1 | 16 | 0 | 30 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 77.00 |
▷ Minimum class complexity | 77.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 4.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.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 | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 56.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 44.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
3 PNG files occupy 0.34MB with 0.23MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 251.51KB | 77.61KB | ▼ 69.14% |
screenshot-3.png | 50.55KB | 14.96KB | ▼ 70.40% |
screenshot-2.png | 42.18KB | 12.65KB | ▼ 70.01% |