83% wishlink-pixel

Code Review | Wishlink Pixel

WordPress plugin Wishlink Pixel scored83%from 54 tests.

About plugin

  • Plugin page: wishlink-pixel
  • Plugin version: 1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.0
  • WordPress version: 6.3.1
  • First release: Oct 9, 2022
  • Latest release: Oct 9, 2022
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: shantanuverma12 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /430 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.82ms] Passed 4 tests

A check of server-side resources used by Wishlink Pixel
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.98 ▼3.41
Dashboard /wp-admin3.33 ▲0.0247.75 ▼6.64
Posts /wp-admin/edit.php3.38 ▲0.0247.40 ▼3.57
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.04 ▼17.66
Media Library /wp-admin/upload.php3.25 ▲0.0236.21 ▲2.18

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Wishlink Pixel
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.22 ▼1.041.79 ▼0.0141.93 ▼0.87
Dashboard /wp-admin2,221 ▲214.81 ▼0.07100.94 ▼0.8539.18 ▼7.07
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0036.60 ▼6.5733.88 ▼4.59
Add New Post /wp-admin/post-new.php1,540 ▼1418.20 ▼0.03644.21 ▲16.8852.09 ▲0.02
Media Library /wp-admin/upload.php1,400 ▼04.29 ▲0.07101.50 ▲1.2548.74 ▲0.38

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

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)
The smoke test was a success, however most plugin functionality was not tested

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 fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wishlink-pixel/wishlink.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: tracking, tracker, woocommerce, tracking pixel, pixel

wishlink-pixel/wishlink.php 77% from 13 tests

Analyzing the main PHP file in "Wishlink Pixel" version 1.0
Please make the necessary changes and fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: Name the main plugin file the same as the plugin slug ("wishlink-pixel.php" instead of "wishlink.php")
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin170 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12611114
JavaScript24056

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 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%
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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin