Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼1.54ms] Passed 4 tests
Analyzing server-side resources used by Author or User Image
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 35.13 ▼11.94 |
Dashboard /wp-admin | 3.36 ▲0.06 | 42.02 ▼4.01 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 50.99 ▲3.57 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 93.47 ▲8.24 |
Media Library /wp-admin/upload.php | 3.36 ▲0.12 | 40.39 ▲6.21 |
Author Image List /wp-admin/users.php?page=Author_Image_List | 3.38 | 37.49 |
Author Image /wp-admin/users.php?page=Author_Image | 3.40 | 32.19 |
Author Image Settings /wp-admin/users.php?page=Author_Image_Settings | 3.40 | 30.30 |
Author Image Black List /wp-admin/users.php?page=Author_Image_Black_List | 3.40 | 30.51 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Author or User Image
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲105 | 13.26 ▼1.11 | 4.62 ▲2.75 | 39.02 ▼3.58 |
Dashboard /wp-admin | 2,245 ▲57 | 4.89 ▼0.99 | 109.47 ▼6.63 | 81.46 ▲41.16 |
Posts /wp-admin/edit.php | 2,131 ▲39 | 2.00 ▼0.01 | 39.75 ▼1.43 | 37.57 ▲0.93 |
Add New Post /wp-admin/post-new.php | 1,558 ▲44 | 18.12 ▲0.44 | 740.29 ▲58.39 | 72.64 ▲11.92 |
Media Library /wp-admin/upload.php | 1,424 ▲42 | 4.21 ▲0.03 | 96.19 ▼2.90 | 72.52 ▲28.45 |
Author Image List /wp-admin/users.php?page=Author_Image_List | 1,018 | 1.69 | 28.04 | 26.82 |
Author Image /wp-admin/users.php?page=Author_Image | 923 | 2.20 | 24.80 | 30.27 |
Author Image Settings /wp-admin/users.php?page=Author_Image_Settings | 866 | 2.09 | 25.67 | 32.62 |
Author Image Black List /wp-admin/users.php?page=Author_Image_Black_List | 1,010 | 1.71 | 24.41 | 26.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/users.php?page=Author_Image_List
- > Warning in wp-content/plugins/author-or-user-image/list.php+154
scandir(wp-content/uploads/author-image/): failed to open dir: No such file or directory
- > GET request to /wp-admin/users.php?page=Author_Image_List
- > Warning in wp-content/plugins/author-or-user-image/list.php+154
scandir(): (errno 2): No such file or directory
- > GET request to /wp-admin/users.php?page=Author_Image_List
- > Warning in wp-content/plugins/author-or-user-image/list.php+161
count(): Parameter must be an array or an object that implements Countable
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/author-or-user-image/list.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
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
These attributes need your attention:
- Donate link: Invalid url: ""
author-or-user-image/author_image.php 85% from 13 tests
The principal PHP file in "Author or User Image" v. 2.0.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 196 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("author-or-user-image.php" instead of "author_image.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected918 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 79 | 19 | 695 |
JavaScript | 3 | 16 | 0 | 191 |
CSS | 1 | 1 | 0 | 32 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 33.33 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 4.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
default-user-image.png | 1.46KB | 1.66KB | 0.00% |