10% woo-product-collage

Code Review | Product Collage

WordPress plugin Product Collage scored10%from 54 tests.

About plugin

  • Plugin page: woo-product-collage
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3+
  • WordPress version: 6.3.1
  • First release: Feb 22, 2017
  • Latest release: Jul 31, 2017
  • Number of updates: 9
  • Update frequency: every 17.4 days
  • Top authors: ukwpexperts (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10+ active /1,349 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/woo-product-collage/woo-productcollage.php+16
    Undefined variable: wpdb

Server metrics [RAM: ▼1.93MB] [CPU: ▼53.85ms] Passed 4 tests

A check of server-side resources used by Product Collage
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.414.69 ▼40.96
Dashboard /wp-admin2.08 ▼1.236.71 ▼39.78
Posts /wp-admin/edit.php2.08 ▼1.286.97 ▼41.02
Add New Post /wp-admin/post-new.php2.08 ▼3.815.55 ▼93.62
Media Library /wp-admin/upload.php2.08 ▼1.165.61 ▼30.54

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Product Collage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.171.75 ▲0.1143.78 ▼6.15
Dashboard /wp-admin2,200 ▲125.83 ▲0.02105.65 ▼0.2239.66 ▼9.24
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0139.59 ▼3.1534.02 ▼3.57
Add New Post /wp-admin/post-new.php1,542 ▲1418.14 ▼0.06659.28 ▲46.1755.67 ▲4.86
Media Library /wp-admin/upload.php1,385 ▼34.21 ▲0.0396.86 ▼8.7147.64 ▲1.58

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/woo-product-collage/woo-productcollage.php+29
    Constant WPC_DEFAULT_DATE_FORMAT already defined
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-product-collage/sql/install_table.php:43

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Contributors: Contributors not specified
You can look at the official readme.txt

woo-product-collage/woo-productcollage.php 92% from 13 tests

The entry point to "Product Collage" version 2.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-product-collage.php" instead of "woo-productcollage.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
No dangerous file extensions were detected3,463 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript64061941,750
CSS411856919
PHP723944794

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
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
Namespaces0
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%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
22 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/i.png1.51KB1.44KB▼ 4.54%
images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
images/accomo.png1.27KB1.11KB▼ 12.27%
images/s_warn.png0.25KB0.14KB▼ 44.06%
images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%