84% printdoors-for-woocommerce

Code Review | Printdoors Integration for WooCommerce

WordPress plugin Printdoors Integration for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: printdoors-for-wo...
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 25, 2022
  • Latest release: Aug 22, 2023
  • Number of updates: 15
  • Update frequency: every 18.1 days
  • Top authors: printdoors (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /803 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.04MB] [CPU: ▼7.56ms] Passed 4 tests

An overview of server-side resources used by Printdoors Integration for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.09 ▲2.39
Dashboard /wp-admin3.36 ▲0.0147.32 ▼17.69
Posts /wp-admin/edit.php3.41 ▲0.0545.89 ▼1.36
Add New Post /wp-admin/post-new.php5.96 ▲0.0780.52 ▼12.92
Media Library /wp-admin/upload.php3.28 ▲0.0535.16 ▲1.72

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Printdoors Integration for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,867 ▲12114.01 ▼0.371.77 ▲0.0331.04 ▼8.23
Dashboard /wp-admin2,267 ▲765.74 ▼0.14149.47 ▲50.0648.11 ▲9.35
Posts /wp-admin/edit.php2,159 ▲702.91 ▲0.9251.94 ▲14.7242.75 ▲8.88
Add New Post /wp-admin/post-new.php1,688 ▲16524.12 ▲1.11705.24 ▲110.7035.19 ▼13.12
Media Library /wp-admin/upload.php1,524 ▲1335.16 ▲0.99107.22 ▲9.7847.37 ▲4.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function printdoors\\Admin\\add_action() in wp-content/plugins/printdoors-for-woocommerce/includes/admin.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

printdoors-for-woocommerce/printdoors-for-woocommerce.php 92% from 13 tests

The entry point to "Printdoors Integration for WooCommerce" version 1.0.4 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 194 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected306 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP21917151
CSS26414263
JSON20047
JavaScript471944
HTML1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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
Namespaces2
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants00.00%
▷ Class constants7100.00%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
build/logo192.png5.22KB5.57KB0.00%
build/logo512.png9.44KB10.35KB0.00%