Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.25MB] [CPU: ▲1.29ms] Passed 4 tests
An overview of server-side resources used by Gift Up Gift Cards for WordPress and WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 42.45 ▲0.45 |
Dashboard /wp-admin | 3.60 ▲0.30 | 51.47 ▲1.58 |
Posts /wp-admin/edit.php | 3.65 ▲0.30 | 52.13 ▲3.79 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.24 | 95.00 ▲3.97 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 34.72 ▼0.65 |
Gift Up! /wp-admin/options-general.php?page=giftup-settings | 3.49 | 36.30 |
Server storage [IO: ▲0.21MB] [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: 63 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
giftup_woocommerce_operating_mode |
widget_theysaidso_widget |
giftup_version |
Browser metrics Passed 4 tests
Checking browser requirements for Gift Up Gift Cards for WordPress and WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲48 | 13.30 ▼1.00 | 4.97 ▲2.79 | 43.08 ▼1.92 |
Dashboard /wp-admin | 2,228 ▲40 | 5.86 ▼0.02 | 113.63 ▲0.75 | 40.70 ▼1.12 |
Posts /wp-admin/edit.php | 2,110 ▲18 | 2.01 ▼0.09 | 42.76 ▲1.75 | 38.63 ▼0.02 |
Add New Post /wp-admin/post-new.php | 1,555 ▲27 | 23.14 ▲4.82 | 602.42 ▼0.84 | 49.08 ▼10.40 |
Media Library /wp-admin/upload.php | 1,407 ▲16 | 4.19 ▼0.05 | 99.88 ▲0.14 | 44.23 ▲2.26 |
Gift Up! /wp-admin/options-general.php?page=giftup-settings | 848 | 2.20 | 26.34 | 26.31 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- 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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please take a closer look at the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: giftup_dashboard_root in wp-content/plugins/gift-up/view/giftup-settings.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'giftup_options' not found in wp-content/plugins/gift-up/includes/giftup-woocommerce-hooks.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/gift-up/view/giftup-settings.php:4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: gift certificates, gift certificate, woocommerce, gift cards, gift vouchers...
gift-up/giftup.php 77% from 13 tests
"Gift Up Gift Cards for WordPress and WooCommerce" version 2.20.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("3.0.1" instead of "3.2.0")
- Description: Please don't use more than 140 characters for the plugin description (currently 186 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gift-up.php" instead of "giftup.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin2,944 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 394 | 172 | 1,663 |
PO File | 25 | 325 | 475 | 1,281 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 3.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 63 | 94.03% |
▷ Public methods | 55 | 82.09% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 17.91% |
Functions | 17 | |
▷ Named functions | 15 | 88.24% |
▷ Anonymous functions | 2 | 11.76% |
Constants | 7 | |
▷ Global constants | 5 | 71.43% |
▷ Class constants | 2 | 28.57% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
view/images/logo.png | 6.54KB | 3.50KB | ▼ 46.42% |