WordPress plugin WP Srcset scored84%from 54 tests.

About plugin

  • Plugin page: high-resoloution-...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.0
  • WordPress version: 6.3.1
  • First release: Oct 5, 2014
  • Latest release: Oct 9, 2014
  • Number of updates: 10
  • Update frequency: every 0.6 days
  • Top authors: mattheu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,014 total downloads

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.01MB] [CPU: ▼11.17ms] Passed 4 tests

A check of server-side resources used by WP Srcset
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.20 ▼2.41
Dashboard /wp-admin3.31 ▼0.0450.90 ▼13.27
Posts /wp-admin/edit.php3.36 ▲0.0047.12 ▼2.42
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.89 ▼26.58
Media Library /wp-admin/upload.php3.23 ▲0.0040.26 ▲4.74

Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

WP Srcset: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6914.74 ▲0.431.64 ▼0.2343.10 ▲4.73
Dashboard /wp-admin2,218 ▲145.84 ▼0.08128.44 ▲20.4045.80 ▲3.94
Posts /wp-admin/edit.php2,097 ▼32.04 ▼0.0136.55 ▼5.7933.05 ▼5.67
Add New Post /wp-admin/post-new.php1,545 ▲1923.26 ▲5.75624.74 ▼75.6968.24 ▲1.56
Media Library /wp-admin/upload.php1,400 ▼34.29 ▲0.09120.04 ▲11.3948.06 ▲1.13

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/high-resoloution-images-with-srcset/high-resoloution-images-with-srcset.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: high-res, retina, images, srcset

high-resoloution-images-with-srcset/high-resoloution-images-with-srcset.php Passed 13 tests

The principal PHP file in "WP Srcset" v. 1.0.3 is loaded by WordPress automatically on each request
53 characters long description:
Automatic high resolution retina images using srcset.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin467 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript296168384
PHP1536083

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin