89% fami-woocommerce-compare

Code Review | Fami WooCommerce Compare

WordPress plugin Fami WooCommerce Compare scored89%from 54 tests.

About plugin

  • Plugin page: fami-woocommerce-...
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.2
  • WordPress version: 6.3.1
  • First release: May 6, 2019
  • Latest release: May 17, 2019
  • Number of updates: 15
  • Update frequency: every 0.7 days
  • Top authors: zankover (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

600+ active /17,765 total downloads

Benchmarks

Plugin footprint 83% from 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.28MB] [CPU: ▼1.86ms] Passed 4 tests

Analyzing server-side resources used by Fami WooCommerce Compare
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2658.33 ▲4.81
Dashboard /wp-admin3.58 ▲0.2857.90 ▲1.22
Posts /wp-admin/edit.php3.70 ▲0.3454.44 ▼3.78
Add New Post /wp-admin/post-new.php6.18 ▲0.30101.98 ▼9.70
Media Library /wp-admin/upload.php3.51 ▲0.2844.82 ▲7.83

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Fami WooCommerce Compare
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,947 ▲18613.99 ▼0.6013.34 ▲11.5356.49 ▲11.69
Dashboard /wp-admin2,214 ▲345.61 ▼0.0691.96 ▲1.9172.45 ▲27.77
Posts /wp-admin/edit.php2,138 ▲382.02 ▲0.0536.73 ▼3.7433.73 ▼5.16
Add New Post /wp-admin/post-new.php1,555 ▲2023.00 ▲4.93699.68 ▲57.27172.37 ▲95.81
Media Library /wp-admin/upload.php1,425 ▲254.27 ▲0.0898.91 ▲3.5673.01 ▲31.00

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% 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 require attention: Please take inspiration from this readme.txt

fami-woocommerce-compare/fami-woocommerce-compare.php 92% from 13 tests

"Fami WooCommerce Compare" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 478 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin10,345 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript61,4081,0274,504
CSS121741162,322
PHP103733341,737
Sass510551,127
SVG223415
LESS1115152
Markdown142080
Ruby1208

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity56.25
▷ Minimum class complexity9.00
▷ Maximum class complexity103.00
Average method complexity4.81
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods58
▷ Static methods2237.93%
▷ Public methods58100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.06MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/noimage/no_image-90x90.png0.66KB0.22KB▼ 66.91%
assets/images/noimage/no_image-180x200.png0.62KB0.10KB▼ 84.30%
assets/images/noimage/no_image_color.png0.42KB0.10KB▼ 76.80%
assets/images/noimage/no_image.png16.67KB0.57KB▼ 96.60%
assets/vendors/owl/assets/owl.video.play.png4.86KB2.74KB▼ 43.61%