77% appsila-wooquote

Code Review | Appsila WooQuote

WordPress plugin Appsila WooQuote scored77%from 54 tests.

About plugin

  • Plugin page: appsila-wooquote
  • Plugin version: 1.5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Apr 24, 2018
  • Latest release: Jul 5, 2018
  • Number of updates: 9
  • Update frequency: every 8.3 days
  • Top authors: appsila (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,147 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼2.21ms] Passed 4 tests

This is a short check of server-side resources used by Appsila WooQuote
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1036.71 ▼4.43
Dashboard /wp-admin3.40 ▲0.0946.78 ▼1.48
Posts /wp-admin/edit.php3.51 ▲0.1548.99 ▲2.50
Add New Post /wp-admin/post-new.php6.00 ▲0.1187.94 ▼5.41
Media Library /wp-admin/upload.php3.32 ▲0.0936.00 ▲5.80

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
ticaretCRMoptions_message
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Appsila WooQuote
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,935 ▲20013.76 ▼0.636.23 ▲4.4440.58 ▼6.48
Dashboard /wp-admin2,214 ▲234.91 ▼0.11114.13 ▲7.4790.05 ▲44.42
Posts /wp-admin/edit.php2,112 ▲232.00 ▲0.0232.91 ▼3.8432.72 ▼2.53
Add New Post /wp-admin/post-new.php1,688 ▲15522.44 ▼0.95735.47 ▲47.2337.56 ▼17.29
Media Library /wp-admin/upload.php1,402 ▲144.13 ▼0.1094.88 ▼9.6278.42 ▲35.47

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 were found after uninstall: 7 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • ticaretCRMoptions_message
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please fix the following
  • 7× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/appsila-wooquote/PartialViews/PartialView_Tab_Subscription_Settings.php
    • > /wp-content/plugins/appsila-wooquote/WooQuote.php
    • > /wp-content/plugins/appsila-wooquote/Resources/ConfigInternal.php
    • > /wp-content/plugins/appsila-wooquote/PartialViews/PartialView_Tab_Label_Translation.php
    • > /wp-content/plugins/appsila-wooquote/PartialViews/PartialView_Tab_Help_And_Installation.php
    • > /wp-content/plugins/appsila-wooquote/PartialViews/PartialView_Tab_Offers.php
    • > /wp-content/plugins/appsila-wooquote/WooQuoteSendData.php
  • 63× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: lastCRMoptions in wp-content/plugins/appsila-wooquote/PartialViews/PartialView_Tab_Subscription_Settings.php on line 40
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/appsila-wooquote/PartialViews/PartialView_Tab_Label_Translation.php on line 105
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/appsila-wooquote/PartialViews/PartialView_Tab_Label_Translation.php on line 153
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/appsila-wooquote/PartialViews/PartialView_Tab_Label_Translation.php on line 137
    • > PHP Notice
      Undefined variable: pagenow in wp-content/plugins/appsila-wooquote/Resources/wpScriptCSSImports.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/appsila-wooquote/Resources/wpScriptCSSImports.php:33
    • > PHP Notice
      Undefined variable: web_url in wp-content/plugins/appsila-wooquote/PartialViews/PartialView_Tab_Subscription_Settings.php on line 77
    • > PHP Notice
      Undefined variable: ticaretCRMoptions_message in wp-content/plugins/appsila-wooquote/PartialViews/PartialView_Tab_Label_Translation.php on line 153
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/appsila-wooquote/popup9.php:11
    • > PHP Notice
      Undefined variable: hostname_database in wp-content/plugins/appsila-wooquote/PartialViews/PartialView_Tab_Subscription_Settings.php on line 79

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 87% from 29 tests

readme.txt 88% 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
Attributes that require attention:
  • Donate link: Please fix this invalid url: ""
  • Tags: Please delete some tags, you are using 20 tag instead of maximum 10
You can take inspiration from this readme.txt

appsila-wooquote/WooQuote.php 85% from 13 tests

This is the main PHP file of "Appsila WooQuote" version 1.5.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("appsila-wooquote.php" instead of "WooQuote.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 197 characters long)

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
Success! There were no dangerous files found in this plugin10,652 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
CSS425257,041
PHP229562221,896
JavaScript55912261,715

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity1.33
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.14
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/error-appsila.png2.37KB1.81KB▼ 23.37%
images/info_icon.png2.58KB1.35KB▼ 47.56%
images/info_appsila.png2.33KB1.71KB▼ 26.25%
images/Appsila_Logo.png0.51KB0.67KB0.00%