83% custom-pc-builder-lite-for-woocommerce

Code Review | Custom PC Builder Lite for WooCommerce

WordPress plugin Custom PC Builder Lite for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: custom-pc-builder...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.6
  • WordPress version: 6.3.1
  • First release: Jan 27, 2021
  • Latest release: Feb 2, 2021
  • Number of updates: 6
  • Update frequency: every 1.2 days
  • Top authors: choplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,505 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.15ms] Passed 4 tests

Analyzing server-side resources used by Custom PC Builder Lite for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.88 ▼8.58
Dashboard /wp-admin3.33 ▲0.0347.68 ▲2.67
Posts /wp-admin/edit.php3.44 ▲0.0946.30 ▼7.60
Add New Post /wp-admin/post-new.php5.91 ▲0.0382.36 ▼18.56
Media Library /wp-admin/upload.php3.25 ▲0.0335.83 ▲2.16

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Custom PC Builder Lite for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.26 ▼1.091.61 ▼0.6438.50 ▼14.25
Dashboard /wp-admin2,203 ▲155.83 ▼0.0598.17 ▼7.6639.77 ▼3.79
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0139.48 ▲1.0935.31 ▼5.12
Add New Post /wp-admin/post-new.php1,532 ▼1022.22 ▲3.83675.45 ▲70.8759.38 ▼4.07
Media Library /wp-admin/upload.php1,388 ▼34.21 ▲0.0792.50 ▼11.2240.64 ▼0.47

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/custom-pc-builder-lite-for-woocommerce/inc/helper.php
    • > /wp-content/plugins/custom-pc-builder-lite-for-woocommerce/inc/admin-ajax-handle.php
    • > /wp-content/plugins/custom-pc-builder-lite-for-woocommerce/index.php
    • > /wp-content/plugins/custom-pc-builder-lite-for-woocommerce/inc/frontend-ajax-handle.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed: You can take inspiration from this readme.txt

custom-pc-builder-lite-for-woocommerce/index.php 77% from 13 tests

Analyzing the main PHP file in "Custom PC Builder Lite for WooCommerce" version 1.0.1
The following require your attention:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "3.2")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("custom-pc-builder-lite-for-woocommerce.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin2,736 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP121322541,240
Sass2220955
PO File18488209
SVG604166
JSON300130
Markdown17030
JavaScript3014
CSS2002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity18.60
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods51
▷ Static methods1325.49%
▷ Public methods5098.04%
▷ Protected methods00.00%
▷ Private methods11.96%
Functions16
▷ Named functions1593.75%
▷ Anonymous functions16.25%
Constants0
▷ 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
1 PNG file occupies 0.28MB with 0.19MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/custom-pc-builder-pro.png283.44KB87.67KB▼ 69.07%