10% link-party

Code Review | illi Link Party!

WordPress plugin illi Link Party! scored 10% from 54 tests.

About plugin

  • Plugin page: link-party
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.5.2
  • WordPress version: 5.8.1
  • First release: Sep 22, 2013
  • Latest release: Sep 22, 2013
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: evanliewer (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,021 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/link-party/includes/install.php+57
    Undefined variable: upload_dir

Server metrics [RAM: ▼0.00MB] [CPU: ▼142.49ms] Passed 4 tests

A check of server-side resources used by illi Link Party!
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1235.24 ▲15.27
Dashboard /wp-admin3.06 ▲0.0044.88 ▼6.36
Posts /wp-admin/edit.php3.11 ▲0.0047.80 ▲5.15
Add New Post /wp-admin/post-new.php5.42 ▼0.0191.19 ▼554.33
Media Library /wp-admin/upload.php3.00 ▼0.0131.80 ▼14.40

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: 3 new tables, 2 new options
New tables
wp_illi_Parties
wp_illi
wp_illi_Submissions
New WordPress options
illi_DB_Version
illi_Version

Browser metrics Passed 4 tests

illi Link Party!: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8316.22 ▲0.668.55 ▼0.5049.86 ▼0.54
Dashboard /wp-admin2,973 ▲425.87 ▼0.24139.85 ▼11.19121.82 ▲10.19
Posts /wp-admin/edit.php2,739 ▼02.69 ▲0.0165.92 ▼3.2399.91 ▲5.89
Add New Post /wp-admin/post-new.php1,498 ▼18518.82 ▲0.06378.43 ▼3.48108.98 ▼11.27
Media Library /wp-admin/upload.php1,807 ▼05.02 ▲0.02154.49 ▼1.78119.40 ▼6.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure failed, leaving 3 tables in the database
    • wp_illi
    • wp_illi_Submissions
    • wp_illi_Parties
  • This plugin did not uninstall successfully, leaving 2 options in the database
    • illi_Version
    • illi_DB_Version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 10× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      require_once(RL_BASE_INC/functions.php): failed to open stream: No such file or directory in wp-content/plugins/link-party/includes/core.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/link-party/illi.php:36
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/link-party/includes/install.php:22
    • > PHP Warning
      Use of undefined constant RL_BASE_INC - assumed 'RL_BASE_INC' (this will throw an Error in a future version of PHP) in wp-content/plugins/link-party/includes/core.php on line 2
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/link-party/includes/install.php on line 4
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/link-party/includes/install.php on line 5
    • > PHP Parse error
      syntax error, unexpected '}', expecting end of file in wp-content/plugins/link-party/includes/functions.php on line 462
    • > PHP Parse error
      syntax error, unexpected '}', expecting end of file in wp-content/plugins/link-party/includes/admin.php on line 276
    • > PHP Fatal error
      require_once(): Failed opening required 'RL_BASE_INC/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/link-party/includes/core.php on line 2
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/link-party/includes/install.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === link-party === )
You can look at the official readme.txt

link-party/illi.php 85% from 13 tests

"illi Link Party!" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 332 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("link-party.php" instead of "illi.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin697 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5274127697

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.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