83% colorlab

Code Review | Printlane™ Product Designer

WordPress plugin Printlane™ Product Designer scored83%from 54 tests.

About plugin

  • Plugin page: colorlab
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3.2
  • WordPress version: 6.3.1
  • First release: Jan 23, 2019
  • Latest release: Oct 19, 2023
  • Number of updates: 37
  • Update frequency: every 46.8 days
  • Top authors: spccolorlab (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /2,228 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Printlane™ Product Designer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.15 ▲0.31
Dashboard /wp-admin3.31 ▼0.0346.68 ▼13.40
Posts /wp-admin/edit.php3.37 ▲0.0047.95 ▲1.03
Add New Post /wp-admin/post-new.php5.90 ▲0.0082.08 ▼8.85
Media Library /wp-admin/upload.php3.24 ▲0.0034.90 ▼3.07

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Printlane™ Product Designer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲6014.18 ▼0.171.64 ▲0.0144.95 ▲5.40
Dashboard /wp-admin2,204 ▲245.64 ▲0.0194.01 ▲6.9142.86 ▼4.26
Posts /wp-admin/edit.php2,107 ▲72.01 ▼0.1533.43 ▼1.3734.71 ▼2.98
Add New Post /wp-admin/post-new.php1,532 ▲423.09 ▼0.06655.31 ▼48.4956.85 ▼5.83
Media Library /wp-admin/upload.php1,397 ▼34.19 ▲0.0596.51 ▼7.1445.73 ▲2.14

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/colorlab/admin/class-wc-colorlab-settings.php:9

User-side errors Passed 1 test

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


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Contributors: The plugin contributors field is missing
You can look at the official readme.txt

colorlab/woocommerce-colorlab.php 85% from 13 tests

The main PHP script in "Printlane™ Product Designer" version 1.4.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("colorlab.php" instead of "woocommerce-colorlab.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin831 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity13.33
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods3561.40%
▷ Protected methods1017.54%
▷ Private methods1221.05%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin