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
It is recommended to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/seo-image/seo-friendly-images.class.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; SEOFriendlyImages has a deprecated constructor
Server metrics [RAM: ▼1.50MB] [CPU: ▼52.37ms] Passed 4 tests
A check of server-side resources used by SEO Friendly Images
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.49 ▼0.98 | 5.71 ▼31.29 |
Dashboard /wp-admin | 2.51 ▼0.80 | 7.42 ▼45.95 |
Posts /wp-admin/edit.php | 2.51 ▼0.85 | 6.44 ▼40.20 |
Add New Post /wp-admin/post-new.php | 2.51 ▼3.38 | 6.94 ▼92.03 |
Media Library /wp-admin/upload.php | 2.51 ▼0.72 | 7.62 ▼22.72 |
Settings /wp-admin/admin.php?page=sfi_settings | 2.51 | 7.00 |
About /wp-admin/admin.php?page=sfi_about | 2.51 | 8.24 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by SEO Friendly Images
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 14.34 ▲0.17 | 1.66 ▼0.01 | 43.16 ▼0.39 |
Dashboard /wp-admin | 2,224 ▲44 | 5.51 ▼0.18 | 82.19 ▼6.37 | 81.16 ▲38.94 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 1.99 ▼0.02 | 36.89 ▼1.83 | 33.67 ▼2.04 |
Add New Post /wp-admin/post-new.php | 1,701 ▲175 | 22.54 ▼0.51 | 667.94 ▼7.70 | 40.20 ▼18.04 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.24 ▲0.03 | 100.33 ▼2.35 | 77.95 ▲33.93 |
Settings /wp-admin/admin.php?page=sfi_settings | 1,028 | 2.02 | 24.68 | 38.40 |
About /wp-admin/admin.php?page=sfi_about | 858 | 2.04 | 23.12 | 28.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/seo-image/seo-friendly-images.class.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; SEOFriendlyImages has a deprecated constructor
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
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
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sfi_about
- > Deprecated in wp-content/plugins/seo-image/seo-friendly-images.class.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; SEOFriendlyImages has a deprecated constructor
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sfi_about
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sfi_about
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/seo-image/seo-friendly-images.class.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 13 tag instead of maximum 10
seo-image/seo-friendly-images.php 92% from 13 tests
The entry point to "SEO Friendly Images" version 3.0.5 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("seo-image.php" instead of "seo-friendly-images.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 plugin1,218 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 108 | 29 | 844 |
PO File | 3 | 97 | 340 | 234 |
JavaScript | 2 | 15 | 5 | 140 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 196.00 |
▷ Minimum class complexity | 196.00 |
▷ Maximum class complexity | 196.00 |
Average method complexity | 11.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 87.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
5 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
i/arrows.png | 0.48KB | 0.24KB | ▼ 50.81% |
i/seosmart125.png | 16.56KB | 6.04KB | ▼ 63.51% |
i/mwp250_2.png | 22.54KB | 21.97KB | ▼ 2.52% |
i/icon.png | 1.50KB | 0.76KB | ▼ 49.22% |
i/logo.png | 2.66KB | 1.51KB | ▼ 43.40% |