78% conveyancing-quote-calculator

Code Review | Conveyancing Quote Calculator

WordPress plugin Conveyancing Quote Calculator scored 78% from 54 tests.

About plugin

  • Plugin page: conveyancing-quot...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.2
  • WordPress version: 6.3.1
  • First release: Jun 13, 2014
  • Latest release: Apr 17, 2015
  • Number of updates: 4
  • Update frequency: every 77.3 days
  • Top authors: eddturtle (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,591 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: ▲2.53ms] Passed 4 tests

This is a short check of server-side resources used by Conveyancing Quote Calculator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0544.86 ▼0.15
Dashboard /wp-admin3.36 ▲0.0656.28 ▲3.18
Posts /wp-admin/edit.php3.48 ▲0.1265.62 ▲16.36
Add New Post /wp-admin/post-new.php5.95 ▲0.0697.45 ▲2.53
Media Library /wp-admin/upload.php3.29 ▲0.0640.57 ▲4.55

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_foo_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Conveyancing Quote Calculator: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲713.70 ▼1.083.03 ▲1.0943.53 ▲0.34
Dashboard /wp-admin2,210 ▲75.79 ▲0.99101.67 ▼1.9941.07 ▼5.14
Posts /wp-admin/edit.php2,090 ▲12.03 ▲0.0339.11 ▲4.8035.40 ▲1.13
Add New Post /wp-admin/post-new.php1,540 ▲523.36 ▲0.14683.93 ▼64.6159.09 ▼0.21
Media Library /wp-admin/upload.php1,392 ▲74.23 ▲0.01113.01 ▲7.5050.52 ▲7.33
Quote Plugin /wp-admin/hoowla_plugin.php260.440.0914.88

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • widget_foo_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/conveyancing-quote-calculator/widget.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/conveyancing-quote-calculator/widget.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/hoowla_plugin.php
    • > Network (severe)
    wp-admin/hoowla_plugin.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

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
These attributes need to be fixed:
  • Donate link: Invalid URI ("")
You can look at the official readme.txt

conveyancing-quote-calculator/hoowla.php 85% from 13 tests

The primary PHP file in "Conveyancing Quote Calculator" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 417 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("conveyancing-quote-calculator.php" instead of "hoowla.php")

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
Everything looks great! No dangerous files found in this plugin258 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP29480220
JavaScript210138

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
5 PNG files occupy 0.30MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png87.17KB32.33KB▼ 62.92%
hoowla-icon.png2.61KB2.63KB0.00%
assets/screenshot-4.png82.80KB30.46KB▼ 63.22%
assets/screenshot-2.png76.73KB27.98KB▼ 63.53%
assets/screenshot-3.png52.80KB19.35KB▼ 63.35%