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.42MB] [CPU: ▲1.15ms] Passed 4 tests
This is a short check of server-side resources used by Image Source Control Lite – Show Image Credits and Captions
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.43 | 42.56 ▲0.37 |
Dashboard /wp-admin | 3.78 ▲0.43 | 57.51 ▼2.51 |
Posts /wp-admin/edit.php | 3.83 ▲0.47 | 53.78 ▲7.16 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.41 | 92.98 ▼0.44 |
Media Library /wp-admin/upload.php | 3.64 ▲0.41 | 42.83 ▲9.96 |
Image Sources /wp-admin/upload.php?page=isc-sources | 3.64 | 37.82 |
Image Sources /wp-admin/options-general.php?page=isc-settings | 3.64 | 44.88 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 64 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Image Source Control Lite – Show Image Credits and Captions: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲74 | 14.18 ▼0.17 | 2.36 ▲0.55 | 44.86 ▼1.45 |
Dashboard /wp-admin | 2,212 ▲35 | 5.63 ▼0.01 | 91.97 ▼7.14 | 43.36 ▼2.36 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 1.97 ▲0.03 | 36.27 ▼1.48 | 34.65 ▼3.42 |
Add New Post /wp-admin/post-new.php | 1,554 ▲26 | 23.58 ▲0.22 | 682.63 ▲32.84 | 36.91 ▼13.69 |
Media Library /wp-admin/upload.php | 1,418 ▲15 | 4.21 ▼0.02 | 102.67 ▼0.34 | 41.53 ▼0.38 |
Image Sources /wp-admin/upload.php?page=isc-sources | 956 | 2.18 | 28.34 | 39.41 |
Image Sources /wp-admin/options-general.php?page=isc-settings | 1,534 | 1.83 | 28.79 | 41.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/image-source-control-isc/public/views/image-source-box.php
- 49× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: posts_with_images in wp-content/plugins/image-source-control-isc/templates/post_images_list.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'ISC_Admin' not found in wp-content/plugins/image-source-control-isc/admin/templates/settings.php:4
- > PHP Fatal error
Uncaught Error: Class 'ISC_Admin' not found in wp-content/plugins/image-source-control-isc/admin/templates/settings/elementor.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/image-source-control-isc/admin/templates/settings/global-list-thumbnail-enable.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/image-source-control-isc/admin/templates/sources/external-images.php:8
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/image-source-control-isc/templates/image_posts_list.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/image-source-control-isc/admin/templates/settings/overlay-advanced-included-images.php:9
- > PHP Fatal error
Uncaught Error: Class 'ISC_Model' not found in wp-content/plugins/image-source-control-isc/admin/templates/sources/images-without-sources.php:8
- > PHP Notice
Undefined variable: images_with_posts in wp-content/plugins/image-source-control-isc/admin/templates/image-posts-list.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/image-source-control-isc/admin/templates/settings/block-options.php:9
- > PHP Notice
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 88% 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:
- Screenshots: These screenshots need descriptions #2, #3, #4, #5, #6 in image-source-control-isc/assets to your readme.txt
- Tags: You are using too many tags: 12 tag instead of maximum 10
image-source-control-isc/isc.php 92% from 13 tests
This is the main PHP file of "Image Source Control Lite – Show Image Credits and Captions" version 2.17.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("image-source-control-isc.php" instead of "isc.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin4,219 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 51 | 557 | 1,545 | 3,384 |
JavaScript | 7 | 72 | 115 | 547 |
CSS | 1 | 22 | 21 | 121 |
SVG | 1 | 0 | 0 | 118 |
HTML | 1 | 6 | 0 | 49 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 53.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 176.00 |
Average method complexity | 3.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 152 | |
▷ Static methods | 50 | 32.89% |
▷ Public methods | 148 | 97.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 2.63% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/image_source_control_logo_positive_512px.png | 6.00KB | 2.86KB | ▼ 52.41% |