78% print-on-demand-with-personalization

Code Review | Print on Demand With Personalization

WordPress plugin Print on Demand With Personalization scored78%from 54 tests.

About plugin

  • Plugin page: print-on-demand-w...
  • Plugin version: 1.2.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.8
  • WordPress version: 6.3.1
  • First release: Mar 23, 2020
  • Latest release: Mar 17, 2022
  • Number of updates: 23
  • Update frequency: every 31.6 days
  • Top authors: chrismeats1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,033 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Print on Demand With Personalization
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.22 ▼0.21
Dashboard /wp-admin3.34 ▼0.0149.02 ▼19.07
Posts /wp-admin/edit.php3.39 ▲0.0352.14 ▼0.28
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.72 ▼22.21
Media Library /wp-admin/upload.php3.26 ▲0.0346.40 ▲9.22

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Print on Demand With Personalization
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲12613.59 ▼0.678.28 ▲6.6542.63 ▲1.02
Dashboard /wp-admin2,212 ▲325.57 ▼0.0481.59 ▼10.9278.34 ▲37.44
Posts /wp-admin/edit.php2,116 ▲131.99 ▲0.0441.60 ▼0.0436.28 ▼3.87
Add New Post /wp-admin/post-new.php1,695 ▲16722.22 ▼0.87736.81 ▲65.7156.92 ▲4.87
Media Library /wp-admin/upload.php1,420 ▲204.17 ▼0.0399.98 ▼6.7679.01 ▲33.19

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

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

SRP 0% 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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/print-on-demand-with-personalization/modals/modal.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/print-on-demand-with-personalization/PrintTechPersonalization.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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 to be fixed:
  • License uri: Invalid url: "GPL2 http://www.gnu.org/licenses/gpl-2.0.html"
The official readme.txt is a good inspiration

print-on-demand-with-personalization/PrintTechPersonalization.php 92% from 13 tests

The primary PHP file in "Print on Demand With Personalization" version 1.2.5 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("print-on-demand-with-personalization.php" instead of "PrintTechPersonalization.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected417 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript14330208
PHP22537208
Markdown1001

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.47
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 images were found in this plugin