89% departamentos-y-ciudades-de-colombia-para-contact-form-7

Code Review | Departamentos y Ciudades de Colombia para Contact Form 7

WordPress plugin Departamentos y Ciudades de Colombia para Contact Form 7 scored89%from 54 tests.

About plugin

  • Plugin page: departamentos-y-c...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 15, 2022
  • Latest release: Sep 15, 2022
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: jupa8 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /573 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.02MB] [CPU: ▼2.94ms] Passed 4 tests

This is a short check of server-side resources used by Departamentos y Ciudades de Colombia para Contact Form 7
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.50 ▼3.21
Dashboard /wp-admin3.32 ▲0.0243.43 ▼3.91
Posts /wp-admin/edit.php3.37 ▲0.0244.88 ▼2.18
Add New Post /wp-admin/post-new.php5.90 ▲0.02103.67 ▼2.47
Media Library /wp-admin/upload.php3.25 ▲0.0233.34 ▲0.51

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Departamentos y Ciudades de Colombia para Contact Form 7
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.25 ▼1.131.88 ▼0.0843.55 ▼1.41
Dashboard /wp-admin2,206 ▲185.80 ▲0.9396.34 ▼24.3242.21 ▼11.49
Posts /wp-admin/edit.php2,086 ▼31.99 ▲0.0039.78 ▲2.4335.90 ▲0.13
Add New Post /wp-admin/post-new.php1,514 ▼1417.69 ▼0.50655.93 ▲40.3958.34 ▲0.91
Media Library /wp-admin/upload.php1,388 ▲34.22 ▲0.0096.40 ▼10.1240.94 ▼3.83

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: colombia, ciudades, departamentos, contact form 7

departamentos-y-ciudades-de-colombia-para-contact-form-7/dycccf7.php 69% from 13 tests

"Departamentos y Ciudades de Colombia para Contact Form 7" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: The description should be shorter than 140 characters (currently 212 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("departamentos-y-ciudades-de-colombia-para-contact-form-7.php" instead of "dycccf7.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,418 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1101,337
PHP365581

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin