10% 3dprint-lite

Code Review | 3DPrint Lite

WordPress plugin 3DPrint Lite scored10%from 54 tests.

About plugin

  • Plugin page: 3dprint-lite
  • Plugin version: 2.0.3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.4
  • WordPress version: 6.3.1
  • First release: Aug 16, 2015
  • Latest release: Nov 26, 2023
  • Number of updates: 214
  • Update frequency: every 14.1 days
  • Top authors: fuzzoid (100%)

Code review

54 tests

User reviews

31 reviews

Install metrics

800+ active /30,908 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/3dprint-lite/includes/3dprint-lite-functions.php+1060
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.50MB] [CPU: ▼4.25ms] Passed 4 tests

An overview of server-side resources used by 3DPrint Lite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.4046.79 ▲1.91
Dashboard /wp-admin3.83 ▲0.4952.90 ▼9.44
Posts /wp-admin/edit.php3.93 ▲0.5757.60 ▲9.76
Add New Post /wp-admin/post-new.php6.52 ▲0.6485.77 ▼19.21
Media Library /wp-admin/upload.php3.77 ▲0.5442.44 ▲10.92
File Manager /wp-admin/admin.php?page=p3dlite_file_manager3.7041.49
Infills /wp-admin/admin.php?page=p3dlite_infills3.8044.95
Price Requests /wp-admin/admin.php?page=p3dlite_price_requests3.8150.86
Settings /wp-admin/admin.php?page=p3dlite_settings3.7146.92
Email Templates /wp-admin/admin.php?page=p3dlite_email_templates3.8444.24
Printers /wp-admin/admin.php?page=p3dlite_printers3.8052.64
3DPrint Lite /wp-admin/admin.php?page=3dprint-lite3.7146.89
Coatings /wp-admin/admin.php?page=p3dlite_coatings3.8046.93
Materials /wp-admin/admin.php?page=p3dlite_materials3.8046.95
Post-Processings /wp-admin/admin.php?page=p3dlite_postprocessings3.7041.71

Server storage [IO: ▲2.90MB] [DB: ▲0.02MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 207 new files
Database: 5 new tables, 9 new options
New tables
wp_p3dlite_infills
wp_p3dlite_printers
wp_p3dlite_price_requests
wp_p3dlite_materials
wp_p3dlite_coatings
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
p3dlite_version
p3dlite_settings
can_compress_scripts
p3dlite_email_templates

Browser metrics Passed 4 tests

3DPrint Lite: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,052 ▲29015.39 ▲1.0545.61 ▲43.9537.44 ▼5.99
Dashboard /wp-admin2,258 ▲805.69 ▲0.0096.23 ▼8.6344.26 ▲5.44
Posts /wp-admin/edit.php2,160 ▲602.03 ▲0.0253.24 ▲14.1936.76 ▲2.99
Add New Post /wp-admin/post-new.php1,574 ▲4823.27 ▲0.15687.25 ▲9.6453.51 ▼0.63
Media Library /wp-admin/upload.php1,457 ▲634.14 ▼0.1497.40 ▲0.8941.40 ▼4.09
File Manager /wp-admin/admin.php?page=p3dlite_file_manager8832.0729.6025.94
Infills /wp-admin/admin.php?page=p3dlite_infills1,8352.2835.5427.47
Price Requests /wp-admin/admin.php?page=p3dlite_price_requests1,3132.1231.9231.25
Settings /wp-admin/admin.php?page=p3dlite_settings3,1743.7188.2073.07
Email Templates /wp-admin/admin.php?page=p3dlite_email_templates2,0238.71187.15141.44
Printers /wp-admin/admin.php?page=p3dlite_printers1,2222.1230.9025.62
3DPrint Lite /wp-admin/admin.php?page=3dprint-lite3,1723.5289.4344.07
Coatings /wp-admin/admin.php?page=p3dlite_coatings1,1542.1529.3124.47
Materials /wp-admin/admin.php?page=p3dlite_materials1,2762.1429.8326.33
Post-Processings /wp-admin/admin.php?page=p3dlite_postprocessings8862.1227.2424.97

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
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=3dprint-lite
    • > Network (severe)
    wp-content/plugins/3dprint-lite/images/ajax-loader-small.gif - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: 3dprint, 3d printing, printer, 3d, printing...

3dprint-lite/3dprint-lite.php Passed 13 tests

The main PHP script in "3DPrint Lite" version 2.0.3.5 is automatically included on every request by WordPress
42 characters long description:
A plugin for selling 3D printing services.

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
These items require your attention
  • For security reasons, never distribute binary or executable files with your plugin
    • .xap - Silverlight Application Package in Microsoft Silverlight
      • wp-content/plugins/3dprint-lite/includes/ext/plupload/Moxie.xap
27,057 lines of code in 157 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript947,0856,49419,805
PHP291,3351,8814,561
CSS304442432,599
Markdown219056
SVG20036

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity16.70
▷ Minimum class complexity3.00
▷ Maximum class complexity31.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods110
▷ Static methods2522.73%
▷ Public methods110100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions47
▷ Named functions4697.87%
▷ Anonymous functions12.13%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
25 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
includes/ext/easyaspie/assets/images/arrow.png1.00KB0.20KB▼ 80.56%
includes/ext/jquery-ui/images/ui-icons_454545_256x240.png6.83KB4.17KB▼ 38.86%
includes/ext/plupload/jquery.plupload.queue/img/transp50.png0.39KB0.11KB▼ 72.18%
includes/ext/jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.27KB0.18KB▼ 35.00%