84% woocommerce-downlaod-product-from-admin

Code Review | Download Theme | Plugin | WC products zip from dashboard

WordPress plugin Download Theme | Plugin | WC products zip from dashboard scored84%from 54 tests.

About plugin

  • Plugin page: woocommerce-downl...
  • Plugin version: 0.6
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 25, 2015
  • Latest release: Oct 11, 2021
  • Number of updates: 11
  • Update frequency: every 220.0 days
  • Top authors: Goback2 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,627 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Download Theme | Plugin | WC products zip from dashboard
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.14 ▲3.08
Dashboard /wp-admin3.31 ▼0.0351.37 ▼12.96
Posts /wp-admin/edit.php3.37 ▲0.0147.90 ▼3.69
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.98 ▼4.97
Media Library /wp-admin/upload.php3.24 ▲0.0140.09 ▲0.02

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Download Theme | Plugin | WC products zip from dashboard
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.17 ▲0.181.66 ▼0.2843.41 ▼6.30
Dashboard /wp-admin2,198 ▲285.61 ▼0.0387.08 ▼24.1639.01 ▼4.52
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0139.20 ▲1.5538.23 ▲1.62
Add New Post /wp-admin/post-new.php1,526 ▼023.11 ▼0.19665.57 ▼25.1251.24 ▼6.24
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.00100.29 ▼15.3145.70 ▼2.12

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 | 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 following issues need your attention
  • 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/woocommerce-downlaod-product-from-admin/index.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
There were no plugin tags found

woocommerce-downlaod-product-from-admin/index.php 85% from 13 tests

Analyzing the main PHP file in "Download Theme | Plugin | WC products zip from dashboard" version 0.6
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woocommerce-downlaod-product-from-admin.php" instead of "index.php")

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
No dangerous file extensions were detected304 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP15851245
PO File212424446
JavaScript2219
CSS2004

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions11
▷ Named functions11100.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
No PNG files were detected