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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.47ms] Passed 4 tests
Analyzing server-side resources used by Marketplace Bitcoin Gateway
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.69 ▼1.60 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.98 ▼4.36 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 43.63 ▲5.38 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 78.99 ▼19.42 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.27 ▼0.48 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Marketplace Bitcoin Gateway
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲41 | 14.28 ▼0.07 | 1.86 ▲0.10 | 44.93 ▼3.24 |
Dashboard /wp-admin | 2,205 ▲34 | 5.65 ▲0.06 | 94.43 ▼8.13 | 45.62 ▲1.43 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.00 ▲0.02 | 35.45 ▼7.89 | 35.16 ▲0.71 |
Add New Post /wp-admin/post-new.php | 1,539 ▲10 | 23.31 ▲0.35 | 682.01 ▲66.10 | 54.78 ▼8.76 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.20 ▲0.01 | 99.06 ▼2.90 | 41.02 ▼3.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Almost there! Just 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 trailingslashit() in wp-content/plugins/marketplace-bitcoin-gateway/marketplace-bitcoin-gateway.php:15
- > PHP Fatal error
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: Please delete some tags, you are using 22 tag instead of maximum 10
marketplace-bitcoin-gateway/marketplace-bitcoin-gateway.php Passed 13 tests
This is the main PHP file of "Marketplace Bitcoin Gateway" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
62 characters long description:
Bitcoin Payment Gateway ( WooCommerce MarketPlace Compatible )
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin4,130 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 404 | 281 | 2,580 |
PHP | 15 | 308 | 323 | 1,262 |
JavaScript | 7 | 21 | 18 | 210 |
PO File | 1 | 30 | 34 | 78 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 21.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 165.00 |
Average method complexity | 4.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 75 | |
▷ Static methods | 3 | 4.00% |
▷ Public methods | 73 | 97.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.67% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
17 PNG files occupy 0.13MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/dclogo-2x.png | 4.35KB | 1.74KB | ▼ 60.10% |
(invalid) lib/jquery/upload/images/Placeholdertxt.png | 12.41KB | 0.00KB | ▼ 100.00% |
(invalid) assets/images/question_mark.png | 0.86KB | 0.00KB | ▼ 100.00% |
(invalid) lib/jquery/upload/images/Placeholderdoc.png | 14.84KB | 0.00KB | ▼ 100.00% |
assets/images/cards.png | 2.72KB | 2.41KB | ▼ 11.37% |