Benchmarks
Plugin footprint 58% 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
- > Warning in wp-content/plugins/pb-responsive-images/options.php+184
count(): Parameter must be an array or an object that implements Countable
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.46ms] Passed 4 tests
Server-side resources used by PB Responsive Images
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 38.84 ▼2.89 |
Dashboard /wp-admin | 3.33 ▲0.02 | 46.56 ▼4.15 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.24 ▲1.02 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 93.11 ▼6.21 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.40 ▼0.59 |
Responsive Images /wp-admin/options-general.php?page=rip_options | 3.29 | 31.89 |
Server storage [IO: ▲1.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 77 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
rip_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PB Responsive Images
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲61 | 14.34 ▼0.02 | 2.32 ▲0.42 | 40.13 ▼1.90 |
Dashboard /wp-admin | 2,199 ▲22 | 5.64 ▼0.00 | 87.37 ▼10.80 | 38.82 ▼5.74 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▼0.02 | 40.14 ▲3.42 | 36.14 ▼0.62 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.12 ▼0.35 | 610.40 ▼8.91 | 51.73 ▼7.94 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.19 ▼0.04 | 102.83 ▼4.85 | 42.75 ▼2.24 |
Responsive Images /wp-admin/options-general.php?page=rip_options | 1,421 | 2.08 | 30.75 | 29.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/pb-responsive-images/slir/index.php
- 21× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Declaration of PelEntryNumber::setValue() should be compatible with PelEntry::setValue($value) in wp-content/plugins/pb-responsive-images/slir/pel/src/PelEntryNumber.php on line 136
- > PHP Fatal error
require_once(): Failed opening required 'PEAR/PackageFileManager2.php' (include_path='.:/usr/share/php') in wp-content/plugins/pb-responsive-images/slir/pel/makepackagexml.php on line 19
- > PHP Warning
Declaration of PelEntryNumber::setValue() should be compatible with PelEntry::setValue($value) in wp-content/plugins/pb-responsive-images/slir/pel/src/PelEntryNumber.php on line 136
- > PHP Fatal error
Uncaught Error: Class 'PelEntryLong' not found in wp-content/plugins/pb-responsive-images/slir/pel/src/PelEntryRational.php:68
- > PHP Warning
require_once(PEAR/PackageFileManager2.php): failed to open stream: No such file or directory in wp-content/plugins/pb-responsive-images/slir/pel/makepackagexml.php on line 19
- > PHP Warning
Declaration of PelEntryNumber::setValue() should be compatible with PelEntry::setValue($value) in wp-content/plugins/pb-responsive-images/slir/pel/src/PelEntryNumber.php on line 136
- > PHP Fatal error
Uncaught Error: Class 'SLIR' not found in wp-content/plugins/pb-responsive-images/slir/core/slirconfigdefaults.class.php:212
- > PHP Fatal error
Uncaught Error: Class 'PelEntryNumber' not found in wp-content/plugins/pb-responsive-images/slir/pel/src/PelEntryLong.php:62
- > PHP Warning
Declaration of PelEntryNumber::setValue() should be compatible with PelEntry::setValue($value) in wp-content/plugins/pb-responsive-images/slir/pel/src/PelEntryNumber.php on line 136
- > PHP Warning
Declaration of PelEntryNumber::setValue() should be compatible with PelEntry::setValue($value) in wp-content/plugins/pb-responsive-images/slir/pel/src/PelEntryNumber.php on line 136
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: Please add an image for screenshot #1 (The configuration page)
pb-responsive-images/responsive-image-polyfill.php 92% from 13 tests
The primary PHP file in "PB Responsive Images" version 1.4.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("pb-responsive-images.php" instead of "responsive-image-polyfill.php")
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin11,973 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 45 | 1,945 | 8,164 | 7,192 |
PO File | 7 | 2,661 | 5,093 | 4,433 |
Bourne Shell | 4 | 63 | 116 | 150 |
JavaScript | 3 | 27 | 12 | 107 |
Markdown | 1 | 38 | 0 | 81 |
XML | 1 | 1 | 0 | 10 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 146)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 23.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 291.00 |
Average method complexity | 3.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 146.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 62 | |
▷ Abstract classes | 3 | 4.84% |
▷ Concrete classes | 59 | 95.16% |
▷ Final classes | 0 | 0.00% |
Methods | 537 | |
▷ Static methods | 49 | 9.12% |
▷ Public methods | 388 | 72.25% |
▷ Protected methods | 2 | 0.37% |
▷ Private methods | 147 | 27.37% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 270 | |
▷ Global constants | 7 | 2.59% |
▷ Class constants | 263 | 97.41% |
▷ Public constants | 263 | 100.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.15MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 100.93KB | 31.52KB | ▼ 68.77% |
images/editor-icon.png | 1.09KB | 0.18KB | ▼ 83.33% |
images/bg-head.png | 51.16KB | 45.66KB | ▼ 10.74% |
images/editor-icon-disabled.png | 1.09KB | 0.18KB | ▼ 83.33% |
images/logo.png | 2.66KB | 1.01KB | ▼ 61.85% |