83% liquid-rwd-plus

Code Review | LIQUID RWD Plus

WordPress plugin LIQUID RWD Plus scored83%from 54 tests.

About plugin

  • Plugin page: liquid-rwd-plus
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.1
  • WordPress version: 6.3.1
  • First release: Feb 8, 2016
  • Latest release: Nov 5, 2022
  • Number of updates: 22
  • Update frequency: every 112.1 days
  • Top authors: lqd (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /5,162 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▲1,008.23ms] 50% from 4 tests

An overview of server-side resources used by LIQUID RWD Plus
Please fix the following
  • CPU: You should keep total CPU usage under 500.00ms (currently 1,365.13ms on /wp-admin/options-general.php?page=liquid-rwd-plus)
  • Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 1,008.23ms on /wp-admin/options-general.php?page=liquid-rwd-plus)
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0148.86 ▲8.34
Dashboard /wp-admin3.40 ▲0.051,390.52 ▲1,325.17
Posts /wp-admin/edit.php3.45 ▲0.091,387.98 ▲1,335.76
Add New Post /wp-admin/post-new.php5.92 ▲0.031,533.18 ▲1,432.12
Media Library /wp-admin/upload.php3.26 ▲0.031,397.97 ▲1,363.66
LIQUID RWD+ /wp-admin/options-general.php?page=liquid-rwd-plus3.231,365.13

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

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

Browser metrics Passed 4 tests

LIQUID RWD Plus: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲16613.98 ▼0.398.86 ▲7.0841.65 ▼4.86
Dashboard /wp-admin2,210 ▲195.90 ▲0.9998.99 ▼8.4038.05 ▼5.97
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0532.50 ▼3.5833.68 ▲2.80
Add New Post /wp-admin/post-new.php1,540 ▲1618.54 ▼4.44661.95 ▲9.9656.58 ▲7.42
Media Library /wp-admin/upload.php1,392 ▲14.14 ▼0.0689.60 ▼8.5042.00 ▼1.30
LIQUID RWD+ /wp-admin/options-general.php?page=liquid-rwd-plus8242.0724.1725.00

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 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 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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/liquid-rwd-plus/liquid-rwd-plus.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: ""
  • Tags: You are using too many tags: 25 tag instead of maximum 10
You can look at the official readme.txt

liquid-rwd-plus/liquid-rwd-plus.php Passed 13 tests

The main PHP file in "LIQUID RWD Plus" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
101 characters long description:
Responsive Web Design Plus (RWD+). Users can switch the mobile display and PC display on smartphones.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected209 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP11331114
JavaScript2212772
PO File1449423

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected