93% aa-health-calculator

Code Review | AA health calculator

WordPress plugin AA health calculatorscored 93% from 54 tests.

About plugin

  • Plugin page: aa-health-calculator
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.0
  • WordPress version: 5.9.2
  • First release: Dec 24, 2014
  • Latest release: Dec 24, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: aaextention (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 687 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by AA health calculator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0153.83 ▲4.17
Dashboard /wp-admin3.41 ▲0.0133.57 ▼0.88
Posts /wp-admin/edit.php3.64 ▲0.0137.30 ▼0.83
Add New Post /wp-admin/post-new.php6.88 ▼0.0992.78 ▼1,247.43
Media Library /wp-admin/upload.php3.30 ▲0.0022.86 ▼2.90

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for AA health calculator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲1815.80 ▲0.025.77 ▼1.152.31 ▼0.31
Dashboard /wp-admin2,895 ▲446.16 ▼0.03119.87 ▼14.56154.16 ▼5.53
Posts /wp-admin/edit.php2,691 ▲63.24 ▲0.0163.24 ▼3.98138.92 ▼8.24
Add New Post /wp-admin/post-new.php1,763 ▲6519.69 ▼2.74372.18 ▼31.01150.58 ▼4.60
Media Library /wp-admin/upload.php1,698 ▼35.52 ▲0.05144.04 ▲1.98182.91 ▼4.36

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/aa-health-calculator/healthcal.php:14

User-side errors Passed 1 test

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


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === AA health calculator=== )
  • Contributors: Contributors not specified
You can take inspiration from this readme.txt

aa-health-calculator/healthcal.php 92% from 13 tests

"AA health calculator" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("aa-health-calculator.php" instead of "healthcal.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin37 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.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