84% inquiry-cart

Code Review | Inquiry cart

WordPress plugin Inquiry cart scored 84% from 54 tests.

About plugin

  • Plugin page: inquiry-cart
  • Plugin version: 0...
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 31, 2012
  • Latest release: Nov 10, 2012
  • Number of updates: 4
  • Update frequency: every 4.8 days
  • Top authors: ravster (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,796 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.19ms] Passed 4 tests

A check of server-side resources used by Inquiry cart
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.55 ▼6.39
Dashboard /wp-admin3.33 ▲0.0250.04 ▲1.21
Posts /wp-admin/edit.php3.38 ▲0.0243.81 ▼5.67
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.22 ▼21.91
Media Library /wp-admin/upload.php3.25 ▲0.0238.27 ▲2.82
Inquiry Cart /wp-admin/options-general.php?page=inquiry-cart/inquiry-cart.php3.2130.18

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
rd_ic_options

Browser metrics Passed 4 tests

An overview of browser requirements for Inquiry cart
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.52 ▼1.021.79 ▲0.1444.47 ▼4.40
Dashboard /wp-admin2,210 ▲215.79 ▲0.7395.20 ▼14.6240.64 ▼2.35
Posts /wp-admin/edit.php2,090 ▲12.01 ▼0.0336.31 ▼0.3432.60 ▲1.43
Add New Post /wp-admin/post-new.php1,536 ▲2223.06 ▲5.50607.66 ▼89.7048.77 ▼14.23
Media Library /wp-admin/upload.php1,392 ▲44.22 ▲0.0793.75 ▼18.3541.28 ▼3.04
Inquiry Cart /wp-admin/options-general.php?page=inquiry-cart/inquiry-cart.php8372.0523.1925.98

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Please fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/inquiry-cart/includes/settings-page.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/inquiry-cart/includes/inquiry-cart-shortcode.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/inquiry-cart/includes/add-remove-shortcode.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/inquiry-cart/inquiry-cart.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: inquiry cart, cart

inquiry-cart/inquiry-cart.php 92% from 13 tests

The main PHP script in "Inquiry cart" version 0... is automatically included on every request by WordPress
Please take the time to fix the following:
  • Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "0...")

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
No dangerous file extensions were detected165 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP54172165

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions7
▷ Named functions7100.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