10% aspl-product-quotation

Code Review | ASPL Product Quotation

WordPress plugin ASPL Product Quotation scored10%from 54 tests.

About plugin

  • Plugin page: aspl-product-quot...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.2
  • WordPress version: 6.3.1
  • First release: Mar 25, 2020
  • Latest release: Mar 26, 2020
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: acespritech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /572 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Parse error in wp-content/plugins/aspl-product-quotation/woocommerce_quote.php+356
    syntax error, unexpected '}', expecting end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.85ms] Passed 4 tests

A check of server-side resources used by ASPL Product Quotation
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.38 ▼0.50
Dashboard /wp-admin3.31 ▲0.0051.86 ▲0.16
Posts /wp-admin/edit.php3.36 ▲0.0055.27 ▲2.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.40 ▼11.16
Media Library /wp-admin/upload.php3.23 ▲0.0037.23 ▲0.11

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

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

Browser metrics Passed 4 tests

ASPL Product Quotation: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.111.87 ▲0.2949.75 ▲7.98
Dashboard /wp-admin2,195 ▲155.60 ▼0.0087.23 ▼0.8542.66 ▼2.21
Posts /wp-admin/edit.php2,097 ▼31.99 ▲0.0138.49 ▼1.8935.27 ▼0.01
Add New Post /wp-admin/post-new.php1,526 ▼523.36 ▲0.22684.32 ▲8.0160.94 ▼0.48
Media Library /wp-admin/upload.php1,400 ▼34.23 ▲0.0697.06 ▼7.3148.00 ▲5.09

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Parse error
      syntax error, unexpected '}', expecting end of file in wp-content/plugins/aspl-product-quotation/woocommerce_quote.php on line 356
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/aspl-product-quotation/pop_up.php on line 101

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes: The official readme.txt might help

aspl-product-quotation/woocommerce_quote.php 85% from 13 tests

"ASPL Product Quotation" version 1.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:
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("aspl-product-quotation.php" instead of "woocommerce_quote.php")

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
Everything looks great! No dangerous files found in this plugin1,304 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP6238491,064
CSS22111159
JavaScript114081

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1292.31%
▷ Protected methods17.69%
▷ Private methods00.00%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin