Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.36ms] Passed 4 tests
Analyzing server-side resources used by NiftyBuyButton
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.79 ▼1.26 |
Dashboard /wp-admin | 3.33 ▲0.02 | 50.89 ▼3.16 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.79 ▲1.65 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 92.63 ▼2.67 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 44.61 ▲9.44 |
Generate Shortcode /wp-admin/admin.php?page=nifty-buy-button-sg | 3.21 | 33.94 |
Settings /wp-admin/admin.php?page=nifty-buy-button | 3.21 | 29.91 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by NiftyBuyButton
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 13.68 ▼1.01 | 1.90 ▲0.11 | 40.26 ▼3.97 |
Dashboard /wp-admin | 2,233 ▲45 | 5.00 ▲0.11 | 140.99 ▲17.83 | 41.72 ▼1.98 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.24 ▲0.23 | 38.75 ▼3.04 | 34.81 ▼1.22 |
Add New Post /wp-admin/post-new.php | 1,539 ▲10 | 23.21 ▲4.76 | 632.32 ▼39.99 | 59.52 ▲0.02 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.32 ▲0.11 | 102.01 ▲2.73 | 46.52 ▲2.52 |
Generate Shortcode /wp-admin/admin.php?page=nifty-buy-button-sg | 792 | 1.79 | 22.81 | 22.96 |
Settings /wp-admin/admin.php?page=nifty-buy-button | 833 | 1.87 | 25.19 | 26.01 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: niftycart, niftybuybutton
niftybuybutton/nifty-buy-button.php 77% from 13 tests
This is the main PHP file of "NiftyBuyButton" version 3.5.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("niftybuybutton.php" instead of "nifty-buy-button.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 235 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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 plugin1,120 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 129 | 19 | 701 |
PHP | 2 | 95 | 218 | 375 |
JavaScript | 3 | 10 | 31 | 44 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 22 | 95.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.35% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 6 | 75.00% |
▷ Class constants | 2 | 25.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/select2/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |
assets/images/nbb-logo.png | 1.03KB | 0.84KB | ▼ 18.16% |
assets/css/select2/select2.png | 0.60KB | 0.99KB | 0.00% |