Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.53ms] Passed 4 tests
An overview of server-side resources used by Buy Now Button
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 43.92 ▲4.89 |
Dashboard /wp-admin | 3.34 ▼0.00 | 48.12 ▼11.96 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 51.49 ▲7.17 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 93.90 ▼6.06 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.33 ▼0.99 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Buy Now Button
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,062 ▲316 | 15.04 ▲0.85 | 5.60 ▲3.84 | 56.48 ▲16.62 |
Dashboard /wp-admin | 2,347 ▲156 | 6.37 ▲0.50 | 134.93 ▲33.63 | 83.98 ▲46.20 |
Posts /wp-admin/edit.php | 2,268 ▲176 | 3.47 ▲1.43 | 55.06 ▲19.41 | 69.90 ▲34.85 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.21 ▼0.11 | 613.30 ▼77.53 | 37.03 ▼17.14 |
Media Library /wp-admin/upload.php | 1,410 ▲25 | 4.15 ▼0.02 | 81.65 ▼26.04 | 72.88 ▲26.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buy-now-button/buy-now-button.php:19
- > PHP Fatal error
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 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 17 tag instead of maximum 10
- Screenshots: Screenshot #1 (Admin Panel view of submitted form data.) image required
buy-now-button/buy-now-button.php Passed 13 tests
The primary PHP file in "Buy Now Button" version 1.0 is used by WordPress to initiate all plugin functionality
39 characters long description:
Simple WordPress Buy Now Button Plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin203 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 27 | 7 | 131 |
PHP | 1 | 45 | 30 | 72 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
5 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/remove.png | 1.80KB | 1.48KB | ▼ 17.60% |
images/find-img.png | 28.58KB | 10.85KB | ▼ 62.03% |
images/icon.png | 1.58KB | 1.43KB | ▼ 9.69% |
images/logo.png | 11.25KB | 4.39KB | ▼ 60.99% |
screenshot-1.png | 8.29KB | 4.42KB | ▼ 46.73% |