83% qikink-pod-and-drop-shipping

Code Review | Qikink Print On Demand and DropShipping

WordPress plugin Qikink Print On Demand and DropShipping scored83%from 54 tests.

About plugin

  • Plugin page: qikink-pod-and-dr...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Dec 16, 2022
  • Latest release: Jul 24, 2023
  • Number of updates: 14
  • Update frequency: every 15.7 days
  • Top authors: qikink (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /3,034 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 gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▲0.23ms] Passed 4 tests

A check of server-side resources used by Qikink Print On Demand and DropShipping
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.13 ▲0.85
Dashboard /wp-admin3.34 ▲0.0445.13 ▼3.38
Posts /wp-admin/edit.php3.39 ▲0.0346.71 ▲1.44
Add New Post /wp-admin/post-new.php5.94 ▲0.0592.03 ▲1.99
Media Library /wp-admin/upload.php3.26 ▲0.0341.92 ▲10.83

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 57 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Qikink Print On Demand and DropShipping
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲8413.29 ▼1.264.60 ▲3.0339.22 ▲0.35
Dashboard /wp-admin2,228 ▲394.82 ▼0.10113.39 ▲0.6336.11 ▼7.87
Posts /wp-admin/edit.php2,108 ▲162.03 ▼0.0240.93 ▲4.8332.88 ▲1.16
Add New Post /wp-admin/post-new.php1,686 ▲15322.62 ▼0.58574.07 ▼99.6551.39 ▼5.91
Media Library /wp-admin/upload.php1,475 ▲874.22 ▼0.0297.30 ▼14.2238.01 ▼7.73

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

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)
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Signup' not found in wp-content/plugins/qikink-pod-and-drop-shipping/Qikink_Signup.php:75
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qikink-pod-and-drop-shipping/huepress.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Requires php: Invalid version format
  • Plugin Name: You should set the name of your plugin on the first line ( === qikink-pod-and-drop-shipping === )
You can look at the official readme.txt

qikink-pod-and-drop-shipping/huepress.php 92% from 13 tests

The main PHP script in "Qikink Print On Demand and DropShipping" version 1.0.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("qikink-pod-and-drop-shipping.php" instead of "huepress.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected49,318 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
CSS172,70314036,717
JavaScript73,9041,47512,276
PHP45738305
XML20020

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin