90% woo-per-product-per-qty

Code Review | Woo Product Per Qty

WordPress plugin Woo Product Per Qty scored90%from 54 tests.

About plugin

  • Plugin page: woo-per-product-p...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Aug 31, 2018
  • Latest release: Aug 31, 2018
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: jitendrabanjara1991 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /626 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Woo Product Per Qty
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.89 ▼1.91
Dashboard /wp-admin3.31 ▲0.0044.53 ▼0.85
Posts /wp-admin/edit.php3.36 ▲0.0047.09 ▲3.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.70 ▼3.46
Media Library /wp-admin/upload.php3.23 ▲0.0034.85 ▲1.05

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

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

Browser metrics Passed 4 tests

Woo Product Per Qty: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.37 ▼0.851.73 ▼0.3739.70 ▼9.74
Dashboard /wp-admin2,200 ▲125.85 ▲0.03100.56 ▼0.4339.49 ▼0.80
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0239.05 ▲3.5234.58 ▲2.85
Add New Post /wp-admin/post-new.php1,545 ▲318.38 ▼0.11610.15 ▼45.7560.74 ▲5.38
Media Library /wp-admin/upload.php1,388 ▼04.16 ▼0.0396.56 ▼5.2941.57 ▼0.03

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Please fix this invalid URI: ""
You can look at the official readme.txt

woo-per-product-per-qty/woo-per-product-per-qty.php Passed 13 tests

The main PHP file in "Woo Product Per Qty" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
76 characters long description:
Woo Product Per Qty for that shop which that want to sell number of products

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
Good job! No executable or dangerous file extensions detected312 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP391153312

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin