84% valhalla-cf

Code Review | Valhalla CF - Simple and Effective Contact Form with Google Maps

WordPress plugin Valhalla CF - Simple and Effective Contact Form with Google Maps scored84%from 54 tests.

About plugin

  • Plugin page: valhalla-cf
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.6
  • WordPress version: 6.3.1
  • First release: Dec 31, 2020
  • Latest release: Jan 1, 2021
  • Number of updates: 8
  • Update frequency: every 0.3 days
  • Top authors: pierremacedo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /353 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.00MB] [CPU: ▼0.76ms] Passed 4 tests

This is a short check of server-side resources used by Valhalla CF - Simple and Effective Contact Form with Google Maps
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.63 ▲0.29
Dashboard /wp-admin3.31 ▲0.0047.67 ▲0.51
Posts /wp-admin/edit.php3.36 ▲0.0048.03 ▲1.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.52 ▼2.58
Media Library /wp-admin/upload.php3.23 ▲0.0033.98 ▼1.25

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Valhalla CF - Simple and Effective Contact Form with Google Maps: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲17513.81 ▼0.7711.07 ▲9.3045.31 ▼1.13
Dashboard /wp-admin2,206 ▲155.85 ▲0.94107.06 ▼0.0838.91 ▼4.98
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0139.96 ▲2.5836.32 ▲1.58
Add New Post /wp-admin/post-new.php1,529 ▼918.40 ▼4.73639.37 ▼17.5256.10 ▲6.63
Media Library /wp-admin/upload.php1,385 ▼34.18 ▼0.0297.93 ▲0.6244.89 ▼0.39

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/valhalla-cf/valhalla-cf.php:37

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: contact form, google maps, contact, form

valhalla-cf/valhalla-cf.php 92% from 13 tests

The entry point to "Valhalla CF - Simple and Effective Contact Form with Google Maps" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 153 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
Good job! No executable or dangerous file extensions detected12,682 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS21,20979,082
JavaScript18563113,251
PHP15934349

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected