10% leadtracker

Code Review | Lead Tracker

WordPress plugin Lead Tracker scored10%from 54 tests.

About plugin

  • Plugin page: leadtracker
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-6.2
  • WordPress version: 6.3.1
  • First release: Oct 11, 2021
  • Latest release: May 8, 2023
  • Number of updates: 9
  • Update frequency: every 63.7 days
  • Top authors: salvachz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /536 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/leadtracker/ltk-config.php+33
    Undefined index: page

Server metrics [RAM: ▼1.20MB] [CPU: ▼51.96ms] Passed 4 tests

Server-side resources used by Lead Tracker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.77 ▼0.6914.47 ▼23.09
Dashboard /wp-admin2.81 ▼0.4918.15 ▼33.19
Posts /wp-admin/edit.php2.81 ▼0.5418.74 ▼32.40
Add New Post /wp-admin/post-new.php2.81 ▼3.0714.89 ▼119.14
Media Library /wp-admin/upload.php2.81 ▼0.4214.51 ▼20.63

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Lead Tracker
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲4014.28 ▼0.071.82 ▼0.2444.99 ▲4.50
Dashboard /wp-admin2,220 ▲405.56 ▼0.0989.08 ▼1.7271.15 ▲29.16
Posts /wp-admin/edit.php2,137 ▲371.99 ▼0.0234.27 ▼15.6231.87 ▼8.38
Add New Post /wp-admin/post-new.php1,561 ▲2422.90 ▲4.45735.18 ▲57.4176.07 ▲2.57
Media Library /wp-admin/upload.php1,440 ▲464.17 ▼0.04103.72 ▲4.5483.32 ▲41.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/leadtracker/ltk-config.php+33
    Undefined index: page
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
Please fix the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/leadtracker/ltk-init.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/leadtracker/leadtracker.php:39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/leadtracker/contents/cssInit.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === leadtracker === )
The official readme.txt might help

leadtracker/leadtracker.php Passed 13 tests

The main file in "Lead Tracker" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
47 characters long description:
Mensure, analise e acompanhe seus lançamentos.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected384 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4158122373
SVG20011

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods22
▷ Static methods22100.00%
▷ Public methods22100.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 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.50MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
contents/dashboard.png30.87KB12.02KB▼ 61.05%
screenshot-1.png148.74KB56.06KB▼ 62.31%
contents/ui_wp_ltk.png115.18KB33.19KB▼ 71.18%
icon-256x256.png3.18KB1.43KB▼ 55.20%
contents/ui_wp_ltk_usr.PNG37.75KB11.67KB▼ 69.09%