83% popcustoms-integration-for-woocommerce

Code Review | Popcustoms - Print on demand & dropshipping, Free Personalizer plugin

WordPress plugin Popcustoms - Print on demand & dropshipping, Free Personalizer plugin scored83%from 54 tests.

About plugin

  • Plugin page: popcustoms-integr...
  • Plugin version: 1.0.15
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 29, 2022
  • Latest release: Dec 2, 2023
  • Number of updates: 31
  • Update frequency: every 14.9 days
  • Top authors: popcustoms (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /1,848 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.00MB] [CPU: ▼10.26ms] Passed 4 tests

An overview of server-side resources used by Popcustoms - Print on demand & dropshipping, Free Personalizer plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.04 ▼3.40
Dashboard /wp-admin3.31 ▼0.0349.49 ▼14.65
Posts /wp-admin/edit.php3.37 ▲0.0146.02 ▼3.87
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.92 ▼19.10
Media Library /wp-admin/upload.php3.24 ▲0.0134.41 ▲1.03

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Popcustoms - Print on demand & dropshipping, Free Personalizer plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.67 ▲0.311.81 ▲0.1543.57 ▼0.39
Dashboard /wp-admin2,195 ▲145.60 ▼0.1090.69 ▼23.8238.40 ▼7.56
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0636.78 ▼3.7331.71 ▼4.57
Add New Post /wp-admin/post-new.php1,526 ▼023.58 ▲0.41677.78 ▼13.3962.64 ▲9.50
Media Library /wp-admin/upload.php1,397 ▲34.17 ▼0.0996.99 ▼0.1843.37 ▲3.86

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/popcustoms-integration-for-woocommerce/includes/templates/dashboard.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/popcustoms-integration-for-woocommerce/includes/templates/entry.php:1

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Requires php: Invalid version format
The official readme.txt is a good inspiration

popcustoms-integration-for-woocommerce/index.php 77% from 13 tests

The main file in "Popcustoms - Print on demand & dropshipping, Free Personalizer plugin" v. 1.0.15 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("popcustoms-integration-for-woocommerce.php" instead of "index.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Requires at least: The required version number must match the one declared in readme.txt ("5.3" instead of "3.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected770 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP816918620
PO File24851150

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity13.67
▷ Minimum class complexity2.00
▷ Maximum class complexity38.00
Average method complexity2.85
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods41
▷ Static methods1024.39%
▷ Public methods3687.80%
▷ Protected methods00.00%
▷ Private methods512.20%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants9
▷ Global constants00.00%
▷ Class constants9100.00%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin