78% clickback-web-tracker

Code Review | Clickback

WordPress plugin Clickback scored78%from 54 tests.

About plugin

  • Plugin page: clickback-web-tra...
  • Plugin version: 2.05
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7.0
  • WordPress version: 6.3.1
  • First release: Apr 10, 2018
  • Latest release: Mar 3, 2021
  • Number of updates: 31
  • Update frequency: every 34.1 days
  • Top authors: cbmfoerster (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,618 total downloads

Benchmarks

Plugin footprint 83% from 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.01MB] [CPU: ▼4.00ms] Passed 4 tests

Analyzing server-side resources used by Clickback
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.11 ▼0.06
Dashboard /wp-admin3.32 ▲0.0147.41 ▼5.82
Posts /wp-admin/edit.php3.37 ▲0.0148.42 ▼4.10
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.84 ▼6.00
Media Library /wp-admin/upload.php3.24 ▲0.0140.43 ▲3.81

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Clickback: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6914.17 ▼0.212.26 ▲0.5543.61 ▼0.98
Dashboard /wp-admin2,211 ▲375.57 ▼0.1080.42 ▼6.5039.49 ▼1.87
Posts /wp-admin/edit.php2,113 ▲132.00 ▼0.0133.75 ▼7.0631.49 ▼9.68
Add New Post /wp-admin/post-new.php1,558 ▲1323.52 ▲0.42665.04 ▲43.4254.85 ▲0.43
Media Library /wp-admin/upload.php1,419 ▲194.28 ▲0.10113.74 ▲14.5251.21 ▲7.21

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/clickback-web-tracker/clickbackWEB.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/clickback-web-tracker/class.clickbackWEB-admin.php:73

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% 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
9 plugin tags: anonymous visitors, clickback, mail, web, clickback mail...

clickback-web-tracker/clickbackWEB.php 77% from 13 tests

The main PHP script in "Clickback" version 2.05 is automatically included on every request by WordPress
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 154 characters long)
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("clickback-web-tracker.php" instead of "clickbackWEB.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected145 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP42830145

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin