Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲5.02MB] [CPU: ▲18.39ms] 75% from 4 tests
Analyzing server-side resources used by Gift Message for WooCommerce
It is recommended to improve the following
- Extra RAM: The extra memory usage must be under 5MB (currently 5.02MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.88 ▲5.41 | 55.03 ▲13.87 |
Dashboard /wp-admin | 8.90 ▲5.55 | 79.91 ▲10.15 |
Posts /wp-admin/edit.php | 8.90 ▲5.54 | 85.84 ▲33.63 |
Add New Post /wp-admin/post-new.php | 9.45 ▲3.56 | 125.67 ▲15.90 |
Media Library /wp-admin/upload.php | 8.90 ▲5.67 | 78.99 ▲40.32 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.90 | 67.37 |
Server storage [IO: ▲3.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 198 new files
Database: no new tables, 11 new options
New WordPress options |
---|
fs_active_plugins |
gmfw_activation_date |
fs_accounts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
gmfw_enable_gift_message |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Gift Message for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,487 ▼299 | 14.65 ▲0.24 | 0.45 ▼1.61 | 8.40 ▼36.89 |
Dashboard /wp-admin | 2,231 ▲57 | 5.64 ▼0.02 | 93.41 ▼1.88 | 46.87 ▼0.27 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 2.02 ▼0.01 | 39.51 ▲3.81 | 38.21 ▲2.11 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 22.95 ▼0.16 | 705.53 ▲10.82 | 68.94 ▲10.16 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.10 ▼0.11 | 97.18 ▼20.34 | 49.78 ▲1.36 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,098 | 1.69 | 27.11 | 32.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/gift-message-for-woocommerce/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 11 options in the database
- widget_recent-posts
- db_upgraded
- gmfw_activation_date
- fs_debug_mode
- widget_recent-comments
- fs_accounts
- fs_active_plugins
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/gift-message-for-woocommerce/admin/partials/gmfw-admin-display.php
- > /wp-content/plugins/gift-message-for-woocommerce/public/partials/gmfw-public-display.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gift-message-for-woocommerce/includes/class-gmfw-metaboxes.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: occasions, woocommerce, checkout, gift, gift message
gift-message-for-woocommerce/gift-message-for-woocommerce.php 85% from 13 tests
The main PHP script in "Gift Message for WooCommerce" version 1.7.5 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("4.5" instead of "3.0")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin34,240 lines of code in 150 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 130 | 8,100 | 17,966 | 33,774 |
JavaScript | 5 | 59 | 59 | 286 |
CSS | 15 | 40 | 8 | 180 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 82.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 55 | |
▷ Abstract classes | 2 | 3.64% |
▷ Concrete classes | 53 | 96.36% |
▷ Final classes | 0 | 0.00% |
Methods | 1,317 | |
▷ Static methods | 200 | 15.19% |
▷ Public methods | 923 | 70.08% |
▷ Protected methods | 17 | 1.29% |
▷ Private methods | 377 | 28.63% |
Functions | 106 | |
▷ Named functions | 106 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 146 | |
▷ Global constants | 99 | 67.81% |
▷ Class constants | 47 | 32.19% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |