Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.54MB] [CPU: ▲1.22ms] Passed 4 tests
Analyzing server-side resources used by Salt Shaker
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲0.60 | 39.37 ▲1.38 |
Dashboard /wp-admin | 3.90 ▲0.60 | 49.07 ▲1.01 |
Posts /wp-admin/edit.php | 3.95 ▲0.60 | 52.10 ▲6.17 |
Add New Post /wp-admin/post-new.php | 6.44 ▲0.55 | 93.65 ▼3.70 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 42.89 ▲11.61 |
Salt Shaker /wp-admin/tools.php?page=salt_shaker | 3.89 | 40.18 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 3.99 | 38.68 |
Server storage [IO: ▲3.99MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 211 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
fs_debug_mode |
fs_active_plugins |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
fs_accounts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Salt Shaker
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲94 | 14.29 ▲0.00 | 1.66 ▲0.08 | 29.90 ▼14.08 |
Dashboard /wp-admin | 2,261 ▲87 | 5.59 ▼0.12 | 92.05 ▲1.36 | 46.53 ▲3.42 |
Posts /wp-admin/edit.php | 2,167 ▲67 | 2.15 ▲0.12 | 39.39 ▲3.88 | 41.23 ▲6.22 |
Add New Post /wp-admin/post-new.php | 1,564 ▲26 | 23.37 ▲0.10 | 681.12 ▲14.79 | 58.45 ▼2.96 |
Media Library /wp-admin/upload.php | 1,469 ▲69 | 4.26 ▲0.08 | 99.65 ▲3.98 | 47.17 ▲5.32 |
Salt Shaker /wp-admin/tools.php?page=salt_shaker | 988 | 1.68 | 26.76 | 60.17 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,077 | 1.71 | 25.77 | 29.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/salt-shaker/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 9 options in the database
- fs_accounts
- widget_recent-posts
- theysaidso_admin_options
- fs_active_plugins
- fs_debug_mode
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% 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 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 fix the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/salt-shaker/_inc/loader.php:3
- > PHP Fatal error
Uncaught Error: Class 'SalterCore' not found in wp-content/plugins/salt-shaker/_inc/salter.class.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/salt-shaker/_inc/gui/settings-template.php:2
- > PHP Fatal error
Uncaught Error: Class 'SaltShaker\\SalterOptions' not found in wp-content/plugins/salt-shaker/_inc/gui/inner-settings-template.php:5
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: authentication keys, login, salt keys, cookies, wp config...
salt-shaker/shaker.php 92% from 13 tests
The main file in "Salt Shaker" v. 1.4.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("salt-shaker.php" instead of "shaker.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin34,411 lines of code in 153 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 126 | 8,074 | 17,282 | 33,448 |
XML | 5 | 0 | 0 | 334 |
JavaScript | 4 | 35 | 60 | 239 |
Markdown | 2 | 71 | 0 | 217 |
PO File | 2 | 28 | 38 | 90 |
CSS | 14 | 12 | 0 | 83 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 88.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 2 | 3.92% |
▷ Concrete classes | 49 | 96.08% |
▷ Final classes | 0 | 0.00% |
Methods | 1,281 | |
▷ Static methods | 204 | 15.93% |
▷ Public methods | 892 | 69.63% |
▷ Protected methods | 17 | 1.33% |
▷ Private methods | 372 | 29.04% |
Functions | 103 | |
▷ Named functions | 103 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
14 PNG files occupy 0.89MB with 0.45MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 46.99KB | 15.72KB | ▼ 66.56% |
assets/banner-1880x609-rtl.png | 171.92KB | 105.59KB | ▼ 38.58% |
assets/banner-1544x500.png | 147.59KB | 85.89KB | ▼ 41.81% |
assets/banner-1544x500-rtl.png | 151.04KB | 85.08KB | ▼ 43.67% |
assets/icon-128.png | 14.93KB | 5.68KB | ▼ 61.99% |