90% wayra-postcode-validator

Code Review | Wayra - Validar Código Postal Argentino

WordPress plugin Wayra - Validar Código Postal Argentino scored90%from 54 tests.

About plugin

  • Plugin page: wayra-postcode-va...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Apr 2, 2021
  • Latest release: Jan 23, 2022
  • Number of updates: 4
  • Update frequency: every 74.0 days
  • Top authors: wayradigital (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /604 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.53ms] Passed 4 tests

An overview of server-side resources used by Wayra - Validar Código Postal Argentino
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.51 ▼6.64
Dashboard /wp-admin3.35 ▲0.0448.73 ▼4.90
Posts /wp-admin/edit.php3.46 ▲0.1048.27 ▼3.45
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.10 ▲0.89
Media Library /wp-admin/upload.php3.27 ▲0.0438.93 ▲2.77

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Wayra - Validar Código Postal Argentino
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.59 ▼0.811.78 ▲0.0843.58 ▼5.98
Dashboard /wp-admin2,206 ▲184.86 ▼0.24105.93 ▼2.5441.19 ▼3.62
Posts /wp-admin/edit.php2,092 ▼02.06 ▼0.0039.91 ▼2.6235.02 ▼2.04
Add New Post /wp-admin/post-new.php1,533 ▼023.29 ▲0.21684.90 ▼35.0458.36 ▲3.14
Media Library /wp-admin/upload.php1,388 ▲34.25 ▲0.0795.70 ▼20.3042.47 ▼4.70

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: argentina, codigo postal argentino, postcode, argentino, woocommerce...

wayra-postcode-validator/wayra-postcode-validator.php Passed 13 tests

The entry point to "Wayra - Validar Código Postal Argentino" version 1.0.1 is a PHP file that has certain tags in its header comment area
105 characters long description:
Plugin para WooCommerce que valida el Código Postal Argentino (formatos válidos 0000, X0000, X0000XXX).

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected157 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP777350139
JavaScript14018

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.18
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.44
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1477.78%
▷ Protected methods00.00%
▷ Private methods422.22%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 are no PNG files in this plugin