Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/seo-friendly-images-for-wp/seo-friendly-images.php+48
Use of undefined constant is_admin - assumed 'is_admin' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.38MB] [CPU: ▼60.02ms] Passed 4 tests
A check of server-side resources used by SEO Friendly Images
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.62 ▼0.84 | 7.11 ▼33.88 |
Dashboard /wp-admin | 2.64 ▼0.71 | 9.07 ▼56.35 |
Posts /wp-admin/edit.php | 2.64 ▼0.72 | 7.90 ▼48.40 |
Add New Post /wp-admin/post-new.php | 2.64 ▼3.25 | 10.06 ▼101.46 |
Media Library /wp-admin/upload.php | 2.64 ▼0.59 | 8.02 ▼27.44 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
A check of browser resources used by SEO Friendly Images
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲91 | 14.47 ▲0.09 | 1.85 ▼0.03 | 49.35 ▲5.66 |
Dashboard /wp-admin | 2,230 ▲30 | 5.80 ▼0.06 | 100.12 ▼5.86 | 38.75 ▼2.77 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.01 ▼0.04 | 41.09 ▼1.07 | 36.20 ▼2.40 |
Add New Post /wp-admin/post-new.php | 45 ▼1,486 | 0.44 ▼23.10 | 0.08 ▼673.82 | 9.25 ▼47.15 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.24 ▲0.02 | 102.06 ▲4.29 | 71.57 ▲27.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/seo-friendly-images-for-wp/seo-friendly-images.php+48
Use of undefined constant is_admin - assumed 'is_admin' (this will throw an Error in a future version of PHP)
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- recovery_mode_email_last_sent
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 14 tag instead of maximum 10
seo-friendly-images-for-wp/seo-friendly-images.php 92% from 13 tests
The primary PHP file in "SEO Friendly Images" version 1.1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("seo-friendly-images-for-wp.php" instead of "seo-friendly-images.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,819 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 356 | 283 | 1,819 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 87.80 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 5.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 106 | |
▷ Static methods | 3 | 2.83% |
▷ Public methods | 87 | 82.08% |
▷ Protected methods | 16 | 15.09% |
▷ Private methods | 3 | 2.83% |
Functions | 3 | |
▷ Named functions | 3 | 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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin