79% iq-fulfillment

Code Review | IQ Fulfillment

WordPress plugin IQ Fulfillment scored79%from 54 tests.

About plugin

  • Plugin page: iq-fulfillment
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.1
  • WordPress version: 6.3.1
  • First release: Feb 16, 2023
  • Latest release: Feb 16, 2023
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: iqintegrations (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /247 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
Install script ran successfully

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

Server-side resources used by IQ Fulfillment
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.46 ▲2.18
Dashboard /wp-admin3.33 ▲0.0352.54 ▲1.76
Posts /wp-admin/edit.php3.39 ▲0.0248.12 ▼8.68
Add New Post /wp-admin/post-new.php5.92 ▲0.0285.56 ▼17.84
Media Library /wp-admin/upload.php3.26 ▲0.0236.11 ▲1.96

Server storage [IO: ▲0.02MB] [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: 9 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
db_upgraded
iq_fulfillment_installed
iq_fulfillment_version
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for IQ Fulfillment
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.18 ▼0.171.76 ▲0.1445.05 ▼4.19
Dashboard /wp-admin2,210 ▲305.54 ▲0.0194.93 ▲4.9270.96 ▲31.05
Posts /wp-admin/edit.php2,118 ▲152.02 ▼0.0137.06 ▼4.5834.88 ▼1.26
Add New Post /wp-admin/post-new.php1,554 ▲2823.15 ▼0.46749.33 ▲110.8868.22 ▲9.80
Media Library /wp-admin/upload.php1,415 ▲154.12 ▼0.07103.21 ▼5.4659.26 ▲13.77

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
These items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • iq_fulfillment_version
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • iq_fulfillment_installed
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/iq-fulfillment/includes/Views/welcome.php
    • > /wp-content/plugins/iq-fulfillment/includes/Views/warning.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/iq-fulfillment/includes/Views/integrate.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: iq, warehouse, fulfillment

iq-fulfillment/iq-fulfillment.php Passed 13 tests

This is the main PHP file of "IQ Fulfillment" 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
41 characters long description:
A fulfillment solution for your platform.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected306 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP42413263
CSS12043

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods222.22%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants571.43%
▷ Class constants228.57%
▷ Public constants2100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/iq-icon.png0.99KB0.79KB▼ 20.08%