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: 6.3.1
  • 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,474 total downloads

Benchmarks

Plugin footprint 40% 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
  • Install procedure validation failed for this plugin
    • > 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: ▼1.91MB] [CPU: ▼57.08ms] Passed 4 tests

A check of server-side resources used by 5sterrenspecialist
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.384.12 ▼38.06
Dashboard /wp-admin2.10 ▼1.215.74 ▼42.03
Posts /wp-admin/edit.php2.10 ▼1.266.36 ▼39.99
Add New Post /wp-admin/post-new.php2.10 ▼3.796.70 ▼108.22
Media Library /wp-admin/upload.php2.10 ▼1.134.82 ▼27.85
5-sterrenspecialist /wp-admin/options-general.php?page=__fivesterrenspecialist_2.106.05

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for 5sterrenspecialist
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4913.18 ▼1.184.15 ▲1.5140.57 ▼4.41
Dashboard /wp-admin2,207 ▲194.85 ▼0.10110.80 ▲1.8942.86 ▼3.20
Posts /wp-admin/edit.php2,096 ▲72.00 ▼0.0342.73 ▲6.3435.49 ▲1.18
Add New Post /wp-admin/post-new.php1,536 ▲2223.19 ▲5.70590.60 ▼54.4264.01 ▲15.04
Media Library /wp-admin/upload.php1,392 ▲74.21 ▲0.0392.38 ▼5.2941.85 ▼3.89
5-sterrenspecialist /wp-admin/options-general.php?page=__fivesterrenspecialist_7932.0623.1028.43

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/5-sterrenspecialist/5sterrenspecialist.php+54
    mkdir(): File exists
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

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 | 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× PHP files output text when accessed directly:
    • > /wp-content/plugins/5-sterrenspecialist/resources/public/includes/shortcode.php
  • 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > 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
    • > 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 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/5-sterrenspecialist/resources/admin/includes/settings.php:2
    • > 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: data in wp-content/plugins/5-sterrenspecialist/resources/public/includes/shortcode.php on line 8
    • > 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 13
    • > PHP Notice
      Undefined variable: rating in wp-content/plugins/5-sterrenspecialist/resources/public/includes/shortcode.php on line 12
    • > PHP Notice
      Undefined variable: plural in wp-content/plugins/5-sterrenspecialist/resources/public/includes/shortcode.php on line 14

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

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: 5sterrenspecialist, snippets, 5-sterrenspecialist, rich

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
The following require your attention:
  • 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 points to a folder that does not exist ("/languages")

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
No dangerous file extensions were detected196 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP44042196

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin