Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/post-thumbnail-from-url/post-thumbnail-from-url.php+31
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.91MB] [CPU: ▼52.72ms] Passed 4 tests
An overview of server-side resources used by Post Thumbnail from URL
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 6.73 ▼38.81 |
Dashboard /wp-admin | 2.09 ▼1.21 | 6.45 ▼42.21 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 7.12 ▼40.66 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 7.06 ▼89.18 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 7.18 ▼27.91 |
Post Thumbnail from URL /wp-admin/options-general.php?page=bcd-post-thumbnail-from-url-plugin | 2.10 | 6.08 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Post Thumbnail from URL: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.21 ▼1.09 | 2.09 ▼0.27 | 40.09 ▼5.23 |
Dashboard /wp-admin | 2,207 ▲16 | 5.81 ▼0.08 | 98.34 ▼2.62 | 38.37 ▼9.45 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.04 | 40.21 ▲0.11 | 35.50 ▼0.31 |
Add New Post /wp-admin/post-new.php | 1,547 ▲5 | 18.34 ▼0.14 | 650.25 ▲44.86 | 62.72 ▲9.13 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▼0.05 | 98.44 ▼0.53 | 45.84 ▲1.03 |
Post Thumbnail from URL /wp-admin/options-general.php?page=bcd-post-thumbnail-from-url-plugin | 808 | 2.05 | 25.19 | 28.28 |
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
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/post-thumbnail-from-url/post-thumbnail-from-url.php+31
Trying to access array offset on value of type bool
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=bcd-post-thumbnail-from-url-plugin
- > Notice in wp-content/plugins/post-thumbnail-from-url/post-thumbnail-from-url.php+31
Trying to access array offset on value of type bool
SRP 50% 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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/post-thumbnail-from-url/post-thumbnail-from-url.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Sample view of the Post Thumbnail from URL box.), #2 (Success message, now you are ready to open the media library and get the new image straight in your post.)
post-thumbnail-from-url/post-thumbnail-from-url.php 92% from 13 tests
Analyzing the main PHP file in "Post Thumbnail from URL" version 1.0
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 152 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin314 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 23 | 40 | 130 |
PO File | 2 | 26 | 48 | 90 |
JavaScript | 1 | 2 | 13 | 86 |
CSS | 1 | 1 | 0 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 7.98KB | 4.23KB | ▼ 47.04% |
screenshot-1.png | 44.29KB | 23.45KB | ▼ 47.06% |