Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.23MB] [CPU: ▼48.89ms] Passed 4 tests
Analyzing server-side resources used by Featured Image from External Sources
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.74 ▼0.72 | 14.16 ▼30.58 |
Dashboard /wp-admin | 2.79 ▼0.52 | 18.52 ▼34.35 |
Posts /wp-admin/edit.php | 2.79 ▼0.57 | 14.77 ▼34.92 |
Add New Post /wp-admin/post-new.php | 2.79 ▼3.10 | 17.64 ▼95.71 |
Media Library /wp-admin/upload.php | 2.79 ▼0.44 | 15.62 ▼17.95 |
Featured Image from External Sources /wp-admin/options-general.php?page=fifes | 2.79 | 15.50 |
Server storage [IO: ▲0.95MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 45 new files
Database: no new tables, 14 new options
New WordPress options |
---|
fi_email_body |
fi_zdroj |
fi_terms_of_use |
widget_theysaidso_widget |
theysaidso_admin_options |
fi_email_notification_subject |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
fi_email_subject |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Featured Image from External Sources
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.35 ▲0.09 | 1.76 ▼0.08 | 43.68 ▼0.17 |
Dashboard /wp-admin | 2,202 ▲25 | 5.62 ▲0.02 | 90.01 ▲3.42 | 48.12 ▲4.67 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.04 | 35.50 ▼5.44 | 34.16 ▼4.99 |
Add New Post /wp-admin/post-new.php | 6,236 ▲4,710 | 25.98 ▲2.94 | 933.24 ▲300.33 | 54.14 ▲4.53 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.22 ▲0.01 | 95.27 ▼11.50 | 43.64 ▼0.64 |
Featured Image from External Sources /wp-admin/options-general.php?page=fifes | 1,271 | 2.22 | 29.07 | 69.24 |
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
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/featured-image-from-external-sources/featured-image-from-external-sources.php+38
Undefined index: post
- Zombie WordPress options detected upon uninstall: 14 options
- fi_blinded_assistent_email
- fi_terms_of_use
- fi_zdroj
- fi_blinded_on
- widget_recent-posts
- fi_email_notification_subject
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- fi_email_body
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=fifes
- > Notice in wp-content/plugins/featured-image-from-external-sources/featured-image-from-external-sources.php+38
Undefined index: post
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/featured-image-from-external-sources/featured-image-from-external-sources.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/featured-image-from-external-sources/sponsors.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
These attributes need your attention:
- Donate link: Invalid URI found ("")
- Screenshots: Screenshot #1 (http://plugins.svn.wordpress.org/featured-image-from-google-images/assets/screen1.png) image missing
featured-image-from-external-sources/featured-image-from-external-sources.php Passed 13 tests
Analyzing the main PHP file in "Featured Image from External Sources" version 1.0
47 characters long description:
Fastest way to choose thumbnail for your posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected3,316 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 928 | 465 | 2,498 |
CSS | 1 | 61 | 27 | 621 |
PO File | 1 | 45 | 51 | 148 |
JavaScript | 1 | 69 | 64 | 49 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 193.50 |
▷ Minimum class complexity | 138.00 |
▷ Maximum class complexity | 249.00 |
Average method complexity | 5.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 90 | |
▷ Static methods | 1 | 1.11% |
▷ Public methods | 75 | 83.33% |
▷ Protected methods | 15 | 16.67% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 22 | |
▷ Global constants | 22 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
26 PNG files occupy 0.60MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
in-admin-panel/images/donate/heineken.png | 49.31KB | 14.22KB | ▼ 71.17% |
in-admin-panel/images/donate/budweiser.png | 44.03KB | 11.32KB | ▼ 74.29% |
in-admin-panel/images/search.png | 0.57KB | 0.44KB | ▼ 23.21% |
in-admin-panel/images/donate/clock.png | 1.68KB | 1.27KB | ▼ 24.21% |
in-admin-panel/images/donate/desperados.png | 36.18KB | 9.49KB | ▼ 73.77% |