78% facilita-form-tracker

Code Review | Facilita Form Tracker

WordPress plugin Facilita Form Tracker scored78%from 54 tests.

About plugin

  • Plugin page: facilita-form-tra...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9
  • WordPress version: 6.3.1
  • First release: Sep 10, 2018
  • Latest release: Sep 10, 2018
  • Number of updates: 9
  • Update frequency: every 0.4 days
  • Top authors: orlandolac (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,226 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.14ms] Passed 4 tests

An overview of server-side resources used by Facilita Form Tracker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.15 ▼1.20
Dashboard /wp-admin3.33 ▲0.0248.24 ▼4.55
Posts /wp-admin/edit.php3.38 ▲0.0247.45 ▼0.00
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.65 ▼10.33
Media Library /wp-admin/upload.php3.25 ▲0.0234.21 ▼0.49
Facilita Form Tracker /wp-admin/options-general.php?page=facilita-tracker-forms-options3.2130.50

Server storage [IO: ▲0.01MB] [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: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Facilita Form Tracker
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,939 ▲19313.97 ▼0.675.51 ▲3.7941.50 ▼6.41
Dashboard /wp-admin2,210 ▲225.82 ▼0.0595.07 ▼12.6540.57 ▼3.33
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0636.37 ▲0.6333.36 ▲1.98
Add New Post /wp-admin/post-new.php1,539 ▲623.26 ▲0.04611.23 ▼60.5255.87 ▼12.89
Media Library /wp-admin/upload.php1,386 ▲14.18 ▼0.0398.01 ▼3.3143.69 ▼0.87
Facilita Form Tracker /wp-admin/options-general.php?page=facilita-tracker-forms-options7862.0623.8824.15

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/facilita-form-tracker/src/page.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function FACFT\\add_action() in wp-content/plugins/facilita-form-tracker/src/FACFT/facilitaFormtrackerSystem.php:9
    • > PHP Notice
      Undefined variable: custom_field in wp-content/plugins/facilita-form-tracker/src/page.php on line 14

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

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: facilita form tracker, facilita, crm, facilita tracker, facilita form...

facilita-form-tracker/facilita_tracker.php 92% from 13 tests

"Facilita Form Tracker" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("facilita-form-tracker.php" instead of "facilita_tracker.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
There were no executable files found in this plugin75 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3121675

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin