89% wc-ciudades-y-regiones-de-chile

Code Review | MkRapel Regiones y Ciudades de Chile para WC

WordPress plugin MkRapel Regiones y Ciudades de Chile para WC scored89%from 54 tests.

About plugin

  • Plugin page: wc-ciudades-y-reg...
  • Plugin version: 4.3.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5
  • WordPress version: 6.3.1
  • First release: Aug 13, 2020
  • Latest release: Dec 17, 2021
  • Number of updates: 185
  • Update frequency: every 2.7 days
  • Top authors: mkrapel (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

8,000+ active /26,219 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 gracefully, with no errors

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

A check of server-side resources used by MkRapel Regiones y Ciudades de Chile para WC
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.02 ▼3.03
Dashboard /wp-admin3.31 ▼0.0349.57 ▼12.73
Posts /wp-admin/edit.php3.36 ▲0.0043.33 ▼13.77
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.17 ▼22.01
Media Library /wp-admin/upload.php3.23 ▲0.0039.07 ▲4.49

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for MkRapel Regiones y Ciudades de Chile para WC
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.53 ▼0.112.01 ▲0.3941.99 ▲1.17
Dashboard /wp-admin2,198 ▲185.57 ▼0.0582.00 ▼0.8540.10 ▼0.15
Posts /wp-admin/edit.php2,082 ▼02.00 ▼0.0134.01 ▼2.4233.06 ▼1.95
Add New Post /wp-admin/post-new.php1,526 ▼023.11 ▼0.63660.34 ▼44.3653.83 ▼2.74
Media Library /wp-admin/upload.php1,397 ▼34.38 ▲0.2594.11 ▲0.9443.74 ▲1.15

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Requires php: Invalid version format
  • Tags: There are too many tags (21 tag instead of maximum 10)
Please take inspiration from this readme.txt

wc-ciudades-y-regiones-de-chile/wc-ciudades-y-regiones-de-chile.php 92% from 13 tests

The main file in "MkRapel Regiones y Ciudades de Chile para WC" v. 4.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 250 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin3,535 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP153282182,658
JavaScript312217599
CSS2353278

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity60.75
▷ Minimum class complexity2.00
▷ Maximum class complexity136.00
Average method complexity4.10
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods154
▷ Static methods3623.38%
▷ Public methods12178.57%
▷ Protected methods10.65%
▷ Private methods3220.78%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants562.50%
▷ Class constants337.50%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/css/tick.png3.05KB0.27KB▼ 91.20%