78% critical-value-calculator

Code Review | Critical Value Calculator

WordPress plugin Critical Value Calculator scored78%from 54 tests.

About plugin

  • Plugin page: critical-value-ca...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1
  • WordPress version: 6.3.1
  • First release: Nov 30, 2022
  • Latest release: Nov 30, 2022
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: enzipeapps (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /144 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.51ms] Passed 4 tests

An overview of server-side resources used by Critical Value Calculator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0248.86 ▲8.04
Dashboard /wp-admin3.33 ▲0.0246.29 ▼10.01
Posts /wp-admin/edit.php3.38 ▲0.0248.34 ▼6.20
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.80 ▼11.78
Media Library /wp-admin/upload.php3.26 ▲0.0235.26 ▼2.04

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Critical Value Calculator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲12613.51 ▼0.7311.53 ▲9.2847.17 ▲1.49
Dashboard /wp-admin2,207 ▲275.55 ▼0.1283.39 ▼19.5340.16 ▼3.14
Posts /wp-admin/edit.php2,112 ▲121.99 ▼0.0536.21 ▲0.1333.70 ▼3.04
Add New Post /wp-admin/post-new.php1,538 ▲1023.08 ▲0.16657.90 ▼33.0151.99 ▼2.82
Media Library /wp-admin/upload.php1,403 ▲64.29 ▲0.09100.89 ▼6.4044.89 ▼1.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/critical-value-calculator/inc/main-form.php
    • > /wp-content/plugins/critical-value-calculator/ciritical-value-calculator.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/critical-value-calculator/inc/admin-setting.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: calculator, critical calculator, critical value, critical value calculator

critical-value-calculator/ciritical-value-calculator.php 92% from 13 tests

The main PHP script in "Critical Value Calculator" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("critical-value-calculator.php" instead of "ciritical-value-calculator.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
Good job! No executable or dangerous file extensions detected1,582 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin