78% free-online-health-calculators

Code Review | Free Online Health Calculators

WordPress plugin Free Online Health Calculators scored78%from 54 tests.

About plugin

  • Plugin page: free-online-healt...
  • Plugin version: 1.01
  • PHP compatiblity: 4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.0.3
  • WordPress version: 6.3.1
  • First release: Jun 6, 2018
  • Latest release: Jul 12, 2019
  • Number of updates: 20
  • Update frequency: every 20.3 days
  • Top authors: calculators (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,469 total downloads

Benchmarks

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.01MB] [CPU: ▼8.92ms] Passed 4 tests

This is a short check of server-side resources used by Free Online Health Calculators
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.99 ▼0.61
Dashboard /wp-admin3.31 ▼0.0444.55 ▼14.57
Posts /wp-admin/edit.php3.36 ▲0.0048.51 ▲2.18
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.29 ▼20.90
Media Library /wp-admin/upload.php3.24 ▲0.0032.66 ▲0.41

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Free Online Health Calculators
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.14 ▼1.264.71 ▲2.9137.95 ▼2.07
Dashboard /wp-admin2,209 ▲214.85 ▼0.0298.81 ▼14.6340.10 ▼0.68
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0836.24 ▼4.9233.90 ▼3.19
Add New Post /wp-admin/post-new.php1,533 ▼923.18 ▲4.89653.99 ▲25.8852.87 ▼6.76
Media Library /wp-admin/upload.php1,388 ▼34.22 ▲0.0695.19 ▼2.1041.53 ▼1.19

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

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)
Good news, no errors were detected

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
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/free-online-health-calculators/bmi-html.php
    • > /wp-content/plugins/free-online-health-calculators/tdee-html.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/free-online-health-calculators/free-online-health-calculators.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: calculators, health calculator, free online health calculator

free-online-health-calculators/free-online-health-calculators.php 92% from 13 tests

The main PHP file in "Free Online Health Calculators" ver. 1.01 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 144 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin32 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3142332

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin