84% responsivity

Code Review | Responsivity

WordPress plugin Responsivity scored84%from 54 tests.

About plugin

  • Plugin page: responsivity
  • Plugin version: 0.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 6.3.1
  • First release: Sep 12, 2018
  • Latest release: Aug 1, 2020
  • Number of updates: 12
  • Update frequency: every 57.4 days
  • Top authors: bilaltas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,169 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼12.19ms] Passed 4 tests

This is a short check of server-side resources used by Responsivity
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.18 ▼7.95
Dashboard /wp-admin3.33 ▼0.0243.38 ▼15.70
Posts /wp-admin/edit.php3.38 ▲0.0243.30 ▼4.69
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.85 ▼20.41
Media Library /wp-admin/upload.php3.25 ▲0.0233.50 ▼2.26
Responsivity /wp-admin/tools.php?page=responsivity3.2633.37

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Responsivity
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲2214.23 ▲0.231.52 ▼0.7238.57 ▼5.72
Dashboard /wp-admin2,199 ▲225.54 ▼0.1182.67 ▼6.6035.28 ▼2.95
Posts /wp-admin/edit.php2,101 ▲12.00 ▼0.0437.27 ▲1.1832.91 ▼0.68
Add New Post /wp-admin/post-new.php1,531 ▲522.91 ▼0.51612.24 ▼29.3257.09 ▼0.28
Media Library /wp-admin/upload.php1,407 ▲44.20 ▼0.0796.27 ▲2.5040.79 ▼2.91
Responsivity /wp-admin/tools.php?page=responsivity1,0091.7527.1431.23

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/responsivity/responsivity-class.php
    • > /wp-content/plugins/responsivity/viewer/index.php
    • > /wp-content/plugins/responsivity/responsivity.php
    • > /wp-content/plugins/responsivity/admin-page.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

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
6 plugin tags: mobile friendly, responsivity tool, mobile view, mobile, responsivity viewer...

responsivity/responsivity.php Passed 13 tests

The principal PHP file in "Responsivity" v. 0.0.6 is loaded by WordPress automatically on each request
77 characters long description:
A tool that allows to make responsivity arrangements easier for web projects.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin3,732 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
CSS462252,496
SVG100685
PHP720859379
JavaScript210511152
Markdown23020

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.65
Average class complexity38.00
▷ Minimum class complexity11.00
▷ Maximum class complexity65.00
Average method complexity5.38
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
viewer/responsivity-favicon.png3.03KB2.12KB▼ 29.89%