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.06MB] [CPU: ▼6.20ms] Passed 4 tests
This is a short check of server-side resources used by Embed Image Links
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 43.95 ▲4.16 |
Dashboard /wp-admin | 3.37 ▲0.07 | 47.11 ▼6.69 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 47.10 ▼2.66 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 74.67 ▼17.73 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.50 ▲2.28 |
Embed Image Links /wp-admin/options-general.php?page=embed-image-links-settings | 3.21 | 30.76 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Embed Image Links
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,875 ▲114 | 13.44 ▼0.80 | 11.07 ▲9.43 | 45.31 ▲0.69 |
Dashboard /wp-admin | 2,199 ▲22 | 5.55 ▲0.02 | 88.25 ▲1.04 | 39.07 ▼3.65 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.03 ▲0.07 | 33.78 ▼2.51 | 35.19 ▲2.42 |
Add New Post /wp-admin/post-new.php | 1,531 ▼4 | 23.24 ▲5.04 | 666.65 ▲23.40 | 55.68 ▼8.86 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.05 ▼0.10 | 112.03 ▲9.66 | 48.66 ▲4.57 |
Embed Image Links /wp-admin/options-general.php?page=embed-image-links-settings | 848 | 2.17 | 25.74 | 31.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=embed-image-links-settings
- > Notice in wp-content/plugins/embed-image-links/embed-image-links.php+138
Undefined index: msg
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
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/embed-image-links/js.php
- > /wp-content/plugins/embed-image-links/embed-image-links.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined index: max-width-percentage in wp-content/plugins/embed-image-links/js.php on line 4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
embed-image-links/embed-image-links.php Passed 13 tests
Analyzing the main PHP file in "Embed Image Links" version 1.3.3
79 characters long description:
Automatically replace any image link with the source image in a post or a page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin154 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 52 | 26 | 154 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/settings-icon.png | 2.65KB | 1.80KB | ▼ 32.30% |