84% piq-quote

Code Review | PIQ-Quote

WordPress plugin PIQ-Quote scored84%from 54 tests.

About plugin

  • Plugin page: piq-quote
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.0
  • WordPress version: 6.3.1
  • First release: Aug 11, 2022
  • Latest release: Oct 21, 2022
  • Number of updates: 11
  • Update frequency: every 7.1 days
  • Top authors: petco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /597 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by PIQ-Quote
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.92 ▼6.13
Dashboard /wp-admin3.32 ▼0.0348.29 ▼18.71
Posts /wp-admin/edit.php3.37 ▲0.0154.84 ▲4.78
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.47 ▼12.72
Media Library /wp-admin/upload.php3.24 ▲0.0137.60 ▼1.56

Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Just a few items left to fix
  • There were 2 files (0.00KB) illegally modified outside of "wp-content/plugins/piq-quote/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/piq-quote/assets/banner-772\303\227250.png"
    • (new file) "wp-content/plugins/piq-quote/assets/icon-256\303\227256.png"
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for PIQ-Quote
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲4614.37 ▼0.291.70 ▼0.1344.02 ▼0.41
Dashboard /wp-admin2,192 ▲245.62 ▲0.0890.45 ▼0.0042.90 ▼1.04
Posts /wp-admin/edit.php2,100 ▲32.01 ▲0.0535.87 ▼3.5535.01 ▲1.85
Add New Post /wp-admin/post-new.php6,366 ▲4,83827.43 ▲4.28829.09 ▲171.3755.13 ▲3.40
Media Library /wp-admin/upload.php1,403 ▲94.18 ▼0.0598.80 ▼2.0344.61 ▲0.90

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
Even though everything seems fine, this is not an exhaustive test

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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/piq-quote/piq-quote.php:26

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)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: pet-insurance-quotes, insurance, pets, piq

piq-quote/piq-quote.php 92% from 13 tests

The primary PHP file in "PIQ-Quote" version 1.0.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 142 characters long)

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 plugin12,097 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JSON40011,937
JavaScript243373
Markdown118035
Sass23026
PHP293524
CSS2002

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.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
3 PNG files occupy 0.25MB with 0.15MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256×256.png15.44KB7.29KB▼ 52.77%
assets/screenshot-1.png213.77KB57.38KB▼ 73.16%
assets/banner-772×250.png22.83KB9.93KB▼ 56.49%