90% woo-streetshirts

Code Review | streetshirts for WooCommerce

WordPress plugin streetshirts for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: woo-streetshirts
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Jun 14, 2017
  • Latest release: Sep 22, 2018
  • Number of updates: 35
  • Update frequency: every 13.3 days
  • Top authors: stevewinn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,420 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.02ms] Passed 4 tests

Analyzing server-side resources used by streetshirts for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.42 ▲0.10
Dashboard /wp-admin3.31 ▲0.0045.96 ▼3.62
Posts /wp-admin/edit.php3.36 ▲0.0047.46 ▼2.82
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.14 ▼5.74
Media Library /wp-admin/upload.php3.23 ▲0.0034.68 ▲1.77

Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

streetshirts for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.091.71 ▼0.3344.35 ▼0.27
Dashboard /wp-admin2,198 ▲185.68 ▲0.0191.29 ▼6.7038.39 ▼5.31
Posts /wp-admin/edit.php2,103 ▼01.99 ▲0.0138.70 ▲1.5834.07 ▲3.37
Add New Post /wp-admin/post-new.php1,526 ▼022.95 ▼0.13632.61 ▼40.8152.21 ▲1.20
Media Library /wp-admin/upload.php1,403 ▼04.20 ▲0.04105.71 ▲12.5346.25 ▲2.89

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 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 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: There are too many tags (15 tag instead of maximum 10)
The official readme.txt is a good inspiration

woo-streetshirts/woo-streetshirts.php Passed 13 tests

The primary PHP file in "streetshirts for WooCommerce" version 1.0.4 is used by WordPress to initiate all plugin functionality
95 characters long description:
Connect streetshirts to your WooCommerce store. White-label T-shirt drop-shipping from the U.K.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin110 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12730109
JavaScript1171

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
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
There were not PNG files found in your plugin