93% aa-calculator

Code Review | AA Cash Calculator

WordPress plugin AA Cash Calculator scored 93% from 54 tests.

About plugin

  • Plugin page: aa-calculator
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.0
  • WordPress version: 5.9.2
  • First release: Nov 1, 2014
  • Latest release: Nov 2, 2014
  • Number of updates: 17
  • Update frequency: every 0.1 days
  • Top authors: aaextention (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 737 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

This is a short check of server-side resources used by AA Cash Calculator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0154.30 ▲3.24
Dashboard /wp-admin3.41 ▲0.0033.55 ▼0.26
Posts /wp-admin/edit.php3.64 ▲0.0036.44 ▼0.28
Add New Post /wp-admin/post-new.php6.91 ▼0.0995.06 ▼1,185.80
Media Library /wp-admin/upload.php3.29 ▲0.0022.25 ▼4.38

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for AA Cash Calculator
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,797 ▲4316.01 ▲0.366.28 ▲0.572.55 ▲0.29
Dashboard /wp-admin2,889 ▲286.13 ▲0.04115.72 ▼22.42156.44 ▼0.26
Posts /wp-admin/edit.php2,691 ▼03.24 ▼0.0062.79 ▲0.78135.13 ▼10.16
Add New Post /wp-admin/post-new.php1,661 ▼4916.70 ▼4.06411.16 ▼28.38153.52 ▼2.57
Media Library /wp-admin/upload.php1,698 ▼05.52 ▼0.00141.94 ▼9.40183.17 ▼1.22

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 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/aa-calculator/aacalculation.php:26

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


Plugin configuration 90% 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
Please fix the following attributes: Please take inspiration from this readme.txt

aa-calculator/aacalculation.php 85% from 13 tests

The main PHP script in "AA Cash Calculator" version 1.0 is automatically included on every request by 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 ("aa-calculator.php" instead of "aacalculation.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 257 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin200 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.04
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 functions2100.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
There were not PNG files found in your plugin