90% virtuaria-jamef-woocommerce

Code Review | Virtuaria - Jamef para Woocommerce

WordPress plugin Virtuaria - Jamef para Woocommerce scored90%from 54 tests.

About plugin

  • Plugin page: virtuaria-jamef-w...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0.1
  • WordPress version: 6.3.1
  • First release: Oct 13, 2022
  • Latest release: May 8, 2023
  • Number of updates: 3
  • Update frequency: every 69.0 days
  • Top authors: tecnologiavirtuaria (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /244 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

This is a short check of server-side resources used by Virtuaria - Jamef para Woocommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.48 ▼1.04
Dashboard /wp-admin3.32 ▲0.0144.41 ▼3.56
Posts /wp-admin/edit.php3.37 ▲0.0147.31 ▼0.71
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.91 ▼13.32
Media Library /wp-admin/upload.php3.24 ▲0.0133.80 ▲1.84

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Virtuaria - Jamef para Woocommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6313.24 ▼1.141.78 ▼0.1343.07 ▼3.02
Dashboard /wp-admin2,215 ▲305.81 ▼0.11101.48 ▲0.0841.62 ▼2.55
Posts /wp-admin/edit.php2,098 ▲91.97 ▼0.0437.06 ▲0.5931.44 ▼3.75
Add New Post /wp-admin/post-new.php1,542 ▼023.06 ▲4.89590.43 ▼34.2458.80 ▲9.05
Media Library /wp-admin/upload.php1,400 ▲124.22 ▼0.0094.46 ▼6.0644.02 ▼0.37

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

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 no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

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
4 plugin tags: shipping method, woocommerce, jamef, shipping

virtuaria-jamef-woocommerce/virtuaria-jamef.php 92% from 13 tests

The entry point to "Virtuaria - Jamef para Woocommerce" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("virtuaria-jamef-woocommerce.php" instead of "virtuaria-jamef.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
There were no executable files found in this plugin434 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP360166434

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity10.67
▷ Minimum class complexity4.00
▷ Maximum class complexity20.00
Average method complexity2.53
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods15.26%
▷ Public methods1052.63%
▷ Protected methods00.00%
▷ Private methods947.37%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin