73% liffery

Code Review | Liffery

WordPress plugin Liffery scored73%from 54 tests.

About plugin

  • Plugin page: liffery
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.9
  • WordPress version: 6.3.1
  • First release: Jan 27, 2022
  • Latest release: Apr 26, 2022
  • Number of updates: 8
  • Update frequency: every 11.1 days
  • Top authors: liffery (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /265 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.73ms] Passed 4 tests

Analyzing server-side resources used by Liffery
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0636.92 ▼4.29
Dashboard /wp-admin3.36 ▲0.0547.44 ▲0.64
Posts /wp-admin/edit.php3.47 ▲0.1147.51 ▼2.90
Add New Post /wp-admin/post-new.php5.96 ▲0.0784.10 ▼16.35
Media Library /wp-admin/upload.php3.28 ▲0.0537.08 ▲3.05
Liffery /wp-admin/options-general.php?page=liffery3.2630.71

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Liffery
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲8013.47 ▼0.938.44 ▲6.2037.15 ▼4.97
Dashboard /wp-admin2,217 ▲295.87 ▲0.9695.47 ▼8.9543.30 ▼1.54
Posts /wp-admin/edit.php2,100 ▲112.02 ▲0.0140.85 ▲1.1035.78 ▼0.40
Add New Post /wp-admin/post-new.php1,521 ▼023.17 ▲0.13664.30 ▲33.7253.81 ▼1.36
Media Library /wp-admin/upload.php1,393 ▲24.17 ▼0.0195.92 ▼8.5342.85 ▼1.54
Liffery /wp-admin/options-general.php?page=liffery8122.0226.0133.25

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=liffery
    • > Notice in wp-content/plugins/liffery/admin/partials/liffery-sidebar-admin-display.php+11
    Undefined index: action

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/liffery/admin/partials/tabSettings.php
    • > /wp-content/plugins/liffery/admin/partials/tabStatus.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined variable: validated in wp-content/plugins/liffery/admin/partials/tabStatus.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/liffery/admin/partials/liffery-sidebar-admin-display.php:10
    • > PHP Notice
      Undefined variable: verifiedJustNow in wp-content/plugins/liffery/admin/partials/tabSettings.php on line 1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === liffery === )
Please take inspiration from this readme.txt

liffery/liffery.php Passed 13 tests

This is the main PHP file of "Liffery" version 1.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
111 characters long description:
The official Liffery Wordpress/ Woocommerce Plugin - Make sure you verify the installation on the settings page

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin412 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP16128521391
JavaScript12414
CSS1257

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.12
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods25
▷ Static methods28.00%
▷ Public methods1976.00%
▷ Protected methods00.00%
▷ Private methods624.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/liffery.png0.44KB0.29KB▼ 35.24%