84% eshopswithiq

Code Review | EshopsWithIQ

WordPress plugin EshopsWithIQ scored84%from 54 tests.

About plugin

  • Plugin page: eshopswithiq
  • Plugin version: 2.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.9.3
  • WordPress version: 6.3.1
  • First release: Nov 30, 2021
  • Latest release: May 16, 2022
  • Number of updates: 15
  • Update frequency: every 11.5 days
  • Top authors: eshopswithiq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,970 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.38ms] Passed 4 tests

An overview of server-side resources used by EshopsWithIQ
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.025,031.83 ▲4,989.40
Dashboard /wp-admin3.41 ▲0.0650.57 ▼11.12
Posts /wp-admin/edit.php3.46 ▲0.1047.20 ▼0.34
Add New Post /wp-admin/post-new.php5.99 ▲0.1088.95 ▼16.60
Media Library /wp-admin/upload.php3.33 ▲0.1040.91 ▲6.55

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for EshopsWithIQ
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,438 ▼32314.22 ▼0.170.50 ▼1.250.39 ▼43.59
Dashboard /wp-admin2,195 ▲205.59 ▼0.1183.62 ▼19.2139.02 ▼9.85
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0133.79 ▼3.0234.40 ▼1.65
Add New Post /wp-admin/post-new.php1,545 ▲1323.05 ▼0.17664.76 ▼5.5677.65 ▲22.70
Media Library /wp-admin/upload.php1,400 ▲34.21 ▼0.02102.06 ▼7.3049.01 ▲2.61

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/eshopswithiq/eshopswithiq_updater.php

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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
There were no plugin tags found

eshopswithiq/eshopswithiq.php Passed 13 tests

The main PHP script in "EshopsWithIQ" version 2.1.2 is automatically included on every request by WordPress
100 characters long description:
This module will integrate your Woocommerce-based eshop with EshopsWithIQ (https://eshopswithiq.com)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin518 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26735518

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity13.00
▷ Minimum method complexity13.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods1100.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions1285.71%
▷ Anonymous functions214.29%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected