10% woo-e-commerce-guru

Code Review | E-CommerceGuru

WordPress plugin E-CommerceGuru scored10%from 54 tests.

About plugin

  • Plugin page: woo-e-commerce-guru
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Dec 3, 2018
  • Latest release: Dec 3, 2018
  • Number of updates: 8
  • Update frequency: every 0.8 days
  • Top authors: agentemr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /535 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)

Server metrics [RAM: ▼1.96MB] [CPU: ▼57.45ms] Passed 4 tests

Server-side resources used by E-CommerceGuru
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.87 ▼38.44
Dashboard /wp-admin2.05 ▼1.265.91 ▼49.38
Posts /wp-admin/edit.php2.05 ▼1.315.78 ▼44.41
Add New Post /wp-admin/post-new.php2.05 ▼3.846.04 ▼97.55
Media Library /wp-admin/upload.php2.05 ▼1.186.24 ▼31.34

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for E-CommerceGuru
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,858 ▲9713.30 ▼0.991.95 ▼0.0241.69 ▼12.28
Dashboard /wp-admin2,224 ▲184.92 ▼0.03107.30 ▲1.0275.73 ▲34.24
Posts /wp-admin/edit.php2,118 ▲152.04 ▲0.0439.95 ▲1.0738.27 ▲2.85
Add New Post /wp-admin/post-new.php1,561 ▲3018.52 ▼4.67752.71 ▲80.6262.87 ▲11.55
Media Library /wp-admin/upload.php1,418 ▲154.28 ▲0.01103.97 ▼3.9696.43 ▲47.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the plugin_css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • The plugin did not uninstall successfully, leaving 3 tables in the database
    • configuracao
    • integracao
    • orcamento
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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 take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/woo-e-commerce-guru/woocommerce-guru.php

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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: spam, comments

woo-e-commerce-guru/woocommerce-guru.php 92% from 13 tests

"E-CommerceGuru" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-e-commerce-guru.php" instead of "woocommerce-guru.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin10,826 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
CSS47247,325
JavaScript45822061,628
PHP7166541,585
SVG100288

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions67
▷ Named functions67100.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 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo.png0.65KB0.54KB▼ 15.71%