84% frictionless

Code Review | Frictionless

WordPress plugin Frictionless scored84%from 54 tests.

About plugin

  • Plugin page: frictionless
  • Plugin version: 0.0.23
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 3, 2022
  • Latest release: Sep 29, 2023
  • Number of updates: 21
  • Update frequency: every 29.0 days
  • Top authors: spgajjar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,619 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼10.91ms] Passed 4 tests

An overview of server-side resources used by Frictionless
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0325.02 ▼16.44
Dashboard /wp-admin3.45 ▲0.1049.33 ▼12.30
Posts /wp-admin/edit.php3.50 ▲0.1450.08 ▼1.81
Add New Post /wp-admin/post-new.php6.05 ▲0.1683.77 ▼13.08
Media Library /wp-admin/upload.php3.37 ▲0.1433.87 ▼0.77
Frictionless /wp-admin/options-general.php?page=frictionless3.3427.67

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Frictionless
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4313.91 ▼0.251.82 ▲0.1541.87 ▼0.84
Dashboard /wp-admin2,200 ▲235.54 ▼0.1088.77 ▼1.9239.67 ▼3.98
Posts /wp-admin/edit.php2,108 ▲52.09 ▲0.1241.51 ▲1.1735.44 ▼0.18
Add New Post /wp-admin/post-new.php1,533 ▲523.21 ▲0.09681.97 ▲8.8651.12 ▲0.48
Media Library /wp-admin/upload.php1,408 ▲114.21 ▲0.0395.24 ▼11.5041.94 ▼3.03
Frictionless /wp-admin/options-general.php?page=frictionless9582.0022.5428.46

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/frictionless/frictionless.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: scheduleengine, chat, appointment, servicetitan, booking...

frictionless/frictionless.php 85% from 13 tests

The main PHP script in "Frictionless" version 0.0.23 is automatically included on every request by WordPress
The following require your attention:
  • Requires PHP: The required version number must match the one declared in readme.txt ("7.0" instead of "7.2")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

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
Everything looks great! No dangerous files found in this plugin1,015 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP18169769
JavaScript41115172
CSS26073
SVG1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions16
▷ Named functions16100.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
10 PNG files occupy 0.23MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png27.14KB13.92KB▼ 48.71%
assets/screenshot-3.png34.01KB17.59KB▼ 48.28%
assets/icon-256x256.png5.09KB2.33KB▼ 54.27%
assets/screenshot-7.png10.94KB3.59KB▼ 67.15%
assets/icon-128x128.png2.63KB1.26KB▼ 52.14%