90% wc-colombia-states

Code Review | WC Colombia States

WordPress plugin WC Colombia States scored 90% from 54 tests.

About plugin

  • Plugin page: wc-colombia-states
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Sep 27, 2016
  • Latest release: Oct 31, 2016
  • Number of updates: 4
  • Update frequency: every 8.5 days
  • Top authors: hachesilva (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 862 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 gracefully, with no errors

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

Analyzing server-side resources used by WC Colombia States
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.78 ▼1.92
Dashboard /wp-admin3.31 ▲0.0145.45 ▼2.15
Posts /wp-admin/edit.php3.36 ▲0.0148.11 ▼3.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.41 ▲0.81
Media Library /wp-admin/upload.php3.23 ▲0.0135.39 ▲2.13

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WC Colombia States
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.17 ▼1.121.63 ▲0.0239.78 ▼1.18
Dashboard /wp-admin2,209 ▲215.85 ▼0.0697.66 ▼5.6639.61 ▼2.60
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0441.71 ▼0.7334.39 ▼2.55
Add New Post /wp-admin/post-new.php1,542 ▲1418.11 ▼0.14604.74 ▼31.4357.06 ▼1.35
Media Library /wp-admin/upload.php1,382 ▼04.22 ▼0.0095.67 ▼2.7141.42 ▼2.10

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

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
Good news, no errors were detected

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 a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% 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
These attributes need to be fixed:
  • Donate link: Please fix this invalid URI: ""
You can take inspiration from this readme.txt

wc-colombia-states/wc-colombia-states.php Passed 13 tests

This is the main PHP file of "WC Colombia States" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
35 characters long description:
Add Colombian states to WooCommerce

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
There were no executable files found in this plugin44 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP141544

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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