90% responsive-controls

Code Review | Responsive controls

WordPress plugin Responsive controls scored90%from 54 tests.

About plugin

  • Plugin page: responsive-controls
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: Sep 10, 2022
  • Latest release: Nov 24, 2023
  • Number of updates: 3
  • Update frequency: every 147.0 days
  • Top authors: wpspices (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /520 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.71ms] Passed 4 tests

An overview of server-side resources used by Responsive controls
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0540.90 ▼12.92
Dashboard /wp-admin3.36 ▲0.0548.30 ▼1.76
Posts /wp-admin/edit.php3.41 ▲0.0546.28 ▼4.00
Add New Post /wp-admin/post-new.php6.05 ▲0.1694.66 ▼2.90
Media Library /wp-admin/upload.php3.28 ▲0.0534.87 ▼3.03

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

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

Browser metrics Passed 4 tests

Responsive controls: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.20 ▼0.071.90 ▲0.1644.17 ▲0.34
Dashboard /wp-admin2,195 ▲155.62 ▲0.0395.97 ▼4.0644.80 ▼0.19
Posts /wp-admin/edit.php2,100 ▼01.96 ▲0.0136.08 ▼1.2534.14 ▲1.38
Add New Post /wp-admin/post-new.php1,688 ▲16222.01 ▼1.20669.20 ▲41.4245.16 ▼3.21
Media Library /wp-admin/upload.php1,403 ▲34.15 ▼0.0094.95 ▲0.0543.84 ▲2.60

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 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 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === responsive-controls === )
The official readme.txt is a good inspiration

responsive-controls/responsive-controls.php Passed 13 tests

The primary PHP file in "Responsive controls" version 1.0.1 is used by WordPress to initiate all plugin functionality
33 characters long description:
Add responsive controls to blocks

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
No dangerous file extensions were detected109 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP32631107
CSS1001
JavaScript1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin