84% influencer-marketing-linkx-fan

Code Review | Influencer Marketing - LinkX.fan

WordPress plugin Influencer Marketing - LinkX.fan scored 84% from 54 tests.

About plugin

  • Plugin page: influencer-market...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Sep 19, 2021
  • Latest release: Aug 19, 2022
  • Number of updates: 5
  • Update frequency: every 67.2 days
  • Top authors: sahumedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 689 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.34ms] Passed 4 tests

Server-side resources used by Influencer Marketing - LinkX.fan
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.88 ▲0.35
Dashboard /wp-admin3.34 ▲0.0346.65 ▼3.78
Posts /wp-admin/edit.php3.39 ▲0.0350.48 ▲1.49
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.64 ▼3.43
Media Library /wp-admin/upload.php3.26 ▲0.0336.41 ▲3.04

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

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

Browser metrics Passed 4 tests

Influencer Marketing - LinkX.fan: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲10613.25 ▼1.011.95 ▼0.3037.38 ▼7.69
Dashboard /wp-admin2,215 ▲305.79 ▲0.87103.86 ▼6.9537.09 ▼11.73
Posts /wp-admin/edit.php2,101 ▲122.02 ▲0.0039.24 ▼0.2734.60 ▼3.16
Add New Post /wp-admin/post-new.php1,524 ▼1817.74 ▼0.51599.80 ▼74.2457.37 ▲12.90
Media Library /wp-admin/upload.php1,403 ▲124.24 ▼0.0793.70 ▼3.5139.93 ▼4.65

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
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/influencer-marketing-linkx-fan/main.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/influencer-marketing-linkx-fan/function.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/influencer-marketing-linkx-fan/admin.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% 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
3 plugin tags: woocommerce influencer, influencer marketing, influencer affiliate

influencer-marketing-linkx-fan/main.php 85% from 13 tests

"Influencer Marketing - LinkX.fan" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("influencer-marketing-linkx-fan.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin251 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP34840160
PO File1212291

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin