90% wp-responsive-retina-images

Code Review | Picture Element Responsive and Retina Images

WordPress plugin Picture Element Responsive and Retina Images scored90%from 54 tests.

About plugin

  • Plugin page: wp-responsive-ret...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.7.2
  • WordPress version: 6.3.1
  • First release: Feb 21, 2017
  • Latest release: Feb 23, 2017
  • Number of updates: 4
  • Update frequency: every 1.3 days
  • Top authors: christhewanderer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /758 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.96ms] Passed 4 tests

Analyzing server-side resources used by Picture Element Responsive and Retina Images
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.13 ▲0.16
Dashboard /wp-admin3.31 ▲0.0047.65 ▲2.31
Posts /wp-admin/edit.php3.36 ▲0.0043.93 ▲1.89
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.66 ▼11.83
Media Library /wp-admin/upload.php3.23 ▲0.0032.62 ▼2.04

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Picture Element Responsive and Retina Images
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.161.68 ▼0.1843.89 ▲0.53
Dashboard /wp-admin2,200 ▲124.85 ▼0.96111.13 ▲9.4043.49 ▲0.03
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0634.70 ▲0.1138.02 ▲5.27
Add New Post /wp-admin/post-new.php1,514 ▼1917.52 ▼5.68657.29 ▼15.8860.06 ▲4.13
Media Library /wp-admin/upload.php1,388 ▼04.25 ▲0.0897.37 ▼7.6344.06 ▲1.18

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: responsive-images, retina-images, picture

wp-responsive-retina-images/wp-responsive-retina-images.php Passed 13 tests

"Picture Element Responsive and Retina Images" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
125 characters long description:
A plugin that helps you generate a picture element for creating responsive images. Retina support is included out of the box.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin86 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
Markdown114045
PHP115941

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.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
No PNG images were found in this plugin