Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.67ms] Passed 4 tests
A check of server-side resources used by WPC Buy Now Button for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.45 ▼2.43 |
Dashboard /wp-admin | 3.33 ▲0.02 | 47.21 ▼1.82 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 47.08 ▼4.17 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 89.84 ▼2.24 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.29 ▲0.15 |
About /wp-admin/admin.php?page=wpclever | 3.21 | 30.83 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 3.56 | 30.07 |
Server storage [IO: ▲0.07MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WPC Buy Now Button for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,892 ▲141 | 14.67 ▲0.26 | 2.09 ▲0.41 | 45.27 ▲5.07 |
Dashboard /wp-admin | 2,275 ▲98 | 5.67 ▲0.03 | 82.59 ▼29.72 | 90.89 ▲43.04 |
Posts /wp-admin/edit.php | 2,178 ▲78 | 2.01 ▼0.01 | 37.12 ▼1.70 | 35.43 ▲0.48 |
Add New Post /wp-admin/post-new.php | 1,753 ▲227 | 22.04 ▼1.07 | 688.20 ▼47.20 | 43.70 ▼14.16 |
Media Library /wp-admin/upload.php | 1,477 ▲77 | 4.14 ▼0.05 | 94.11 ▼13.28 | 72.13 ▲24.60 |
About /wp-admin/admin.php?page=wpclever | 1,405 | 2.14 | 30.37 | 34.59 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 5,732 | 2.13 | 32.65 | 57.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% 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: These screenshots lack descriptions #1, #2 in wpc-buy-now-button/assets to your readme.txt
wpc-buy-now-button/wpc-buy-now-button.php 92% from 13 tests
"WPC Buy Now Button for WooCommerce" version 1.3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 149 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,368 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 124 | 26 | 815 |
CSS | 3 | 76 | 6 | 409 |
JavaScript | 4 | 22 | 3 | 115 |
SVG | 1 | 0 | 0 | 29 |
PHP code Passed 2 tests
A short review of 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.38 |
Average class complexity | 25.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 3 | 8.33% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 8 | |
▷ Global constants | 8 | 100.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
No PNG files were detected