84% responsive-checker-real-time

Code Review | Responsive Check

WordPress plugin Responsive Check scored 84% from 54 tests.

About plugin

  • Plugin page: responsive-checke...
  • Plugin version: 0.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.7
  • WordPress version: 6.3.1
  • First release: Jan 16, 2017
  • Latest release: Feb 27, 2017
  • Number of updates: 12
  • Update frequency: every 3.4 days
  • Top authors: kevin1804 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 711 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Responsive Check
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.52 ▼1.72
Dashboard /wp-admin3.31 ▲0.0144.43 ▼7.35
Posts /wp-admin/edit.php3.36 ▲0.0147.38 ▼0.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.26 ▲4.85
Media Library /wp-admin/upload.php3.24 ▲0.0134.12 ▼3.02

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Responsive Check
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲14813.57 ▼0.845.64 ▲3.9136.27 ▼7.08
Dashboard /wp-admin2,209 ▲174.85 ▼0.12109.29 ▼0.8739.50 ▼3.41
Posts /wp-admin/edit.php2,089 ▲32.02 ▲0.0138.93 ▲4.0134.99 ▲4.29
Add New Post /wp-admin/post-new.php1,535 ▲2123.63 ▲6.00574.53 ▼110.8154.37 ▲0.02
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.12104.82 ▼1.6943.47 ▼1.50

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

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/responsive-checker-real-time/responsive-check.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% 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:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can look at the official readme.txt

responsive-checker-real-time/responsive-check.php 92% from 13 tests

The main file in "Responsive Check" v. 0.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("responsive-checker-real-time.php" instead of "responsive-check.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected142 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS13067
PHP112953
JavaScript13122

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
4 compressed PNG files occupy 0.05MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/laptop-screen-optimised.png18.56KB19.86KB0.00%
images/iphone-optimised.png5.36KB5.71KB0.00%
images/ipad-optimised.png15.00KB15.85KB0.00%
images/large-screen-optimised.png15.63KB16.59KB0.00%