77% yourllp-affiliate

Code Review | Yourllp Affiliate - yourllp.com official WordPress Plugin

WordPress plugin Yourllp Affiliate - yourllp.com official WordPress Plugin scored 77% from 54 tests.

About plugin

  • Plugin page: yourllp-affiliate
  • Plugin version: 0.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2+
  • WordPress version: 6.3.1
  • First release: Nov 17, 2020
  • Latest release: Nov 17, 2020
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: yourllp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 265 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.06ms] Passed 4 tests

This is a short check of server-side resources used by Yourllp Affiliate - yourllp.com official WordPress Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.00 ▼6.60
Dashboard /wp-admin3.32 ▲0.0150.39 ▲0.22
Posts /wp-admin/edit.php3.37 ▲0.0146.39 ▼3.90
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.46 ▼21.73
Media Library /wp-admin/upload.php3.24 ▲0.0134.42 ▼0.01

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Yourllp Affiliate - yourllp.com official WordPress Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8314.47 ▲0.071.70 ▼0.0741.86 ▼13.21
Dashboard /wp-admin2,221 ▲305.81 ▼0.0995.61 ▼7.0538.83 ▼0.98
Posts /wp-admin/edit.php2,104 ▲182.05 ▼0.0736.05 ▼1.5433.18 ▲0.92
Add New Post /wp-admin/post-new.php1,543 ▲1023.57 ▲0.27661.95 ▼39.6949.28 ▼7.77
Media Library /wp-admin/upload.php1,409 ▲244.19 ▼0.0799.67 ▼6.1441.85 ▼4.42

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/yourllp-affiliate/templates/htmlpage.php
    • > /wp-content/plugins/yourllp-affiliate/templates/shortcode.php
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/yourllp-affiliate/templates/mypage.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yourllp-affiliate/settings.php:70
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/yourllp-affiliate/templates/lists.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yourllp-affiliate/yourllp-affiliate.php:41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yourllp-affiliate/shortcode.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/yourllp-affiliate/templates/page.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tested up to: Version not formatted correctly
  • Contributors: The plugin contributors field is missing
You can look at the official readme.txt

yourllp-affiliate/yourllp-affiliate.php 85% from 13 tests

Analyzing the main PHP file in "Yourllp Affiliate - yourllp.com official WordPress Plugin" version 0.0.1
Please make the necessary changes and fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Requires at least: The required version number must match the one declared in readme.txt ("3.9" instead of "5.2")

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 plugin328 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP1077108307
CSS15321

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.04
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%
Functions19
▷ Named functions19100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 3.97MB with 2.58MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/image2.png311.93KB111.60KB▼ 64.22%
images/image11.png556.13KB202.26KB▼ 63.63%
images/image10.png644.67KB219.16KB▼ 66.00%
images/image4.png215.44KB83.61KB▼ 61.19%
images/image5.png348.27KB106.16KB▼ 69.52%