84% woo-romania-counties

Code Review | WooCommerce Romania Counties

WordPress plugin WooCommerce Romania Counties scored84%from 54 tests.

About plugin

  • Plugin page: woo-romania-counties
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 15, 2018
  • Latest release: Jan 20, 2018
  • Number of updates: 3
  • Update frequency: every 2.7 days
  • Top authors: mcwebdesignro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /812 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

A check of server-side resources used by WooCommerce Romania Counties
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.31 ▼5.54
Dashboard /wp-admin3.31 ▼0.0464.16 ▲0.58
Posts /wp-admin/edit.php3.36 ▲0.0050.60 ▼2.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.84 ▼10.79
Media Library /wp-admin/upload.php3.23 ▲0.0037.84 ▲2.86

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

WooCommerce Romania Counties: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.24 ▼1.031.58 ▼0.5341.17 ▼6.26
Dashboard /wp-admin2,218 ▲125.86 ▲1.00111.97 ▲3.4840.23 ▼3.44
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0240.87 ▲5.0535.04 ▼2.44
Add New Post /wp-admin/post-new.php1,540 ▼823.10 ▼0.31628.57 ▲30.9951.11 ▼13.61
Media Library /wp-admin/upload.php1,394 ▼34.19 ▼0.04100.08 ▼2.3940.29 ▼6.32

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

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-romania-counties/woocommerce-romania-counties.php:73

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: judete romania, romania, romania counties, woocommerce

woo-romania-counties/woocommerce-romania-counties.php 92% from 13 tests

This is the main PHP file of "WooCommerce Romania Counties" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-romania-counties.php" instead of "woocommerce-romania-counties.php")

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
Everything looks great! No dangerous files found in this plugin49 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP142049

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin