89% convertcalculator

Code Review | ConvertCalculator for WordPress

WordPress plugin ConvertCalculator for WordPress scored89%from 54 tests.

About plugin

  • Plugin page: convertcalculator
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 13, 2019
  • Latest release: Mar 9, 2023
  • Number of updates: 25
  • Update frequency: every 51.8 days
  • Top authors: jorisderuiter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

800+ active /5,551 total downloads

Benchmarks

Plugin footprint 83% from 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.01MB] [CPU: ▼12.94ms] Passed 4 tests

Analyzing server-side resources used by ConvertCalculator for WordPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.07 ▼4.70
Dashboard /wp-admin3.31 ▼0.0445.28 ▼22.41
Posts /wp-admin/edit.php3.36 ▲0.0042.44 ▼1.29
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.93 ▼23.35
Media Library /wp-admin/upload.php3.23 ▲0.0037.19 ▲3.64

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by ConvertCalculator for WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▼0.011.62 ▼0.2739.96 ▼5.77
Dashboard /wp-admin2,195 ▲245.69 ▲0.0583.56 ▼4.9539.14 ▲1.93
Posts /wp-admin/edit.php2,100 ▲211.97 ▼0.0335.57 ▼2.3731.65 ▲0.86
Add New Post /wp-admin/post-new.php1,536 ▼118.23 ▼6.38629.48 ▼2.0569.00 ▼22.58
Media Library /wp-admin/upload.php1,397 ▼34.18 ▲0.0098.90 ▼6.3941.94 ▼23.48

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Requires php: Invalid plugin version format
  • Donate link: Please fix this invalid url: "N/A"
The official readme.txt might help

convertcalculator/convertcalculator.php Passed 13 tests

This is the main PHP file of "ConvertCalculator for WordPress" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
69 characters long description:
Easily embed ConvertCalculator calculators' on your WordPress website

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
There were no executable files found in this plugin43 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
Markdown111028
PHP26815

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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