94% responsify-wp

Code Review | Responsify WP

WordPress plugin Responsify WP scored 94% from 53 tests.

About plugin

  • Plugin page: responsify-wp
  • Plugin version: 1.9.11
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.1-4.9.6
  • WordPress version: 5.8.1
  • First release: Jul 29, 2014
  • Latest release: Jun 7, 2018
  • Number of updates: 50
  • Update frequency: every 28.2 days
  • Top authors: stefanledin (100%)

Code review

53 tests

User reviews

18 reviews

Install metrics

1,000+ active / 37,063 total downloads

Benchmarks

Plugin footprint Passed 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.20MB] [CPU: ▼267.15ms] Passed 4 tests

Server-side resources used by Responsify WP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.01 ▲0.1835.44 ▲5.70
Dashboard /wp-admin3.32 ▲0.2739.47 ▼10.25
Posts /wp-admin/edit.php3.37 ▲0.2645.03 ▼0.29
Add New Post /wp-admin/post-new.php5.62 ▲0.1992.72 ▼1,056.43
Media Library /wp-admin/upload.php3.20 ▲0.1935.63 ▼1.64
RWP Settings /wp-admin/options-general.php?page=responsify-wp3.1933.48

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Responsify WP: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,668 ▲6216.34 ▲0.819.26 ▲1.0148.77 ▲2.43
Dashboard /wp-admin2,946 ▲966.39 ▲0.46148.46 ▲13.52102.44 ▼0.33
Posts /wp-admin/edit.php2,728 ▲222.99 ▲0.3166.88 ▼2.7497.79 ▲5.68
Add New Post /wp-admin/post-new.php1,663 ▲7518.35 ▼2.99350.59 ▲77.49106.64 ▼1.81
Media Library /wp-admin/upload.php1,779 ▲75.03 ▲0.04156.55 ▼1.53110.18 ▼2.74
RWP Settings /wp-admin/options-general.php?page=responsify-wp1,8352.5565.1188.18

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/responsify-wp/admin/views/selected_element.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'element' not found in wp-content/plugins/responsify-wp/includes/native-element.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Img' not found in wp-content/plugins/responsify-wp/includes/native-img.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/responsify-wp/admin/views/content_filter.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/responsify-wp/admin/views/retina.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/responsify-wp/admin/views/ignored_image_formats.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Create_Responsive_image' not found in wp-content/plugins/responsify-wp/includes/element.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function submit_button() in wp-content/plugins/responsify-wp/admin/views/media_queries.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/responsify-wp/admin/views/picturefill.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_intermediate_image_sizes() in wp-content/plugins/responsify-wp/admin/views/settings.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 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
Attributes that require attention:
  • Screenshots: These screenshots lack descriptions #3, #5 in responsify-wp/assets to your readme.txt
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

responsify-wp/responsify-wp.php Passed 13 tests

"Responsify WP" version 1.9.11's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
73 characters long description:
Responsify WP is the WordPress plugin that cares about responsive images.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin2,033 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP271772311,462
JavaScript32715512
CSS12059

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity11.00
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity2.66
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes16.25%
▷ Concrete classes1593.75%
▷ Final classes00.00%
Methods91
▷ Static methods33.30%
▷ Public methods5257.14%
▷ Protected methods3942.86%
▷ Private methods00.00%
Functions7
▷ Named functions457.14%
▷ Anonymous functions342.86%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 1 test

Image compression Passed 1 test

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