84% highest-sell-products-woocommerce

Code Review | Highest Sell Products Woocommerce

WordPress plugin Highest Sell Products Woocommerce scored84%from 54 tests.

About plugin

  • Plugin page: highest-sell-prod...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2
  • WordPress version: 6.3.1
  • First release: Jul 21, 2015
  • Latest release: Jul 21, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: swadeshswain (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,929 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.99ms] Passed 4 tests

This is a short check of server-side resources used by Highest Sell Products Woocommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.92 ▼2.13
Dashboard /wp-admin3.33 ▲0.0249.15 ▼1.51
Posts /wp-admin/edit.php3.38 ▲0.0150.45 ▼9.96
Add New Post /wp-admin/post-new.php5.91 ▲0.0190.13 ▼10.36
Media Library /wp-admin/upload.php3.25 ▲0.0135.70 ▲0.44

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Highest Sell Products Woocommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7614.35 ▼0.371.75 ▼0.0542.17 ▼0.52
Dashboard /wp-admin2,231 ▲535.69 ▲0.0883.69 ▼24.0840.32 ▼1.39
Posts /wp-admin/edit.php2,103 ▲31.96 ▼0.0538.50 ▼0.8635.38 ▲3.21
Add New Post /wp-admin/post-new.php1,526 ▼923.28 ▲5.12693.77 ▲44.2962.28 ▼1.52
Media Library /wp-admin/upload.php1,400 ▼34.18 ▼0.01107.41 ▲8.9942.94 ▼4.15

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please fix the following items
  • 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/highest-sell-products-woocommerce/highest-sell-product-dashboard.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #2 (Highest Sell Products Dashboard Widget 2) image required
You can take inspiration from this readme.txt

highest-sell-products-woocommerce/highest-sell-product-dashboard.php 92% from 13 tests

The principal PHP file in "Highest Sell Products Woocommerce" v. 0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("highest-sell-products-woocommerce.php" instead of "highest-sell-product-dashboard.php")

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
Everything looks great! No dangerous files found in this plugin105 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1510105

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png79.05KB31.26KB▼ 60.46%