93% woowrap

Code Review | Woocommerce Woowrap

WordPress plugin Woocommerce Woowrap scored 93% from 54 tests.

About plugin

  • Plugin page: woowrap
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.4
  • WordPress version: 5.8.1
  • First release: Dec 7, 2015
  • Latest release: Mar 4, 2016
  • Number of updates: 9
  • Update frequency: every 9.9 days
  • Top authors: tex0gen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 765 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

A check of server-side resources used by Woocommerce Woowrap
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1238.96 ▲15.57
Dashboard /wp-admin3.06 ▲0.0145.86 ▼2.85
Posts /wp-admin/edit.php3.12 ▲0.0148.84 ▼1.30
Add New Post /wp-admin/post-new.php5.42 ▼0.0189.25 ▼574.16
Media Library /wp-admin/upload.php3.01 ▲0.0029.88 ▲2.66

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 183 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Woocommerce Woowrap
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.31 ▲0.658.34 ▲0.5448.34 ▼11.30
Dashboard /wp-admin2,967 ▲365.93 ▲0.05144.20 ▼11.04127.11 ▲7.10
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0168.10 ▲2.3193.54 ▼7.02
Add New Post /wp-admin/post-new.php1,672 ▼1119.16 ▲0.38378.30 ▲6.29119.69 ▲8.76
Media Library /wp-admin/upload.php1,807 ▼35.05 ▲0.05166.37 ▲6.29120.97 ▼5.13

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/woowrap/woocommerce-woowrap.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% 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:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === woowrap === )
You can take inspiration from this readme.txt

woowrap/woocommerce-woowrap.php 85% from 13 tests

"Woocommerce Woowrap" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woowrap.php" instead of "woocommerce-woowrap.php")
  • Git Repository: Please do not include Git repositories in your plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin11,397 lines of code in 163 files:
LanguageFilesBlank linesComment linesLines of code
Sass801,4452,2445,794
JavaScript181,1864273,223
Ruby482542671,366
Markdown32150431
SVG100288
JSON500133
Slim12082
PHP110931
YAML30031
ERB12012
Bourne Shell1215
CSS1051

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.06
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/sass/bootstrap-sass/test/dummy_node_mincer/apple-touch-icon-144-precomposed.png3.47KB3.17KB▼ 8.54%