68% responsive-css-editor

Code Review | Responsive CSS EDITOR

WordPress plugin Responsive CSS EDITOR scored68%from 54 tests.

About plugin

  • Plugin page: responsive-css-ed...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 27, 2015
  • Latest release: Jan 19, 2016
  • Number of updates: 13
  • Update frequency: every 4.1 days
  • Top authors: wpwox (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

600+ active /4,289 total downloads

Benchmarks

Plugin footprint 65% 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: ▼9.05ms] Passed 4 tests

Analyzing server-side resources used by Responsive CSS EDITOR
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.39 ▲0.16
Dashboard /wp-admin3.33 ▼0.0245.44 ▼12.65
Posts /wp-admin/edit.php3.38 ▲0.0240.75 ▼7.43
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.31 ▼16.25
Media Library /wp-admin/upload.php3.25 ▲0.0236.43 ▲0.13
Responsive CSS /wp-admin/themes.php?page=wpwoxresponsive_editorsss_functions-identifier3.3739.64

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: 2 new tables, 7 new options
New tables
wp_wpwox_custom_css
wp_wpwox_responsive_css
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
wpwox_db_version

Browser metrics Passed 4 tests

Checking browser requirements for Responsive CSS EDITOR
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲5014.72 ▲0.451.67 ▼0.0240.33 ▼6.84
Dashboard /wp-admin2,218 ▲375.61 ▼0.0487.18 ▼20.9639.87 ▼1.92
Posts /wp-admin/edit.php2,120 ▲201.97 ▲0.0034.35 ▼4.6932.84 ▼6.21
Add New Post /wp-admin/post-new.php1,542 ▲1623.53 ▲0.60633.44 ▼11.1651.77 ▲3.94
Media Library /wp-admin/upload.php1,420 ▲174.24 ▲0.1199.25 ▼4.7641.58 ▼5.30
Responsive CSS /wp-admin/themes.php?page=wpwoxresponsive_editorsss_functions-identifier8822.1230.7734.52

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The plugin did not uninstall successfully, leaving 2 tables in the database
    • wp_wpwox_responsive_css
    • wp_wpwox_custom_css
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • wpwox_db_version
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/responsive-css-editor/addcsstobreakpoints.php
    • > /wp-content/plugins/responsive-css-editor/addbreakpoints.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/responsive-css-editor/index.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% 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
These attributes need to be fixed:
  • Requires at least: Invalid version format
You can take inspiration from this readme.txt

responsive-css-editor/index.php 92% from 13 tests

The entry point to "Responsive CSS EDITOR" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("responsive-css-editor.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin452 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP424333452

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.06MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/down_aro.png19.04KB1.36KB▼ 92.87%
assets/delete icon.png18.88KB1.56KB▼ 91.72%
assets/up_aro.png19.01KB1.35KB▼ 92.87%