90% provinces-and-districts-of-panama-for-woocommerce

Code Review | Provinces and Districts of Panama for WooCommerce

WordPress plugin Provinces and Districts of Panama for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: provinces-and-dis...
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9
  • WordPress version: 6.3.1
  • First release: Oct 14, 2019
  • Latest release: Feb 21, 2022
  • Number of updates: 17
  • Update frequency: every 50.7 days
  • Top authors: YordanSoares (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /1,982 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

This is a short check of server-side resources used by Provinces and Districts of Panama for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.04 ▼0.61
Dashboard /wp-admin3.31 ▲0.0046.52 ▼1.61
Posts /wp-admin/edit.php3.36 ▲0.0049.10 ▲1.44
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.81 ▼3.88
Media Library /wp-admin/upload.php3.23 ▲0.0035.46 ▲0.62

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Provinces and Districts of Panama for WooCommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲11113.24 ▼1.161.89 ▼0.1343.00 ▼0.77
Dashboard /wp-admin2,206 ▲245.84 ▼0.01103.86 ▼7.0342.48 ▼1.23
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0640.11 ▼2.3838.49 ▲0.76
Add New Post /wp-admin/post-new.php1,542 ▲2818.18 ▲0.69612.64 ▼86.1852.70 ▼6.88
Media Library /wp-admin/upload.php1,388 ▼04.17 ▲0.0193.81 ▼10.7839.70 ▼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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

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
Everything seems fine, however 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
Everything seems fine, however this is by no means an exhaustive test

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 Passed 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: provincias y distritos de panama, panama provinces and districts

provinces-and-districts-of-panama-for-woocommerce/provinces-and-districts-of-panama-for-woocommerce.php Passed 13 tests

The main PHP script in "Provinces and Districts of Panama for WooCommerce" version 1.0.4 is automatically included on every request by WordPress
120 characters long description:
This plugin allows you to choose the Provinces, Districts and Corregimientos of Panama in the WooCommerce address forms.

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
No dangerous file extensions were detected1,209 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP48270913
JavaScript1327141
PO File2162486
Markdown114069

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity4.11
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.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