Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼8.18ms] Passed 4 tests
Analyzing server-side resources used by RICG Responsive Images
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 49.33 ▲5.47 |
Dashboard /wp-admin | 3.35 ▲0.04 | 48.25 ▼1.91 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 46.89 ▼9.04 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 85.44 ▼21.21 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.11 ▼0.54 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by RICG Responsive Images
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲33 | 14.35 ▲0.06 | 2.46 ▲0.80 | 44.70 ▲3.60 |
Dashboard /wp-admin | 2,192 ▲12 | 5.57 ▼0.08 | 92.17 ▲3.23 | 40.70 ▼4.07 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.04 ▲0.04 | 37.19 ▲0.36 | 33.26 ▼0.89 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.59 ▲0.49 | 687.50 ▼9.31 | 51.62 ▲1.27 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.18 ▼0.06 | 98.79 ▼20.92 | 45.39 ▼4.41 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- 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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/ricg-responsive-images/wp-tevko-responsive-images.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ricg-responsive-images/wp-tevko-core-functions.php:372
- > PHP Fatal error
Uncaught Error: Class 'Imagick' not found in wp-content/plugins/ricg-responsive-images/class-respimg.php:25
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/ricg-responsive-images/class-wp-image-editor-respimg.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ricg-responsive-images/wp-tevko-deprecated-functions.php:317
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHWPINC/class-wp-image-editor.php' (include_path='.:/usr/share/php') in wp-content/plugins/ricg-responsive-images/class-wp-image-editor-respimg.php on line 10
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ricg-responsive-images/class-wp-image-editor-respimg.php on line 10
- > PHP Warning
require_once(ABSPATHWPINC/class-wp-image-editor.php): failed to open stream: No such file or directory in wp-content/plugins/ricg-responsive-images/class-wp-image-editor-respimg.php on line 10
- > 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 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: images, picturefill, srcset, responsive images, responsive
ricg-responsive-images/wp-tevko-responsive-images.php 92% from 13 tests
The main file in "RICG Responsive Images" v. 3.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ricg-responsive-images.php" instead of "wp-tevko-responsive-images.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,116 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 195 | 629 | 686 |
Markdown | 1 | 197 | 0 | 392 |
JavaScript | 2 | 12 | 18 | 28 |
JSON | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 30.50 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 10.83 |
▷ Minimum method complexity | 3.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin