84% awsa-quick-buy

Code Review | AWSA Quick Buy for Woocommerce

WordPress plugin AWSA Quick Buy for Woocommerce scored84%from 54 tests.

About plugin

  • Plugin page: awsa-quick-buy
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.5.3
  • WordPress version: 6.3.1
  • First release: Nov 10, 2020
  • Latest release: Nov 10, 2020
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: sajjadaslani (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /432 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by AWSA Quick Buy for Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0639.03 ▼2.12
Dashboard /wp-admin3.37 ▲0.0745.80 ▼9.84
Posts /wp-admin/edit.php3.48 ▲0.1348.97 ▲1.16
Add New Post /wp-admin/post-new.php5.95 ▲0.0692.40 ▼1.19
Media Library /wp-admin/upload.php3.29 ▲0.0635.84 ▲3.27

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for AWSA Quick Buy for Woocommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲10613.71 ▼0.692.15 ▲0.3843.70 ▲1.20
Dashboard /wp-admin2,222 ▲484.83 ▼0.21107.14 ▼12.6838.10 ▼2.19
Posts /wp-admin/edit.php2,108 ▲192.06 ▲0.0139.59 ▲5.0134.89 ▼1.64
Add New Post /wp-admin/post-new.php1,546 ▲423.15 ▲4.61663.47 ▲65.2050.88 ▼12.41
Media Library /wp-admin/upload.php1,404 ▲164.25 ▲0.1194.62 ▼1.5041.67 ▲0.06

Uninstaller [IO: ▲0.00MB] [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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'AWSA_Settings_Page_Fields' not found in wp-content/plugins/awsa-quick-buy/includes/class-quick-buy-settings-page-fields.php:15

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: woocommerce quick buy

awsa-quick-buy/awsa-quick-buy.php Passed 13 tests

This is the main PHP file of "AWSA Quick Buy for Woocommerce" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
132 characters long description:
With this plugin, you can make your sales easier for your social network customers, and with just a SKU and using the quick buy form

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin912 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP19177516838
PO File1273474

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity12.00
▷ Minimum class complexity2.00
▷ Maximum class complexity21.00
Average method complexity3.02
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes222.22%
Methods48
▷ Static methods3062.50%
▷ Public methods48100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants17
▷ Global constants17100.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
There are no PNG files in this plugin