84% woo-parcelas-com-e-sem-juros

Code Review | WooCommerce Parcelas com e sem Juros

WordPress plugin WooCommerce Parcelas com e sem Juros scored84%from 54 tests.

About plugin

  • Plugin page: woo-parcelas-com-...
  • Plugin version: 1.6.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2.2
  • WordPress version: 6.3.1
  • First release: Jul 7, 2017
  • Latest release: Jul 4, 2023
  • Number of updates: 29
  • Update frequency: every 75.5 days
  • Top authors: leorobles (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

10,000+ active /75,055 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▲1.96ms] Passed 4 tests

Analyzing server-side resources used by WooCommerce Parcelas com e sem Juros
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.84 ▼8.09
Dashboard /wp-admin3.33 ▲0.0256.72 ▲7.44
Posts /wp-admin/edit.php3.38 ▲0.0251.70 ▲4.68
Add New Post /wp-admin/post-new.php5.91 ▲0.02107.88 ▲11.18
Media Library /wp-admin/upload.php3.25 ▲0.0237.45 ▲3.80

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce Parcelas com e sem Juros
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6413.24 ▼0.991.77 ▼0.4937.31 ▼9.27
Dashboard /wp-admin2,219 ▲314.88 ▼0.98146.21 ▲36.0950.69 ▲8.79
Posts /wp-admin/edit.php2,101 ▲92.06 ▲0.0438.51 ▼1.7034.24 ▲0.34
Add New Post /wp-admin/post-new.php1,543 ▲1022.99 ▼0.10638.15 ▼0.1450.44 ▼8.03
Media Library /wp-admin/upload.php1,401 ▲194.16 ▼0.09107.04 ▲4.7548.11 ▼2.02

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
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please take a closer look at the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Woocommerce_Parcelas_Meta_Box' not found in wp-content/plugins/woo-parcelas-com-e-sem-juros/public/class-woo-parcelas-com-e-sem-juros-public.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Woocommerce_Parcelas_Settings' not found in wp-content/plugins/woo-parcelas-com-e-sem-juros/admin/class-woo-parcelas-com-e-sem-juros-meta-box.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-parcelas-com-e-sem-juros/admin/class-woo-parcelas-com-e-sem-juros-settings.php:46
    • > PHP Fatal error
      Uncaught Error: Class 'WooCommerce_Parcelas_Settings' not found in wp-content/plugins/woo-parcelas-com-e-sem-juros/public/css/woo-parcelas-com-e-sem-juros-public.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt is a good inspiration

woo-parcelas-com-e-sem-juros/woo-parcelas-com-e-sem-juros.php 92% from 13 tests

Analyzing the main PHP file in "WooCommerce Parcelas com e sem Juros" version 1.6.1
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 186 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,266 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP11208323998
JavaScript5414205
CSS10063

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity9.83
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity2.61
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods33
▷ Static methods39.09%
▷ Public methods3193.94%
▷ Protected methods00.00%
▷ Private methods26.06%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin