93% activetrail-contact-form-7-integration

Code Review | Contact Form 7 - ActiveTrail integration

WordPress plugin Contact Form 7 - ActiveTrail integration scored 93% from 54 tests.

About plugin

  • Plugin page: activetrail-conta...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.4
  • WordPress version: 5.9.2
  • First release: Jul 13, 2016
  • Latest release: May 5, 2017
  • Number of updates: 14
  • Update frequency: every 21.1 days
  • Top authors: roycegracie (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

40+ active / 1,143 total downloads

Benchmarks

Plugin footprint Passed 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.03MB] [CPU: ▼352.20ms] Passed 4 tests

Analyzing server-side resources used by Contact Form 7 - ActiveTrail integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0656.26 ▲5.88
Dashboard /wp-admin3.47 ▲0.0633.90 ▲0.24
Posts /wp-admin/edit.php3.69 ▲0.0639.53 ▲2.44
Add New Post /wp-admin/post-new.php6.93 ▼0.04101.11 ▼1,412.92
Media Library /wp-admin/upload.php3.35 ▲0.0525.90 ▲1.43

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Contact Form 7 - ActiveTrail integration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,808 ▲6415.65 ▼0.385.94 ▼0.022.58 ▲0.14
Dashboard /wp-admin2,901 ▲406.14 ▼0.03117.53 ▼15.35156.31 ▼7.89
Posts /wp-admin/edit.php2,705 ▲143.24 ▲0.0065.04 ▲1.26141.69 ▼5.32
Add New Post /wp-admin/post-new.php1,782 ▲12517.21 ▼5.19423.50 ▲22.56160.95 ▲4.42
Media Library /wp-admin/upload.php1,711 ▲135.54 ▲0.01141.49 ▼11.22191.09 ▲7.29

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

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
Everything seems fine, however 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/activetrail-contact-form-7-integration/activetrail-addon.php:41

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 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (this is an example of how it will look like)
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === activetrail-contact-form-7-integration === )
  • Screenshots: Add a description for screenshot #0 in activetrail-contact-form-7-integration/assets to your readme.txt
Please take inspiration from this readme.txt

activetrail-contact-form-7-integration/activetrail-addon.php 92% from 13 tests

"Contact Form 7 - ActiveTrail integration" version 0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("activetrail-contact-form-7-integration.php" instead of "activetrail-addon.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin560 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP217983560

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods2187.50%
▷ Protected methods00.00%
▷ Private methods312.50%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin