10% 5-sterrenspecialist

Code Review | 5sterrenspecialist

WordPress plugin 5sterrenspecialist scored 10% from 54 tests.

About plugin

  • Plugin page: 5-sterrenspecialist
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.0-5.8.1
  • WordPress version: 5.9.2
  • First release: May 2, 2017
  • Latest release: Oct 6, 2021
  • Number of updates: 12
  • Update frequency: every 135.8 days
  • Top authors: 5sterrenspecialist (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,143 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
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/5-sterrenspecialist/5sterrenspecialist.php+126
    unlink(wp-content/plugins/5-sterrenspecialist/tmp/log.log): No such file or directory

Server metrics [RAM: ▼2.47MB] [CPU: ▼352.17ms] Passed 4 tests

A check of server-side resources used by 5sterrenspecialist
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.90 ▼1.624.32 ▼50.44
Dashboard /wp-admin1.92 ▼1.495.66 ▼33.24
Posts /wp-admin/edit.php1.92 ▼1.735.80 ▼36.14
Add New Post /wp-admin/post-new.php1.92 ▼5.064.26 ▼1,288.87
Media Library /wp-admin/upload.php1.92 ▼1.385.79 ▼20.98
5-sterrenspecialist /wp-admin/options-general.php?page=__fivesterrenspecialist_1.925.11

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for 5sterrenspecialist
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,802 ▲4815.85 ▼0.176.74 ▲0.952.66 ▲0.05
Dashboard /wp-admin2,897 ▲366.08 ▼0.11115.40 ▼19.79151.27 ▼13.99
Posts /wp-admin/edit.php2,693 ▲83.24 ▲0.0163.17 ▼1.39140.82 ▼2.68
Add New Post /wp-admin/post-new.php1,714 ▲621.59 ▲4.57447.00 ▲1.82155.53 ▼10.67
Media Library /wp-admin/upload.php1,703 ▲55.54 ▲0.10139.28 ▼6.16185.03 ▼5.88
5-sterrenspecialist /wp-admin/options-general.php?page=__fivesterrenspecialist_1,0322.3955.14113.57

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/5-sterrenspecialist/5sterrenspecialist.php+54
    mkdir(): File exists

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=__fivesterrenspecialist_
    • > Warning in wp-content/plugins/5-sterrenspecialist/5sterrenspecialist.php+54
    mkdir(): File exists

SRP 0% 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
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/5-sterrenspecialist/resources/public/includes/shortcode.php
  • 11× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/5-sterrenspecialist/resources/public/includes/shortcode.php on line 8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/5-sterrenspecialist/resources/public/includes/shortcode.php on line 8
    • > PHP Notice
      Undefined variable: rating in wp-content/plugins/5-sterrenspecialist/resources/public/includes/shortcode.php on line 3
    • > PHP Notice
      Undefined variable: plural in wp-content/plugins/5-sterrenspecialist/resources/public/includes/shortcode.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/5-sterrenspecialist/resources/admin/includes/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/5-sterrenspecialist/5sterrenspecialist.php:31
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/5-sterrenspecialist/resources/public/includes/shortcode.php on line 15
    • > PHP Notice
      Undefined variable: rating in wp-content/plugins/5-sterrenspecialist/resources/public/includes/shortcode.php on line 12
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/5-sterrenspecialist/resources/public/includes/shortcode.php on line 13
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/5-sterrenspecialist/resources/public/includes/shortcode.php on line 15

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

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: 5sterrenspecialist, rich, snippets, 5-sterrenspecialist

5-sterrenspecialist/5sterrenspecialist.php 85% from 13 tests

The main PHP file in "5sterrenspecialist" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("5-sterrenspecialist.php" instead of "5sterrenspecialist.php")
  • Domain Path: The domain path is 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
Success! There were no dangerous files found in this plugin196 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP44042196

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods428.57%
▷ Public methods1285.71%
▷ Protected methods00.00%
▷ Private methods214.29%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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