Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼140.58ms] Passed 4 tests
Analyzing server-side resources used by Remitano Payment Button
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 32.59 ▲7.02 |
Dashboard /wp-admin | 3.10 ▲0.05 | 45.33 ▲6.17 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 39.46 ▼5.27 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 88.57 ▼564.80 |
Media Library /wp-admin/upload.php | 3.05 ▲0.04 | 34.16 ▲1.59 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Remitano Payment Button: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,702 ▲106 | 15.80 ▲0.34 | 7.11 ▲0.08 | 51.47 ▲0.15 |
Dashboard /wp-admin | 2,985 ▲54 | 5.90 ▲0.02 | 132.71 ▼3.62 | 106.17 ▼14.43 |
Posts /wp-admin/edit.php | 2,754 ▲15 | 2.68 ▼0.01 | 67.40 ▲3.69 | 90.21 ▼2.15 |
Add New Post /wp-admin/post-new.php | 1,695 ▼175 | 18.79 ▼0.67 | 363.99 ▼21.82 | 111.22 ▲2.11 |
Media Library /wp-admin/upload.php | 1,828 ▲21 | 5.02 ▼0.00 | 161.49 ▲23.64 | 118.53 ▲3.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% 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 | 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× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/remitano-payment-button/includes/templates/settings.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: remitano, ecommerce, payment button, cryptocurrency, payment
remitano-payment-button/remitano-payment-button.php Passed 13 tests
The main file in "Remitano Payment Button" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
64 characters long description:
Add Remitano Payment Button with shortcode in blog post and page
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
Everything looks great! No dangerous files found in this plugin242 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 36 | 8 | 208 |
JavaScript | 1 | 5 | 2 | 34 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/short-white.png | 2.37KB | 1.53KB | ▼ 35.65% |
assets/images/long-white.png | 4.61KB | 2.34KB | ▼ 49.30% |
assets/images/long-purple.png | 4.02KB | 2.11KB | ▼ 47.68% |
assets/images/short-purple.png | 2.04KB | 1.21KB | ▼ 40.61% |