79% basal-metabolic-rate-bmr-calculator

Code Review | Online BMR Calculator for Male & Female

WordPress plugin Online BMR Calculator for Male & Female scored79%from 54 tests.

About plugin

  • Plugin page: basal-metabolic-r...
  • Plugin version: 1.0
  • PHP compatiblity: 4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.8
  • WordPress version: 6.3.1
  • First release: May 30, 2018
  • Latest release: Jun 5, 2018
  • Number of updates: 5
  • Update frequency: every 1.2 days
  • Top authors: calculators (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,288 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.37ms] Passed 4 tests

Server-side resources used by Online BMR Calculator for Male & Female
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0146.59 ▲4.10
Dashboard /wp-admin3.31 ▲0.0047.09 ▼0.36
Posts /wp-admin/edit.php3.36 ▲0.0047.02 ▼2.79
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.87 ▼4.59
Media Library /wp-admin/upload.php3.23 ▲0.0035.20 ▲2.25

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Online BMR Calculator for Male & Female: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.42 ▼0.161.80 ▲0.1143.66 ▼5.62
Dashboard /wp-admin2,206 ▲185.91 ▲1.03114.17 ▼4.6242.09 ▼1.77
Posts /wp-admin/edit.php2,089 ▼32.02 ▼0.0433.66 ▼1.6233.06 ▼2.09
Add New Post /wp-admin/post-new.php1,514 ▼017.61 ▲0.12676.34 ▼24.6251.79 ▼10.67
Media Library /wp-admin/upload.php1,391 ▲34.21 ▲0.0698.96 ▼1.7240.99 ▼6.98

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/basal-metabolic-rate-bmr-calculator/bmr-html.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/basal-metabolic-rate-bmr-calculator/basal-metabolic-rate-bmr-calculator.php:43

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 Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: bmr, bmr calculator, basal metabolic rate

basal-metabolic-rate-bmr-calculator/basal-metabolic-rate-bmr-calculator.php Passed 13 tests

The principal PHP file in "Online BMR Calculator for Male & Female" v. 1.0 is loaded by WordPress automatically on each request
112 characters long description:
Calculate BMR by using metabolism calculator. Best basal / resting metabolic rate calculator for men and women..

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected28 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2242128

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected