58% healomax-stress-assessment

Code Review | Healomax Stress Assessment Plugin

WordPress plugin Healomax Stress Assessment Plugin scored58%from 54 tests.

About plugin

  • Plugin page: healomax-stress-a...
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.4
  • WordPress version: 6.3.1
  • First release: Mar 11, 2023
  • Latest release: Nov 29, 2023
  • Number of updates: 104
  • Update frequency: every 2.5 days
  • Top authors: healomax (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /378 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.85MB] [CPU: ▼33.04ms] Passed 4 tests

A check of server-side resources used by Healomax Stress Assessment Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0743.66 ▼0.70
Dashboard /wp-admin3.10 ▼0.2130.74 ▼22.43
Posts /wp-admin/edit.php3.10 ▼0.2625.44 ▼23.96
Add New Post /wp-admin/post-new.php3.10 ▼2.7926.97 ▼71.90
Media Library /wp-admin/upload.php3.10 ▼0.1323.19 ▼13.88
Stress Assessment /wp-admin/options-general.php?page=healomax_stress_assessment_options3.1123.27

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 13 new files
Database: 1 new table, 6 new options
New tables
wp_healomax_stress
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Healomax Stress Assessment Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3414.67 ▲0.421.58 ▼0.2438.16 ▼4.88
Dashboard /wp-admin2,199 ▲195.62 ▲0.0192.42 ▼0.3041.21 ▼1.49
Posts /wp-admin/edit.php2,104 ▲41.95 ▼0.0539.10 ▲1.9134.91 ▲1.15
Add New Post /wp-admin/post-new.php1,532 ▲623.08 ▼0.18589.31 ▼86.1557.02 ▲4.48
Media Library /wp-admin/upload.php1,407 ▲74.18 ▲0.0697.01 ▲0.0341.93 ▼0.59
Stress Assessment /wp-admin/options-general.php?page=healomax_stress_assessment_options9112.0023.3627.41

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'healomax_stress_assessment_settings_page' not found or invalid function name
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_healomax_stress
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% 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=healomax_stress_assessment_options
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'healomax_stress_assessment_settings_page' not found or invalid function name

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
Almost there! Just fix the following items
  • 4× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/healomax-stress-assessment/uninstall.php
    • > /wp-content/plugins/healomax-stress-assessment/option/options.php
    • > /wp-content/plugins/healomax-stress-assessment/scripts/scripts.php
    • > /wp-content/plugins/healomax-stress-assessment/stress-assessment.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed: The official readme.txt might help

healomax-stress-assessment/stress-assessment.php 92% from 13 tests

"Healomax Stress Assessment Plugin" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("healomax-stress-assessment.php" instead of "stress-assessment.php")

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
There were no executable files found in this plugin589 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP73341547
CSS17042

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin