89% freesoul-responsive-check

Code Review | Responsive Testing: simulate different devices

WordPress plugin Responsive Testing: simulate different devices scored 89% from 54 tests.

About plugin

  • Plugin page: freesoul-responsi...
  • Plugin version: 0.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Jul 14, 2019
  • Latest release: Aug 9, 2023
  • Number of updates: 28
  • Update frequency: every 53.2 days
  • Top authors: giuse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,826 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Responsive Testing: simulate different devices
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.98 ▼1.68
Dashboard /wp-admin3.31 ▲0.0152.71 ▲4.94
Posts /wp-admin/edit.php3.36 ▲0.0147.11 ▲0.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.81 ▼6.13
Media Library /wp-admin/upload.php3.23 ▲0.0137.20 ▲0.97

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Responsive Testing: simulate different devices: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.65 ▲0.351.62 ▼0.4144.66 ▼17.20
Dashboard /wp-admin2,206 ▲184.83 ▼1.07125.41 ▲17.7750.39 ▲9.69
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0237.00 ▼0.0731.89 ▼5.55
Add New Post /wp-admin/post-new.php1,533 ▲1323.02 ▼0.23623.40 ▼11.5473.67 ▲9.03
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0495.23 ▼14.1241.93 ▼6.43

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Donate link: Invalid URI ("")
  • Donate link: Invalid URI ("")
You can look at the official readme.txt

freesoul-responsive-check/freesoul-responsive-check.php 92% from 13 tests

The principal PHP file in "Responsive Testing: simulate different devices" v. 0.0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
There were no executable files found in this plugin652 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP31141466
JavaScript210111
PO File1222275

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity1.27
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.27
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin