67% get-your-quote

Code Review | Get Your Quote

WordPress plugin Get Your Quote scored 67% from 54 tests.

About plugin

  • Plugin page: get-your-quote
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 5.8.1
  • First release: Feb 13, 2020
  • Latest release: Feb 20, 2020
  • Number of updates: 6
  • Update frequency: every 1.2 days
  • Top authors: getyourquote (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 233 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼144.26ms] Passed 4 tests

A check of server-side resources used by Get Your Quote
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.02 ▲0.1852.72 ▲21.20
Dashboard /wp-admin3.23 ▲0.1861.35 ▲7.57
Posts /wp-admin/edit.php3.34 ▲0.2442.18 ▼4.65
Add New Post /wp-admin/post-new.php5.59 ▲0.1688.26 ▼579.28
Media Library /wp-admin/upload.php3.17 ▲0.1737.99 ▼0.66

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 60 new files
Database: 1 new table, 1 new option
New tables
wp_get_your_quote_options
New WordPress options
my_db_version

Browser metrics Passed 4 tests

Checking browser requirements for Get Your Quote
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,864 ▲26817.13 ▲1.6534.51 ▲26.8292.93 ▲47.93
Dashboard /wp-admin2,989 ▲586.03 ▼0.10139.32 ▼12.71124.23 ▲13.21
Posts /wp-admin/edit.php2,758 ▲192.69 ▼0.0168.31 ▼1.2494.41 ▼5.47
Add New Post /wp-admin/post-new.php1,697 ▲1018.59 ▼0.30379.08 ▼29.87116.48 ▼4.94
Media Library /wp-admin/upload.php1,826 ▲165.01 ▼0.01171.29 ▲30.27124.11 ▼0.54

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie tables were found after uninstall: 1 table
    • wp_get_your_quote_options
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • my_db_version

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 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 following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/get-your-quote/admin/partials/services-admin-display.php
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_charset_collate() on null in wp-content/plugins/get-your-quote/includes/installer.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/get-your-quote/services-front.php:1028
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_verify_nonce() in wp-content/plugins/get-your-quote/services_admin.php:16
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/get-your-quote/includes/installer.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Screenshot #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). This screenshot shows the basic display of data.) image missing
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === get-your-quote === )
Please take inspiration from this readme.txt

get-your-quote/services.php 85% from 13 tests

The main file in "Get Your Quote" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("get-your-quote.php" instead of "services.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin15,280 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
SVG401211,697
CSS773822,003
PHP151695371,366
JavaScript1021115214

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.13
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods1878.26%
▷ Protected methods00.00%
▷ Private methods521.74%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.13MB with 0.09MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/Screenshot-1.png137.55KB44.69KB▼ 67.51%