84% linkmydeals

Code Review | LinkMyDeals

WordPress plugin LinkMyDeals scored84%from 54 tests.

About plugin

  • Plugin page: linkmydeals
  • Plugin version: 2.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 7, 2021
  • Latest release: Nov 21, 2023
  • Number of updates: 31
  • Update frequency: every 24.1 days
  • Top authors: kamilkhan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /6,592 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.03MB] [CPU: ▲1.66ms] Passed 4 tests

An overview of server-side resources used by LinkMyDeals
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.32 ▲3.28
Dashboard /wp-admin3.34 ▲0.0346.97 ▼0.84
Posts /wp-admin/edit.php3.39 ▲0.0348.57 ▲1.80
Add New Post /wp-admin/post-new.php5.92 ▲0.0489.20 ▲2.41
Media Library /wp-admin/upload.php3.26 ▲0.0337.92 ▲4.68
Import Coupon Feed /wp-admin/admin.php?page=linkmydeals3.2034.81
Coupon Custom Template /wp-admin/admin.php?page=coupon-custom-template3.2940.49
Logs /wp-admin/admin.php?page=linkmydeals-logs3.2334.74

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

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

Browser metrics Passed 4 tests

A check of browser resources used by LinkMyDeals
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲6914.58 ▲0.371.83 ▲0.3143.41 ▲5.91
Dashboard /wp-admin2,239 ▲625.63 ▼0.0188.09 ▼12.0342.73 ▼4.59
Posts /wp-admin/edit.php2,141 ▲412.00 ▲0.0634.71 ▼4.2933.35 ▲1.82
Add New Post /wp-admin/post-new.php1,560 ▲2522.94 ▼2.23656.85 ▲53.4956.23 ▼8.89
Media Library /wp-admin/upload.php1,441 ▲444.19 ▼0.0298.38 ▼1.8741.79 ▼2.64
Import Coupon Feed /wp-admin/admin.php?page=linkmydeals1,2681.8330.2160.13
Coupon Custom Template /wp-admin/admin.php?page=coupon-custom-template1,6466.89145.3468.12
Logs /wp-admin/admin.php?page=linkmydeals-logs9221.8126.9423.84

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=linkmydeals
    • > Notice in wp-content/plugins/linkmydeals/views.php+179
    Undefined index: default_format
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=linkmydeals
    • > Notice in wp-content/plugins/linkmydeals/views.php+278
    Undefined index: cashback_mode

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: linkmydeals, offers, coupon feed, coupon api, vouchers...

linkmydeals/linkmydeals.php 92% from 13 tests

The main file in "LinkMyDeals" v. 2.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 153 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin3,341 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP97311513,027
SVG100288
CSS24625
JavaScript1061

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions48
▷ Named functions4695.83%
▷ Anonymous functions24.17%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin