89% easy-price-calculator

Code Review | easy-price-calculator

WordPress plugin easy-price-calculator scored 89% from 54 tests.

About plugin

  • Plugin page: easy-price-calcul...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7.2
  • WordPress version: 6.3.1
  • First release: Jun 2, 2021
  • Latest release: Jun 3, 2021
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: dfrankortiz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 473 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼0.42ms] Passed 4 tests

Analyzing server-side resources used by easy-price-calculator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.13 ▲1.51
Dashboard /wp-admin3.37 ▲0.0747.15 ▼0.51
Posts /wp-admin/edit.php3.48 ▲0.1347.67 ▼5.04
Add New Post /wp-admin/post-new.php5.95 ▲0.07106.25 ▲16.08
Media Library /wp-admin/upload.php3.29 ▲0.0738.31 ▲2.37

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by easy-price-calculator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5813.23 ▼1.521.76 ▼0.4243.79 ▲3.67
Dashboard /wp-admin2,221 ▲335.83 ▲0.94107.19 ▼6.4477.21 ▲34.49
Posts /wp-admin/edit.php2,107 ▲152.00 ▼0.0337.94 ▼6.4532.48 ▼5.36
Add New Post /wp-admin/post-new.php1,690 ▲15324.16 ▲5.69700.04 ▲72.9053.51 ▼2.44
Media Library /wp-admin/upload.php1,403 ▲154.21 ▲0.0396.07 ▼10.0363.99 ▲19.82

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: woo, quotation, quote, cost, calculator...

easy-price-calculator/easy-price-calculator.php 69% from 13 tests

Analyzing the main PHP file in "easy-price-calculator" version 1.0.0
Please make the necessary changes and fix the following:
  • Domain Path: The domain path must begin with a forward slash character ("//")
  • Requires at least: Required version must match the one declared in readme.txt ("4.6" instead of "4.7")
  • Domain Path: The domain path should use only dashes and lowercase characters ("/")
  • Description: Please don't use more than 140 characters for the plugin description (currently 261 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected451 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP45735379
CSS114372

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity14.67
▷ Minimum class complexity3.00
▷ Maximum class complexity25.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants4
▷ Global constants4100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/bhic-epc-icon.png2.27KB1.27KB▼ 44.26%
assets/img/bhic-epc-iconx.png0.93KB0.89KB▼ 4.30%