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
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.27ms] Passed 4 tests
Analyzing server-side resources used by WP Image Embeds
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 43.12 ▲3.78 |
Dashboard /wp-admin | 3.36 ▲0.06 | 47.70 ▲0.44 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 44.10 ▼6.89 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 83.91 ▼11.10 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.68 ▲0.46 |
WP Image Embed /wp-admin/options-general.php?page=wpie_settings | 3.25 | 31.22 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WP Image Embeds
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲78 | 14.41 ▲0.03 | 1.81 ▼0.05 | 44.84 ▲6.22 |
Dashboard /wp-admin | 2,213 ▲22 | 4.87 ▼1.01 | 106.84 ▲4.31 | 43.62 ▲0.87 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.04 | 37.13 ▼1.39 | 33.98 ▼2.91 |
Add New Post /wp-admin/post-new.php | 6,484 ▲4,951 | 20.15 ▼3.01 | 896.51 ▲218.12 | 76.57 ▲23.39 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.29 ▲0.13 | 98.25 ▲0.57 | 44.19 ▲2.16 |
WP Image Embed /wp-admin/options-general.php?page=wpie_settings | 802 | 2.02 | 26.21 | 26.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-image-embeds/index.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-image-embeds/includes/wpie-actions.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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:
- Screenshots: Add images for these screenshots: #1 (This is the modal popup that visitors will see if the plugin is active and they right click on an image.), #2 (These are the global settings which you will find under Settings > WP Image Embed. Check to enable the plugin on all pages and/or posts. If you do not enable globally you can still enable at the post or page level.), #3 (This is the post/page meta box. If you do not enable the plugin globally you can enable at the page or post level by checking here.)
wp-image-embeds/wp-image-embeds.php Passed 13 tests
The primary PHP file in "WP Image Embeds" version 1.0 is used by WordPress to initiate all plugin functionality
133 characters long description:
A simple way to passively build links by enabling webmasters and bloggers to embed images from your site (while linking back to you).
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
There were no executable files found in this plugin373 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 72 | 129 | 229 |
CSS | 1 | 14 | 5 | 105 |
JavaScript | 1 | 16 | 10 | 39 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 14 | |
▷ Static methods | 1 | 7.14% |
▷ Public methods | 10 | 71.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 28.57% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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
3 PNG files occupy 0.21MB with 0.15MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 136.16KB | 35.91KB | ▼ 73.63% |
screenshot-3.png | 34.42KB | 10.23KB | ▼ 70.29% |
screenshot-2.png | 39.85KB | 11.58KB | ▼ 70.93% |