Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.17MB] [CPU: ▼1.08ms] Passed 4 tests
Server-side resources used by Better Image Credits
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.09 | 41.97 ▼0.12 |
Dashboard /wp-admin | 3.52 ▲0.19 | 47.60 ▼2.84 |
Posts /wp-admin/edit.php | 3.63 ▲0.25 | 52.66 ▲0.94 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.20 | 96.19 ▼2.30 |
Media Library /wp-admin/upload.php | 3.45 ▲0.19 | 38.34 ▲2.18 |
Image Credits /wp-admin/options-general.php?page=image-credits | 3.41 | 33.48 |
Server storage [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: no files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_better-image-credits-widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Better Image Credits
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.29 ▼1.08 | 1.67 ▼0.01 | 39.51 ▼2.70 |
Dashboard /wp-admin | 2,215 ▲30 | 4.87 ▼0.98 | 108.99 ▲7.36 | 41.54 ▼3.78 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.13 ▲0.08 | 38.93 ▼1.18 | 35.13 ▼4.14 |
Add New Post /wp-admin/post-new.php | 1,533 ▲4 | 23.14 ▲4.84 | 593.15 ▼30.41 | 48.64 ▼4.18 |
Media Library /wp-admin/upload.php | 1,477 ▲89 | 4.56 ▲0.39 | 98.43 ▲3.94 | 41.56 ▼1.37 |
Image Credits /wp-admin/options-general.php?page=image-credits | 1,272 | 8.94 | 115.78 | 73.82 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_better-image-credits-widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/better-image-credits/class-credits-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/better-image-credits/better-image-credits.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: image, credits, media
better-image-credits/better-image-credits.php Passed 13 tests
The entry point to "Better Image Credits" version 2.0.3 is a PHP file that has certain tags in its header comment area
129 characters long description:
Adds credits and link fields for media uploads along with a shortcode and various options to display image credits in your posts.
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
There were no executable files found in this plugin1,521 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 8 | 328 | 352 | 728 |
PHP | 3 | 136 | 43 | 679 |
JavaScript | 2 | 11 | 0 | 81 |
CSS | 1 | 6 | 0 | 33 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 26.67 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.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 | 42 | |
▷ Static methods | 1 | 2.38% |
▷ Public methods | 42 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 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
There were not PNG files found in your plugin