Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.28ms] Passed 4 tests
An overview of server-side resources used by Smart Avatars
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.80 ▼3.12 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.94 ▼3.87 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.98 ▲0.60 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.66 ▼8.93 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.91 ▼5.19 |
Smart Avatars /wp-admin/options-general.php?page=zl-smart-avatars | 3.00 | 23.66 |
Redux /wp-admin/options-general.php?page=redux-framework | 3.00 | 23.20 |
Server storage [IO: ▲11.71MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 904 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
zipline_smart_avatars |
db_upgraded |
widget_recent-posts |
zipline_smart_avatars-transients |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Smart Avatars
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲3 | 14.72 ▲0.46 | 1.84 ▼0.19 | 41.09 ▼1.72 |
Dashboard /wp-admin | 2,195 ▲15 | 5.61 ▼0.02 | 87.43 ▼11.48 | 40.25 ▼2.50 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.96 ▲0.00 | 38.71 ▲0.62 | 37.25 ▲4.86 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.09 ▼0.25 | 646.22 ▼46.22 | 59.65 ▼1.14 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.14 ▼0.10 | 100.36 ▼12.18 | 42.05 ▼5.04 |
Smart Avatars /wp-admin/options-general.php?page=zl-smart-avatars | 28 | 0.41 | 0.20 | 3.79 |
Redux /wp-admin/options-general.php?page=redux-framework | 28 | 0.41 | 0.08 | 4.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 8 options in the database
- zipline_smart_avatars-transients
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- zipline_smart_avatars
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/zipline-smart-avatars/src/templates/spinner.php
- 49× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/zipline-smart-avatars/vendor-lib/redux-core/inc/fields/slides/field_slides.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/zipline-smart-avatars/vendor-lib/redux-core/inc/fields/editor/field_editor.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/zipline-smart-avatars/vendor-lib/redux-core/inc/fields/color_gradient/field_color_gradient.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function Automattic\\Jetpack\\Autoloader\\jpZiplineSmartAvatars\\wp_normalize_path() in wp-content/plugins/zipline-smart-avatars/vendor/jetpack-autoloader/class-path-processor.php:73
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/zipline-smart-avatars/vendor-lib/redux-core/inc/fields/password/field_password.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/zipline-smart-avatars/vendor-lib/redux-core/inc/fields/select/field_select.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/zipline-smart-avatars/vendor-lib/redux-core/inc/fields/button_set/field_button_set.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/zipline-smart-avatars/vendor-lib/redux-core/inc/fields/slider/field_slider.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/zipline-smart-avatars/vendor-lib/redux-core/inc/fields/raw/field_raw.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/zipline-smart-avatars/vendor-lib/redux-core/inc/fields/sorter/field_sorter.php:8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=zl-smart-avatars
- > Network (severe)
wp-admin/options-general.php?page=zl-smart-avatars - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/options-general.php?page=redux-framework
- > Network (severe)
wp-admin/options-general.php?page=redux-framework - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add descriptions for these screenshots #5, #6, #7, #8, #9 in zipline-smart-avatars/assets to your readme.txt
zipline-smart-avatars/zl-smart-avatars.php 85% from 13 tests
The main PHP script in "Smart Avatars" version 1.1.1 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("zipline-smart-avatars.php" instead of "zl-smart-avatars.php")
- 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
Good job! No executable or dangerous file extensions detected79,178 lines of code in 596 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 236 | 7,256 | 13,556 | 27,916 |
JavaScript | 140 | 6,129 | 3,452 | 25,674 |
Sass | 95 | 1,898 | 88 | 12,888 |
CSS | 106 | 6,722 | 308 | 10,671 |
SVG | 10 | 77 | 1 | 1,720 |
JSON | 3 | 0 | 0 | 180 |
Markdown | 6 | 59 | 0 | 129 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 110)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 31.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 341.00 |
Average method complexity | 5.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 110.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 171 | |
▷ Abstract classes | 4 | 2.34% |
▷ Concrete classes | 167 | 97.66% |
▷ Final classes | 0 | 0.00% |
Methods | 1,173 | |
▷ Static methods | 343 | 29.24% |
▷ Public methods | 931 | 79.37% |
▷ Protected methods | 141 | 12.02% |
▷ Private methods | 101 | 8.61% |
Functions | 22 | |
▷ Named functions | 12 | 54.55% |
▷ Anonymous functions | 10 | 45.45% |
Constants | 110 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 110 | 100.00% |
▷ Public constants | 110 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
68 PNG files occupy 0.18MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor-lib/redux-core/assets/img/jquery-ui-bootstrap/ui-icons_454545_256x240.png | 4.10KB | 4.11KB | 0.00% |
vendor-lib/redux-core/assets/img/raw/menu_icon.png | 1.41KB | 0.50KB | ▼ 64.62% |
assets/images/avatars/demo-avatars/Avatar5.png | 12.89KB | 4.87KB | ▼ 62.19% |
vendor-lib/redux-core/assets/img/raw/3cm.png | 2.96KB | 0.29KB | ▼ 90.35% |
vendor-lib/redux-core/assets/img/jquery-ui-bootstrap/ui-icons_cd0a0a_256x240.png | 4.10KB | 4.11KB | 0.00% |