10% 5sterrenspecialist-wc-invites

Code Review | 5sterrenspecialist invite

WordPress plugin 5sterrenspecialist invite scored 10% from 54 tests.

About plugin

  • Plugin page: 5sterrenspecialis...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.0-5.5
  • WordPress version: 5.9.2
  • First release: Dec 8, 2020
  • Latest release: Dec 8, 2020
  • Number of updates: 2
  • Update frequency: every 6.5 days
  • Top authors: 5sterrenspecialist (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 209 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/5sterrenspecialist-wc-invites/classes/FiveSter/Log/Debug.php+15
    unlink(wp-content/plugins/5sterrenspecialist-wc-invites/tmp/log.log): No such file or directory

Server metrics [RAM: ▼2.50MB] [CPU: ▼357.06ms] Passed 4 tests

This is a short check of server-side resources used by 5sterrenspecialist invite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /1.94 ▼1.584.47 ▼60.72
Dashboard /wp-admin1.96 ▼1.455.19 ▼39.51
Posts /wp-admin/edit.php1.96 ▼1.963.84 ▼56.29
Add New Post /wp-admin/post-new.php1.96 ▼5.024.29 ▼1,271.71
Media Library /wp-admin/upload.php1.96 ▼1.344.25 ▼21.68
5sterrenspecialist Invite /wp-admin/options-general.php?page=_fivester_invite1.964.08

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for 5sterrenspecialist invite
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲4615.65 ▲0.235.51 ▼0.072.19 ▲0.09
Dashboard /wp-admin2,894 ▲436.16 ▼0.03119.97 ▼20.59157.01 ▼2.28
Posts /wp-admin/edit.php2,696 ▲53.24 ▲0.0064.32 ▼7.60146.97 ▼18.97
Add New Post /wp-admin/post-new.php1,755 ▲8920.97 ▲0.66569.21 ▲42.45172.64 ▼12.61
Media Library /wp-admin/upload.php1,706 ▲85.49 ▲0.00143.30 ▲8.82211.62 ▲22.89
5sterrenspecialist Invite /wp-admin/options-general.php?page=_fivester_invite9712.3756.54109.83

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/5sterrenspecialist-wc-invites/classes/FiveSter/Plugin.php+15
    mkdir(): File exists

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=_fivester_invite
    • > Warning in wp-content/plugins/5sterrenspecialist-wc-invites/classes/FiveSter/Plugin.php+15
    mkdir(): File exists
    • > GET request to /wp-admin/options-general.php?page=_fivester_invite
    • > Notice in wp-content/plugins/5sterrenspecialist-wc-invites/resources/admin/includes/settings.php+5
    Undefined index: tab

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/5sterrenspecialist-wc-invites/resources/templates/footer.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/5sterrenspecialist-wc-invites/resources/admin/includes/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/5sterrenspecialist-wc-invites/invite.php:32

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: rich, 5sterrenspecialist, 5-sterrenspecialist-invite, snippets

5sterrenspecialist-wc-invites/invite.php 85% from 13 tests

The main PHP file in "5sterrenspecialist invite" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: The principal plugin file should be the same as the plugin slug ("5sterrenspecialist-wc-invites.php" instead of "invite.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin246 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP95929246

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity3.40
▷ Minimum class complexity2.00
▷ Maximum class complexity5.00
Average method complexity1.63
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods19
▷ Static methods842.11%
▷ Public methods1684.21%
▷ Protected methods00.00%
▷ Private methods315.79%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.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