89% simulador-de-parcelas-taxas-avancadas

Code Review | Simulador de Parcelas - Taxas avançadas

WordPress plugin Simulador de Parcelas - Taxas avançadas scored89%from 54 tests.

About plugin

  • Plugin page: simulador-de-parc...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.0.3
  • WordPress version: 6.3.1
  • First release: Feb 22, 2019
  • Latest release: Mar 20, 2019
  • Number of updates: 3
  • Update frequency: every 9.3 days
  • Top authors: Amgnando (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,408 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Simulador de Parcelas - Taxas avançadas
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.21 ▲1.38
Dashboard /wp-admin3.31 ▲0.0046.07 ▼6.04
Posts /wp-admin/edit.php3.36 ▲0.0048.85 ▲1.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.49 ▼4.68
Media Library /wp-admin/upload.php3.23 ▲0.0035.60 ▲1.91

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Simulador de Parcelas - Taxas avançadas
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲6313.25 ▼1.021.73 ▲0.1945.17 ▲0.79
Dashboard /wp-admin2,233 ▲304.84 ▼0.0997.75 ▼6.3742.54 ▼3.16
Posts /wp-admin/edit.php2,109 ▲92.00 ▲0.0240.82 ▲5.6839.31 ▲4.36
Add New Post /wp-admin/post-new.php1,559 ▲1423.19 ▲2.18606.31 ▼117.7253.42 ▲1.48
Media Library /wp-admin/upload.php1,409 ▲94.23 ▼0.02100.90 ▼11.5847.87 ▲1.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: parcelas, woocommerce

simulador-de-parcelas-taxas-avancadas/wc-installments-advanced-fees.php 77% from 13 tests

"Simulador de Parcelas - Taxas avançadas" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simulador-de-parcelas-taxas-avancadas.php" instead of "wc-installments-advanced-fees.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.5" instead of "3.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected111 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32251111

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity3.33
▷ Minimum class complexity3.00
▷ Maximum class complexity4.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods880.00%
▷ Protected methods00.00%
▷ Private methods220.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected