Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲1.05MB] [CPU: ▼298.11ms] Passed 4 tests
An overview of server-side resources used by Nugget by Ingot: Easy, automated and native A/B testing for everyone
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.40 ▲1.89 | 74.00 ▲19.62 |
Dashboard /wp-admin | 5.35 ▲1.94 | 51.93 ▲18.71 |
Posts /wp-admin/edit.php | 5.57 ▲1.93 | 52.90 ▲11.86 |
Add New Post /wp-admin/post-new.php | 5.40 ▼1.57 | 44.52 ▼1,235.03 |
Media Library /wp-admin/upload.php | 5.29 ▲2.00 | 37.55 ▲12.02 |
Freemius Debug [v.1.1.7.3] /wp-admin/admin.php?page=freemius | 5.30 | 37.43 |
Server storage [IO: ▲5.86MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 337 new files
Database: 4 new tables, 4 new options
New tables |
---|
wp_ingot_session |
wp_ingot_group |
wp_ingot_tracking |
wp_ingot_variant |
New WordPress options |
---|
fs_active_plugins |
fs_accounts |
_ingot_session_ID_last_assigned |
fs_api_cache |
Browser metrics Passed 4 tests
Checking browser requirements for Nugget by Ingot: Easy, automated and native A/B testing for everyone
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,958 ▲204 | 16.05 ▲0.39 | 8.54 ▲2.32 | 2.48 ▼0.58 |
Dashboard /wp-admin | 2,938 ▲77 | 6.12 ▼0.11 | 125.61 ▼11.35 | 185.42 ▲20.10 |
Posts /wp-admin/edit.php | 2,734 ▲43 | 3.25 ▲0.02 | 63.44 ▲3.09 | 149.91 ▲10.06 |
Add New Post /wp-admin/post-new.php | 1,700 ▲10 | 23.06 ▲2.44 | 394.92 ▼55.37 | 160.26 ▲1.42 |
Media Library /wp-admin/upload.php | 1,741 ▲43 | 5.56 ▲0.06 | 141.36 ▼0.73 | 204.31 ▲17.00 |
Freemius Debug [v.1.1.7.3] /wp-admin/admin.php?page=freemius | 1,290 | 2.57 | 54.34 | 133.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/nugget-by-ingot/vendor/freemius/wordpress-sdk/includes/class-freemius.php+3212
First parameter must either be an object or the name of an existing class
- The plugin did not uninstall successfully, leaving 4 tables in the database
- wp_ingot_tracking
- wp_ingot_session
- wp_ingot_group
- wp_ingot_variant
- The uninstall procedure has failed, leaving 4 options in the database
- fs_accounts
- fs_api_cache
- fs_active_plugins
- _ingot_session_ID_last_assigned
Smoke tests 75% from 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 37× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ingot\\testing\\crud\\crud' not found in wp-content/plugins/nugget-by-ingot/vendor/ingot/ingot-core/classes/testing/crud/group.php:19
- > PHP Fatal error
Uncaught Error: Class 'ingot\\testing\\crud\\crud' not found in wp-content/plugins/nugget-by-ingot/vendor/ingot/ingot-core/classes/testing/crud/variant.php:17
- > PHP Fatal error
Uncaught Error: Class 'MaBandit\\Strategy\\Strategy' not found in wp-content/plugins/nugget-by-ingot/vendor/ingot/mabandit/src/MaBandit/Strategy/EpsilonGreedy.php:5
- > PHP Warning
require(wp-content/plugins/nugget-by-ingot/vendor/ingot/mabandit/vendor/nikic/php-parser/lib/bootstrap.php): failed to open stream: No such file or directory in wp-content/plugins/nugget-by-ingot/vendor/ingot/mabandit/vendor/composer/autoload_real.php on line 58
- > PHP Fatal error
Uncaught Error: Class 'ingot\\testing\\cookies\\cookie' not found in wp-content/plugins/nugget-by-ingot/vendor/ingot/ingot-core/classes/testing/cookies/user.php:17
- > PHP Fatal error
Uncaught Error: Class 'ingot\\testing\\cookies\\cookie' not found in wp-content/plugins/nugget-by-ingot/vendor/ingot/ingot-core/classes/testing/cookies/price.php:22
- > PHP Fatal error
Uncaught Error: Class 'ingot\\testing\\api\\rest\\route' not found in wp-content/plugins/nugget-by-ingot/vendor/ingot/ingot-core/classes/testing/api/rest/variant.php:17
- > PHP Fatal error
Uncaught Error: Class 'ingot\\testing\\tests\\price\\price' not found in wp-content/plugins/nugget-by-ingot/vendor/ingot/ingot-core/classes/testing/tests/price/plugins/edd.php:17
- > PHP Fatal error
Uncaught Error: Class 'ingot\\licensing\\license' not found in wp-content/plugins/nugget-by-ingot/vendor/ingot/ingot-core/classes/licensing/freemius.php:15
- > PHP Fatal error
Uncaught Error: Class 'ingot\\testing\\bandit\\bandit' not found in wp-content/plugins/nugget-by-ingot/vendor/ingot/ingot-core/classes/testing/bandit/content.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
nugget-by-ingot/ingot-nugget.php 85% from 13 tests
"Nugget by Ingot: Easy, automated and native A/B testing for everyone" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("nugget-by-ingot.php" instead of "ingot-nugget.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected60,213 lines of code in 292 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 32 | 7,121 | 22,161 | 32,443 |
PHP | 184 | 5,344 | 15,608 | 20,079 |
CSS | 18 | 219 | 66 | 2,519 |
JSON | 13 | 0 | 0 | 1,856 |
Sass | 12 | 216 | 78 | 1,319 |
SVG | 1 | 0 | 0 | 655 |
Markdown | 11 | 190 | 0 | 623 |
HTML | 15 | 28 | 6 | 595 |
XML | 5 | 5 | 0 | 85 |
LESS | 1 | 6 | 11 | 39 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 18.99 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 758.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.00 |
Code structure | ||
---|---|---|
Namespaces | 30 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 135 | |
▷ Abstract classes | 10 | 7.41% |
▷ Concrete classes | 125 | 92.59% |
▷ Final classes | 0 | 0.00% |
Methods | 1,282 | |
▷ Static methods | 377 | 29.41% |
▷ Public methods | 912 | 71.14% |
▷ Protected methods | 189 | 14.74% |
▷ Private methods | 181 | 14.12% |
Functions | 126 | |
▷ Named functions | 103 | 81.75% |
▷ Anonymous functions | 23 | 18.25% |
Constants | 88 | |
▷ Global constants | 82 | 93.18% |
▷ Class constants | 6 | 6.82% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
22 PNG files occupy 0.16MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/ingot/ingot-core/assets/img/ingot-logo-s.png | 8.54KB | 2.80KB | ▼ 67.20% |
vendor/ingot/ingot-core/assets/admin/css/images/ui-bg_diagonals-thick_20_666666_40x40.png | 0.34KB | 0.15KB | ▼ 55.27% |
vendor/ingot/ingot-core/assets/admin/css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png | 0.31KB | 0.14KB | ▼ 54.26% |
vendor/ingot/ingot-core/assets/admin/css/images/ui-icons_ef8c08_256x240.png | 4.49KB | 4.18KB | ▼ 6.89% |
vendor/ingot/ingot-core/assets/admin/css/images/ui-bg_glass_100_f6f6f6_1x400.png | 0.29KB | 0.12KB | ▼ 59.47% |