Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▲0.08ms] Passed 4 tests
Analyzing server-side resources used by Spreebie Barter - Ethereum Payments and Donations
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 45.89 ▼0.06 |
Dashboard /wp-admin | 3.57 ▲0.22 | 51.99 ▼4.37 |
Posts /wp-admin/edit.php | 3.68 ▲0.33 | 49.26 ▲2.21 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 93.38 ▲2.55 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 41.63 ▲3.14 |
SB Payments and Donations Categories /wp-admin/edit-tags.php?taxonomy=sb_p_and_d_category&post_type=sb_p_and_d | 3.50 | 40.90 |
SB Payments and Donations Error Stages /wp-admin/edit-tags.php?taxonomy=spreebie_barter_error_stage&post_type=sb_p_and_d | 3.50 | 42.36 |
View SB Payments and Donations /wp-admin/edit.php?post_type=sb_p_and_d | 3.54 | 41.78 |
Server storage [IO: ▲2.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 11 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
spreebie_barter_error_stage_children |
sb_p_and_d_category_children |
widget_spreebie_barter |
spreebie_barter_widget_text |
can_compress_scripts |
spreebie_barter_ethereum_address |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Spreebie Barter - Ethereum Payments and Donations
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,970 ▲224 | 14.68 ▲0.40 | 7.91 ▲5.59 | 42.49 ▼10.94 |
Dashboard /wp-admin | 2,265 ▲85 | 6.52 ▲0.91 | 125.60 ▲35.62 | 41.71 ▲3.47 |
Posts /wp-admin/edit.php | 2,173 ▲73 | 3.62 ▲1.63 | 51.62 ▲15.34 | 32.26 ▼4.35 |
Add New Post /wp-admin/post-new.php | 1,422 ▼104 | 18.15 ▼5.45 | 576.39 ▼98.02 | 30.11 ▼21.13 |
Media Library /wp-admin/upload.php | 1,476 ▲73 | 6.01 ▲1.84 | 113.37 ▼0.56 | 42.51 ▼4.23 |
SB Payments and Donations Categories /wp-admin/edit-tags.php?taxonomy=sb_p_and_d_category&post_type=sb_p_and_d | 1,524 | 3.73 | 60.57 | 33.85 |
SB Payments and Donations Error Stages /wp-admin/edit-tags.php?taxonomy=spreebie_barter_error_stage&post_type=sb_p_and_d | 1,548 | 3.08 | 44.77 | 33.71 |
View SB Payments and Donations /wp-admin/edit.php?post_type=sb_p_and_d | 1,127 | 3.22 | 51.12 | 28.90 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- widget_spreebie_barter
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- sb_p_and_d_category_children
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/spreebie-barter/spreebie-barter.php:24
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=sb_p_and_d
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Web3 is not defined" "ReferenceError: Web3 is not defined\n at loadWeb3 (/wp-content/plugins/spreebie-barter/js/spreebie-barter-admin-ajax.js:330:13)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/spreebie-barter/js/spreebie-barter-admin-ajax.js:343:5)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=sb_p_and_d
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/spreebie-barter/js/radiotax.js:5:90)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=sb_p_and_d
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught ReferenceError: Web3 is not defined
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=sb_p_and_d
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 96% 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
5 plugin tags: crypto, ethereum, donations, payments, metamask
spreebie-barter/spreebie-barter.php 92% from 13 tests
The entry point to "Spreebie Barter - Ethereum Payments and Donations" version 1.0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 423 characters long)
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 plugin3,933 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 629 | 1,080 | 2,225 |
PHP | 4 | 273 | 458 | 1,069 |
CSS | 3 | 113 | 79 | 639 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 28.67 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 1 | 2.70% |
▷ Public methods | 37 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 1.52MB with 1.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 302.96KB | 87.06KB | ▼ 71.26% |
screenshot-4.png | 301.65KB | 85.00KB | ▼ 71.82% |
screenshot-5.png | 324.45KB | 93.88KB | ▼ 71.07% |
screenshot-3.png | 340.18KB | 100.32KB | ▼ 70.51% |
screenshot-1.png | 286.25KB | 80.40KB | ▼ 71.91% |