83% leadsource-tracker

Code Review | LeadSource Tracker - Free Edition

WordPress plugin LeadSource Tracker - Free Edition scored 83% from 54 tests.

About plugin

  • Plugin page: leadsource-tracker
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.2.2
  • WordPress version: 6.3.1
  • First release: May 12, 2015
  • Latest release: May 25, 2015
  • Number of updates: 13
  • Update frequency: every 1.0 days
  • Top authors: cchui (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 983 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
Install script ran successfully

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

This is a short check of server-side resources used by LeadSource Tracker - Free Edition
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.50 ▼15.20
Dashboard /wp-admin3.33 ▲0.0247.21 ▲2.35
Posts /wp-admin/edit.php3.38 ▲0.0250.18 ▼0.28
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.12 ▼9.54
Media Library /wp-admin/upload.php3.25 ▲0.0234.00 ▲0.61
LeadSource Tracker /wp-admin/options-general.php?page=ldsrctrckr_store_leadsource-settings3.2332.62

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for LeadSource Tracker - Free Edition
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.64 ▼0.721.65 ▼0.6538.04 ▼7.75
Dashboard /wp-admin2,210 ▲194.87 ▼0.01111.67 ▲10.1340.93 ▼5.19
Posts /wp-admin/edit.php2,093 ▲72.05 ▲0.0140.36 ▲1.6934.28 ▼3.41
Add New Post /wp-admin/post-new.php1,550 ▲1618.34 ▼4.80596.66 ▲4.8169.22 ▲11.55
Media Library /wp-admin/upload.php1,392 ▲14.19 ▼0.0693.33 ▼6.7241.98 ▼3.01
LeadSource Tracker /wp-admin/options-general.php?page=ldsrctrckr_store_leadsource-settings8922.0522.5924.46

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/leadsource-tracker/leadsourcetracker.free.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (16 tag instead of maximum 10)
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === leadsource-tracker === )
You can look at the official readme.txt

leadsource-tracker/leadsourcetracker.free.php 85% from 13 tests

The principal PHP file in "LeadSource Tracker - Free Edition" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("leadsource-tracker.php" instead of "leadsourcetracker.free.php")
  • Description: The description should be shorter than 140 characters (currently 424 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected118 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12821118

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected