78% web-to-printq

Code Review | Web To PrintQ - Product Designer

WordPress plugin Web To PrintQ - Product Designer scored78%from 54 tests.

About plugin

  • Plugin page: web-to-printq
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.6
  • WordPress version: 6.3.1
  • First release: Aug 29, 2016
  • Latest release: Jun 11, 2018
  • Number of updates: 30
  • Update frequency: every 21.8 days
  • Top authors: ibcl (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /6,658 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.61ms] Passed 4 tests

This is a short check of server-side resources used by Web To PrintQ - Product Designer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0143.78 ▲1.34
Dashboard /wp-admin3.31 ▲0.0152.16 ▲4.39
Posts /wp-admin/edit.php3.36 ▲0.0149.84 ▲2.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.42 ▼8.00
Media Library /wp-admin/upload.php3.24 ▲0.0140.28 ▲1.96

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 1,485 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Web To PrintQ - Product Designer: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▲0.021.75 ▲0.1543.05 ▲0.53
Dashboard /wp-admin2,195 ▲185.60 ▼0.0584.71 ▼4.8739.82 ▲0.35
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0236.88 ▲2.3133.66 ▼5.49
Add New Post /wp-admin/post-new.php1,528 ▼023.08 ▼0.16668.32 ▲3.6457.80 ▲5.50
Media Library /wp-admin/upload.php1,397 ▼64.27 ▲0.08101.32 ▼4.8945.36 ▲2.05

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Please fix the following
  • 30× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/web-to-printq/includes/controller/abstract.class.php
    • > /wp-content/plugins/web-to-printq/includes/controller/instagram.class.php
    • > /wp-content/plugins/web-to-printq/views/content/bottombarmobile.php
    • > /wp-content/plugins/web-to-printq/views/content/objectList.php
    • > /wp-content/plugins/web-to-printq/views/content/toolbars.php
    • > /wp-content/plugins/web-to-printq/includes/helper/pdf.class.php
    • > /wp-content/plugins/web-to-printq/views/content/toolbarsmobile.php
    • > /wp-content/plugins/web-to-printq/includes/designer.class.php
    • > /wp-content/plugins/web-to-printq/includes/helper/instagram.class.php
    • > /wp-content/plugins/web-to-printq/includes/admin/designer.class.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Printq_Controller_Abstract' not found in wp-content/plugins/web-to-printq/includes/controller/projects.class.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function pqd_get_config() in wp-content/plugins/web-to-printq/views/themecss.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Printq_Helper_Design' not found in wp-content/plugins/web-to-printq/views/saved_projects.php:9

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: woocommerce, designer, personalization, printing, web to print...

web-to-printq/printq_designer.php 92% from 13 tests

The entry point to "Web To PrintQ - Product Designer" version 1.3.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("web-to-printq.php" instead of "printq_designer.php")

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
No dangerous file extensions were detected120,921 lines of code in 1,297 files:
LanguageFilesBlank linesComment linesLines of code
SVG1,227811,126112,284
PHP346197695,522
JavaScript20157,6833,087
CSS1624928

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity25.93
▷ Minimum class complexity3.00
▷ Maximum class complexity66.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes17.14%
▷ Concrete classes1392.86%
▷ Final classes00.00%
Methods167
▷ Static methods127.19%
▷ Public methods14486.23%
▷ Protected methods169.58%
▷ Private methods74.19%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants30
▷ Global constants2790.00%
▷ Class constants310.00%
▷ Public constants3100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
71 PNG files occupy 1.59MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/fancy_nav_left.png1.41KB1.64KB0.00%
assets/shapes/Startups.png20.56KB10.99KB▼ 46.55%
assets/shapes/Scientifics.png16.98KB18.06KB0.00%
assets/images/jquery-ui/ui-icons_ef8c08_256x240.png4.44KB4.17KB▼ 6.02%
assets/images/jquery-ui/ui-bg_highlight-soft_75_ffe45c_1x100.png0.32KB0.18KB▼ 42.38%