74% 3d-printing-pro-by-boostfab

Code Review | 3D Printing Pro by Boostfab

WordPress plugin 3D Printing Pro by Boostfab scored74%from 54 tests.

About plugin

  • Plugin page: 3d-printing-pro-b...
  • Plugin version: 1.2.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3.1
  • WordPress version: 6.3.1
  • First release: Jul 9, 2023
  • Latest release: Nov 24, 2023
  • Number of updates: 10
  • Update frequency: every 13.8 days
  • Top authors: quotify (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /473 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼1.85MB] [CPU: ▼50.76ms] Passed 4 tests

A check of server-side resources used by 3D Printing Pro by Boostfab
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.324.90 ▼30.20
Dashboard /wp-admin2.16 ▼1.146.83 ▼40.17
Posts /wp-admin/edit.php2.17 ▼1.206.51 ▼42.27
Add New Post /wp-admin/post-new.php2.17 ▼3.736.21 ▼90.39
Media Library /wp-admin/upload.php2.17 ▼1.077.80 ▼21.54

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 8 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for 3D Printing Pro by Boostfab
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,927 ▲16513.62 ▼0.708.38 ▲6.7542.05 ▼1.47
Dashboard /wp-admin2,212 ▲355.62 ▲0.0894.41 ▼5.3142.92 ▼4.49
Posts /wp-admin/edit.php2,128 ▲312.02 ▲0.0041.60 ▲1.7036.92 ▲0.73
Add New Post /wp-admin/post-new.php1,542 ▲1623.31 ▲0.34575.83 ▼69.5460.91 ▲5.28
Media Library /wp-admin/upload.php1,425 ▲284.24 ▲0.0696.89 ▼0.7643.34 ▲1.60

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the thickbox handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/3d-printing-pro-by-boostfab/main.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: shop, 3d printer, laser cutting, laser engraving, store...

3d-printing-pro-by-boostfab/3d-printing-pro.php 92% from 13 tests

"3D Printing Pro by Boostfab" version 1.2.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("3d-printing-pro-by-boostfab.php" instead of "3d-printing-pro.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected504 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of 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.36
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions13100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
wp-assets/icon-128x128.png11.82KB1.94KB▼ 83.58%