94% responsive

Code Review | Responsive

WordPress plugin Responsive scored 94% from 54 tests.

About plugin

  • Plugin page: responsive
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0+
  • WordPress version: 5.8.1
  • First release: Mar 31, 2016
  • Latest release: Nov 1, 2016
  • Number of updates: 5
  • Update frequency: every 43.0 days
  • Top authors: Dejan Batanjac (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 7,732 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.00MB] [CPU: ▼145.22ms] Passed 4 tests

Analyzing server-side resources used by Responsive
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0033.42 ▲0.18
Dashboard /wp-admin3.06 ▲0.0142.35 ▲2.78
Posts /wp-admin/edit.php3.11 ▲0.0142.41 ▼9.82
Add New Post /wp-admin/post-new.php5.42 ▼0.0192.54 ▼565.64
Media Library /wp-admin/upload.php3.00 ▼0.0032.07 ▼5.61

Server storage [IO: ▲0.00MB] [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: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Responsive
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,950 ▲35516.24 ▲0.5316.86 ▲8.7548.40 ▲4.11
Dashboard /wp-admin2,973 ▲396.08 ▲0.15137.69 ▼2.63112.82 ▲4.58
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0068.42 ▲7.2790.73 ▼9.51
Add New Post /wp-admin/post-new.php1,502 ▼37018.60 ▼0.49383.19 ▲25.16112.30 ▲1.02
Media Library /wp-admin/upload.php1,810 ▲35.03 ▼0.02159.04 ▲11.82117.88 ▼10.80

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive/responsive.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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
These attributes need your attention:
  • Tested up to: The plugin version is formatted incorrectly
  • Screenshots: A description for screenshot #2 is missing in responsive/assets to your readme.txt
The official readme.txt is a good inspiration

responsive/responsive.php Passed 13 tests

Analyzing the main PHP file in "Responsive" version 1.1.0
50 characters long description:
Will make your theme responsive without any effort

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin41 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1151641

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin