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
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/satoshipay/satoshipay.php+38
include_once(wp-content/plugins/satoshipay/config.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼1.89MB] [CPU: ▼54.14ms] Passed 4 tests
Analyzing server-side resources used by SatoshiPay
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.37 | 4.72 ▼36.98 |
Dashboard /wp-admin | 2.12 ▼1.19 | 7.43 ▼44.07 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 7.09 ▼43.60 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.77 | 5.72 ▼91.90 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 5.65 ▼28.27 |
Server storage [IO: ▲0.75MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 134 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
satoshipay_ad_blocker_detection |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
SatoshiPay: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲83 | 14.35 ▲0.13 | 1.65 ▼0.32 | 39.05 ▼6.59 |
Dashboard /wp-admin | 2,254 ▲77 | 5.66 ▲0.10 | 95.12 ▲2.68 | 42.78 ▼1.28 |
Posts /wp-admin/edit.php | 2,155 ▲55 | 2.01 ▲0.00 | 40.53 ▲2.82 | 37.60 ▼1.24 |
Add New Post /wp-admin/post-new.php | 6,382 ▲4,856 | 29.05 ▲5.92 | 943.14 ▲313.43 | 38.05 ▼12.03 |
Media Library /wp-admin/upload.php | 1,455 ▲55 | 4.22 ▲0.01 | 103.81 ▼2.37 | 44.50 ▲2.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/satoshipay/satoshipay.php+38
include_once(wp-content/plugins/satoshipay/config.php): failed to open stream: No such file or directory
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- satoshipay_ad_blocker_detection
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/satoshipay/satoshipay.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/satoshipay/src/SatoshiPay/SatoshiPayAdminPlugin.php on line 19
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/satoshipay/src/SatoshiPay/SatoshiPayAdminPlugin.php on line 19
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/satoshipay/src/SatoshiPay/SatoshiPayAdminPlugin.php on line 19
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/satoshipay/src/SatoshiPay/Command/FixtureCommand.php:19
- > PHP Warning
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)
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 need to be fixed:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
satoshipay/satoshipay.php Passed 13 tests
Analyzing the main PHP file in "SatoshiPay" version 1.11
59 characters long description:
Integrates SatoshiPay's micropayment system into WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin7,355 lines of code in 113 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 806 | 1,537 | 3,332 |
JavaScript | 73 | 538 | 695 | 3,293 |
CSS | 4 | 18 | 78 | 423 |
Sass | 9 | 17 | 8 | 293 |
JSON | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 31.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 2.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 1 | 7.69% |
▷ Concrete classes | 12 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 167 | |
▷ Static methods | 30 | 17.96% |
▷ Public methods | 122 | 73.05% |
▷ Protected methods | 28 | 16.77% |
▷ Private methods | 17 | 10.18% |
Functions | 30 | |
▷ Named functions | 13 | 43.33% |
▷ Anonymous functions | 17 | 56.67% |
Constants | 32 | |
▷ Global constants | 18 | 56.25% |
▷ Class constants | 14 | 43.75% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/tinymce-video.png | 2.74KB | 1.59KB | ▼ 42.02% |
assets/images/tinymce-download.png | 3.19KB | 1.81KB | ▼ 43.24% |
assets/images/tinymce-audio.png | 2.80KB | 1.65KB | ▼ 40.98% |
assets/images/tinymce-donation.png | 10.68KB | 3.50KB | ▼ 67.19% |
assets/images/tinymce-start.png | 1.89KB | 1.36KB | ▼ 28.30% |