Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.21MB] [CPU: ▼146.32ms] Passed 4 tests
Server-side resources used by PB SEO Friendly Images
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.04 ▲0.20 | 31.52 ▲5.54 |
Dashboard /wp-admin | 3.30 ▲0.24 | 41.22 ▼0.93 |
Posts /wp-admin/edit.php | 3.39 ▲0.28 | 35.00 ▼1.36 |
Add New Post /wp-admin/post-new.php | 5.64 ▲0.20 | 75.27 ▼586.01 |
Media Library /wp-admin/upload.php | 3.22 ▲0.21 | 27.31 ▲3.01 |
SEO Friendly Images /wp-admin/options-general.php?page=pb-seo-friendly-images | 3.22 | 24.18 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 2 new options
New WordPress options |
---|
pb-seo-friendly-images |
pb-seo-friendly-images-dbv |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PB SEO Friendly Images
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,673 ▲72 | 15.99 ▲0.42 | 5.17 ▼1.75 | 77.94 ▲2.40 |
Dashboard /wp-admin | 2,940 ▲44 | 6.02 ▼0.17 | 122.37 ▼21.63 | 168.25 ▼6.87 |
Posts /wp-admin/edit.php | 2,750 ▲10 | 3.24 ▼0.12 | 64.91 ▼0.27 | 137.29 ▲2.60 |
Add New Post /wp-admin/post-new.php | 3,727 ▼80 | 18.63 ▼0.05 | 443.35 ▲19.35 | 159.31 ▼4.28 |
Media Library /wp-admin/upload.php | 1,756 ▲4 | 5.49 ▼0.02 | 144.21 ▼3.00 | 189.03 ▼2.01 |
SEO Friendly Images /wp-admin/options-general.php?page=pb-seo-friendly-images | 2,050 | 2.52 | 56.22 | 250.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 1 option
- pb-seo-friendly-images-dbv
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/pb-seo-friendly-images/templates/options_page.php:2
- > 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 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Please delete some tags, you are using 17 tag instead of maximum 10
pb-seo-friendly-images/pb-seo-friendly-images.php 92% from 13 tests
The main PHP script in "PB SEO Friendly Images" version 4.0.4 is automatically included on every request by WordPress
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 205 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin2,714 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 384 | 318 | 1,778 |
PO File | 1 | 119 | 133 | 435 |
Sass | 1 | 40 | 1 | 230 |
CSS | 2 | 2 | 1 | 229 |
JavaScript | 1 | 15 | 9 | 41 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 29.88 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 5.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 1 | 2.04% |
▷ Public methods | 46 | 93.88% |
▷ Protected methods | 2 | 4.08% |
▷ Private methods | 1 | 2.04% |
Functions | 8 | |
▷ Named functions | 1 | 12.50% |
▷ Anonymous functions | 7 | 87.50% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/warning.png | 20.55KB | 2.87KB | ▼ 86.03% |
assets/img/icon.png | 7.87KB | 3.76KB | ▼ 52.20% |
assets/img/check.png | 3.57KB | 2.17KB | ▼ 39.12% |
assets/img/mailcrypt.png | 5.89KB | 2.87KB | ▼ 51.34% |
assets/img/code.png | 26.40KB | 4.65KB | ▼ 82.39% |