Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼1.16MB] [CPU: ▼41.66ms] Passed 4 tests
This is a short check of server-side resources used by Image and Media Byline Credits
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.81 ▼0.65 | 12.40 ▼29.06 |
Dashboard /wp-admin | 2.85 ▼0.45 | 21.41 ▼33.85 |
Posts /wp-admin/edit.php | 2.85 ▼0.50 | 18.48 ▼28.29 |
Add New Post /wp-admin/post-new.php | 2.85 ▼3.03 | 15.57 ▼75.42 |
Media Library /wp-admin/upload.php | 2.85 ▼0.38 | 18.50 ▼16.55 |
Image Byline /wp-admin/tools.php?page=image_byline | 2.85 | 15.91 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Image and Media Byline Credits
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲175 | 13.77 ▼0.86 | 4.73 ▲2.93 | 38.21 ▼7.86 |
Dashboard /wp-admin | 2,219 ▲34 | 4.95 ▼0.93 | 121.06 ▲12.63 | 44.04 ▲1.17 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.04 ▲0.07 | 43.40 ▲5.95 | 33.84 ▼2.03 |
Add New Post /wp-admin/post-new.php | 1,534 ▼1 | 18.29 ▼4.70 | 655.04 ▼11.23 | 55.78 ▼4.36 |
Media Library /wp-admin/upload.php | 1,404 ▲19 | 4.24 ▼0.12 | 100.98 ▼15.97 | 40.70 ▼4.84 |
Image Byline /wp-admin/tools.php?page=image_byline | 869 | 2.23 | 33.73 | 33.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function WP_Block_Type_Registry::register was called incorrectly. Block type "core/image" is already registered. Please see Debugging in WordPress for more information. (This message was added in version 5.0.0.)
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=image_byline
- > POST request to /wp-admin/admin-ajax.php
- > User notice in wp-includes/functions.php+5905
Function WP_Block_Type_Registry::register was called incorrectly. Block type "core/image" is already registered. Please see Debugging in WordPress for more information. (This message was added in version 5.0.0.)
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/image-and-media-byline-credits/public/partials/image-byline-public-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/image-and-media-byline-credits/admin/partials/image-byline-admin-display.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
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
Attributes that require attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
image-and-media-byline-credits/image-byline.php 85% from 13 tests
Analyzing the main PHP file in "Image and Media Byline Credits" version 1.0.0
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("image-and-media-byline-credits.php" instead of "image-byline.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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 plugin626 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 171 | 572 | 355 |
JavaScript | 4 | 23 | 44 | 194 |
CSS | 3 | 1 | 1 | 42 |
PO File | 1 | 11 | 2 | 35 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 3.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 2 | 5.26% |
▷ Public methods | 33 | 86.84% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.16% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG files were detected