84% reachedge

Code Review | LocaliQ - Tracking Code

WordPress plugin LocaliQ - Tracking Code scored84%from 54 tests.

About plugin

  • Plugin page: reachedge
  • Plugin version: 1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-5.9.5
  • WordPress version: 6.3.1
  • First release: Feb 3, 2016
  • Latest release: Feb 22, 2023
  • Number of updates: 67
  • Update frequency: every 38.5 days
  • Top authors: REWordPressPlugin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active /20,567 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▲1.26ms] Passed 4 tests

An overview of server-side resources used by LocaliQ - Tracking Code
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0045.80 ▲0.59
Dashboard /wp-admin3.32 ▲0.0163.66 ▲7.53
Posts /wp-admin/edit.php3.37 ▲0.0156.98 ▲1.81
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.68 ▼3.37
Media Library /wp-admin/upload.php3.24 ▲0.0141.06 ▲6.01

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for LocaliQ - Tracking Code
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7013.33 ▼1.314.66 ▲2.6946.70 ▲0.55
Dashboard /wp-admin2,234 ▲315.83 ▲0.04117.65 ▼7.4545.55 ▲2.05
Posts /wp-admin/edit.php2,116 ▲162.05 ▲0.0438.65 ▼1.5738.32 ▼0.98
Add New Post /wp-admin/post-new.php1,558 ▲1822.87 ▲4.64635.93 ▼45.4463.52 ▼4.44
Media Library /wp-admin/upload.php1,410 ▲104.21 ▼0.04116.69 ▼2.7147.11 ▲0.62

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reachedge/reachedge-tracking-plugin-settings.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: lead conversion, email capture, call tracking, localiq, form capture...

reachedge/reachedge-tracking-plugin.php 92% from 13 tests

The main PHP file in "LocaliQ - Tracking Code" ver. 1.9 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("reachedge.php" instead of "reachedge-tracking-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected170 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP32517111
Markdown115034
YAML12025

PHP code Passed 2 tests

This is a very shot review 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.23
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%
Functions9
▷ Named functions9100.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 are no PNG files in this plugin