78% lynked-loyalty

Code Review | Lynked Loyalty

WordPress plugin Lynked Loyalty scored78%from 54 tests.

About plugin

  • Plugin page: lynked-loyalty
  • Plugin version: 0.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 9, 2023
  • Latest release: Mar 9, 2023
  • Number of updates: 14
  • Update frequency: N/A
  • Top authors: lynkedloyalty (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /113 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▲164.11ms] Passed 4 tests

An overview of server-side resources used by Lynked Loyalty
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.82 ▲5.48
Dashboard /wp-admin3.44 ▲0.13262.13 ▲218.37
Posts /wp-admin/edit.php3.49 ▲0.13271.85 ▲229.06
Add New Post /wp-admin/post-new.php5.98 ▲0.10301.92 ▲216.58
Media Library /wp-admin/upload.php3.30 ▲0.07250.72 ▲216.02

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 80 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Lynked Loyalty
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,900 ▲13914.35 ▼0.3630.05 ▲28.4953.47 ▲12.44
Dashboard /wp-admin2,225 ▲545.91 ▲0.2495.77 ▲7.9685.74 ▲44.01
Posts /wp-admin/edit.php2,127 ▲242.53 ▲0.3833.67 ▼1.1132.79 ▼3.49
Add New Post /wp-admin/post-new.php1,543 ▲1723.16 ▲0.11703.64 ▲38.1237.46 ▼13.73
Media Library /wp-admin/upload.php1,430 ▲304.60 ▲0.4492.72 ▼10.6884.15 ▲40.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

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
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/lynked-loyalty/templates/app.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lynked-loyalty/lynked-loyalty.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: referrals, rewards, loyalty, free, woocommerce

lynked-loyalty/lynked-loyalty.php 92% from 13 tests

Analyzing the main PHP file in "Lynked Loyalty" version 0.1.1
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin27,011 lines of code in 68 files:
LanguageFilesBlank linesComment linesLines of code
JSON30024,233
Sass1126501,381
JSX301072813
PHP44945281
JavaScript175011273
CSS33030

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.74MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/shared/img/logo.png317.19KB140.21KB▼ 55.80%
src/shared/img/logo_modal.png15.43KB7.63KB▼ 50.56%
build/images/ios.bc48cfd4.png35.79KB16.54KB▼ 53.78%
src/shared/img/download.png0.39KB0.37KB▼ 5.03%
src/shared/img/android.png8.87KB4.31KB▼ 51.40%