Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.18MB] [CPU: ▼15.57ms] Passed 4 tests
A check of server-side resources used by WP Custom Author Image
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.07 | 24.99 ▼16.93 |
Dashboard /wp-admin | 3.18 ▼0.12 | 30.53 ▼16.36 |
Posts /wp-admin/edit.php | 3.26 ▼0.10 | 33.88 ▼15.21 |
Add New Post /wp-admin/post-new.php | 5.45 ▼0.43 | 70.66 ▼13.77 |
Media Library /wp-admin/upload.php | 3.19 ▼0.03 | 29.60 ▼5.46 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_wp_custom_author_image |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Custom Author Image
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,779 ▲18 | 14.35 ▼0.27 | 1.64 ▲0.04 | 37.95 ▼7.84 |
Dashboard /wp-admin | 2,195 ▲21 | 5.54 ▼0.04 | 81.09 ▼6.72 | 82.44 ▲39.42 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▲0.02 | 35.03 ▼3.91 | 34.37 ▲1.02 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.39 ▲0.28 | 780.18 ▲88.19 | 64.57 ▲14.19 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.19 ▲0.04 | 97.34 ▼11.63 | 65.99 ▲18.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- can_compress_scripts
- widget_wp_custom_author_image
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/author-image/multipart-user/multipart-user.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/author-image/wp-custom-author-image-admin.php:52
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/author-image/wp-custom-author-image.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/author-image/wp-custom-author-image-info.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (After activate this plugin go to plugin settings by click on "Users". You can also find the plugin settings by 'Users > Your Profile' menu in your WordPress backend like as above screen.), #2 (You can use [wp-custom-author-image] to display the uploaded WP Custom Author Image in your page/post content.)
author-image/wp-custom-author-image.php 85% from 13 tests
The principal PHP file in "WP Custom Author Image" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("author-image.php" instead of "wp-custom-author-image.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin680 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 214 | 285 | 680 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 48.50 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 5.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 10 | 43.48% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 10.89KB | 6.49KB | ▼ 40.41% |
screenshot-2.png | 40.95KB | 16.44KB | ▼ 59.85% |