Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin did not install without errors
- > Warning in wp-content/plugins/superhero-avatars/superhero-avatars.php+26
array_key_exists() expects parameter 2 to be array, bool given
Server metrics [RAM: ▼1.91MB] [CPU: ▼52.20ms] Passed 4 tests
Server-side resources used by Superhero Avatars
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 5.96 ▼32.80 |
Dashboard /wp-admin | 2.09 ▼1.21 | 9.96 ▼37.26 |
Posts /wp-admin/edit.php | 2.09 ▼1.26 | 7.26 ▼42.73 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.79 | 5.88 ▼96.00 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 7.00 ▼24.34 |
Superhero Avatars /wp-admin/options-general.php?page=superhero-options | 2.09 | 6.28 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Superhero Avatars: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲101 | 13.22 ▼1.43 | 4.95 ▲3.32 | 42.33 ▲1.74 |
Dashboard /wp-admin | 2,230 ▲42 | 4.94 ▲0.03 | 95.26 ▼9.03 | 67.34 ▲24.08 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 1.98 ▼0.00 | 35.77 ▼4.78 | 33.70 ▼4.39 |
Add New Post /wp-admin/post-new.php | 1,681 ▲148 | 22.14 ▼1.19 | 735.58 ▲100.62 | 58.82 ▼0.34 |
Media Library /wp-admin/upload.php | 1,393 ▲2 | 4.26 ▲0.03 | 94.07 ▼7.82 | 82.45 ▲41.56 |
Superhero Avatars /wp-admin/options-general.php?page=superhero-options | 802 | 2.06 | 24.84 | 25.83 |
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
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/superhero-avatars/superhero-avatars.php+26
array_key_exists() expects parameter 2 to be array, bool given
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=superhero-options
- > Warning in wp-content/plugins/superhero-avatars/superhero-avatars.php+27
array_key_exists() expects parameter 2 to be array, bool given
- > GET request to /wp-admin/options-general.php?page=superhero-options
- > Notice in wp-content/plugins/superhero-avatars/superhero-avatars.php+91
Undefined index: _wp_superhero_nonce
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=superhero-options
- > Notice in wp-content/plugins/superhero-avatars/superhero-avatars.php+161
Undefined property: stdClass::$data
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=superhero-options
- > Notice in wp-content/plugins/superhero-avatars/superhero-avatars.php+161
Trying to get property 'results' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=superhero-options
- > Warning in wp-content/plugins/superhero-avatars/superhero-avatars.php+163
Invalid argument supplied for foreach()
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=superhero-options
- > Warning in wp-content/plugins/superhero-avatars/superhero-avatars.php+120
array_rand(): Array is empty
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=superhero-options
- > Notice in wp-content/plugins/superhero-avatars/superhero-avatars.php+120
Undefined index:
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=superhero-options
- > Notice in wp-content/plugins/superhero-avatars/superhero-avatars.php+122
Trying to get property 'thumbnail' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=superhero-options
- > Notice in wp-content/plugins/superhero-avatars/superhero-avatars.php+121
Trying to get property 'extension' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=superhero-options
- > Notice in wp-content/plugins/superhero-avatars/superhero-avatars.php+122
Trying to get property 'path' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=superhero-options
- > Notice in wp-content/plugins/superhero-avatars/superhero-avatars.php+130
Trying to get property 'name' of non-object
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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/superhero-avatars/superhero-avatars.php:24
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=superhero-options
- > Network (severe)
http://./ - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: comments, avatars
superhero-avatars/superhero-avatars.php 92% from 13 tests
The primary PHP file in "Superhero Avatars" version 1.0-RC1... is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Version: The version number should only use digits and periods (ex. "1.0.3" instead of "1.0-RC1...")
Code Analysis Passed 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 plugin121 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 27 | 47 | 104 |
Markdown | 1 | 8 | 0 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 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
PNG images were not found in this plugin