84% responsive-checker

Code Review | Responsive Checker

WordPress plugin Responsive Checker scored 84% from 54 tests.

About plugin

  • Plugin page: responsive-checker
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9+
  • WordPress version: 6.3.1
  • First release: Dec 13, 2014
  • Latest release: Feb 9, 2018
  • Number of updates: 8
  • Update frequency: every 147.8 days
  • Top authors: brainesia (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 2,084 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: ▲0.41ms] Passed 4 tests

Server-side resources used by Responsive Checker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0137.69 ▼3.04
Dashboard /wp-admin3.31 ▲0.0149.51 ▼2.82
Posts /wp-admin/edit.php3.36 ▲0.0148.17 ▲3.63
Add New Post /wp-admin/post-new.php5.91 ▲0.0390.59 ▲7.49
Media Library /wp-admin/upload.php3.24 ▲0.0136.91 ▲3.86
Responsive Checker /wp-admin/admin.php?page=menu-res-checker-handle3.2030.03
Make it Responsive /wp-admin/admin.php?page=menu_responsive_checker_make_responsive3.2029.11

Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

Checking browser requirements for Responsive Checker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.31 ▼1.084.47 ▲2.4440.08 ▼8.05
Dashboard /wp-admin2,237 ▲524.86 ▼1.04102.66 ▼13.4339.43 ▼1.69
Posts /wp-admin/edit.php2,120 ▲312.05 ▲0.0242.37 ▲7.5334.68 ▼1.98
Add New Post /wp-admin/post-new.php1,540 ▼217.49 ▼0.77576.87 ▼20.7053.96 ▲6.81
Media Library /wp-admin/upload.php1,422 ▲344.22 ▲0.0499.79 ▲4.1641.93 ▼0.63
Responsive Checker /wp-admin/admin.php?page=menu-res-checker-handle1,2321.9227.6148.34
Make it Responsive /wp-admin/admin.php?page=menu_responsive_checker_make_responsive7802.0725.1024.04

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/responsive-checker/responsive-checker.php:15

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tested up to: Version not formatted correctly
The official readme.txt is a good inspiration

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

This is the main PHP file of "Responsive Checker" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
35 characters long description:
Responsive checker for your website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin156 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript13072
PHP2111645
CSS20039

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png18.92KB11.00KB▼ 41.87%
assets/images/Rotation-icon.png1.33KB1.17KB▼ 12.21%
assets/images/redo-icon.png3.42KB2.02KB▼ 40.79%