72% track-for-buzzlead

Code Review | Tracker Buzzlead para Woocommerce

WordPress plugin Tracker Buzzlead para Woocommerce scored72%from 54 tests.

About plugin

  • Plugin page: track-for-buzzlead
  • Plugin version: 2.2.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8
  • WordPress version: 6.3.1
  • First release: Nov 7, 2019
  • Latest release: Jul 12, 2021
  • Number of updates: 37
  • Update frequency: every 16.6 days
  • Top authors: rfbastos (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /598 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲1.33MB] [CPU: ▲7.24ms] Passed 4 tests

A check of server-side resources used by Tracker Buzzlead para Woocommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.80 ▲1.3353.36 ▲10.77
Dashboard /wp-admin4.65 ▲1.3564.74 ▲9.93
Posts /wp-admin/edit.php4.69 ▲1.3467.01 ▲18.71
Add New Post /wp-admin/post-new.php7.24 ▲1.3596.53 ▼2.58
Media Library /wp-admin/upload.php4.54 ▲1.3250.09 ▲10.83

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 447 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Tracker Buzzlead para Woocommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,974 ▲18817.87 ▲3.681.73 ▼0.1940.96 ▼4.55
Dashboard /wp-admin2,368 ▲1918.40 ▲2.74162.93 ▲62.1387.88 ▲40.24
Posts /wp-admin/edit.php2,314 ▲2145.71 ▲3.6978.61 ▲38.1574.90 ▲37.75
Add New Post /wp-admin/post-new.php1,756 ▲35221.32 ▲3.38683.00 ▲53.8041.07 ▼14.25
Media Library /wp-admin/upload.php1,439 ▲396.85 ▲2.76110.32 ▼3.4194.09 ▲49.86
Buzzlead /wp-admin/crb_carbon_fields_container_buzzlead.php260.420.0715.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/track-for-buzzlead/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
  • 112× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/track-for-buzzlead/vendor/htmlburger/carbon-fields/core/Container/User_Meta_Container.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/track-for-buzzlead/vendor/htmlburger/carbon-fields/core/Container/Theme_Options_Container.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Predefined_Options_Field' not found in wp-content/plugins/track-for-buzzlead/vendor/htmlburger/carbon-fields/core/Field/Multiselect_Field.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/track-for-buzzlead/vendor/htmlburger/carbon-fields/core/Field/Color_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/track-for-buzzlead/vendor/htmlburger/carbon-fields/templates/Container/common/options-page.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Comparer\\Comparer' not found in wp-content/plugins/track-for-buzzlead/vendor/htmlburger/carbon-fields/core/Container/Condition/Comparer/Custom_Comparer.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/track-for-buzzlead/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Template_Condition.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Time_Field' not found in wp-content/plugins/track-for-buzzlead/vendor/htmlburger/carbon-fields/core/Field/Date_Time_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/track-for-buzzlead/vendor/htmlburger/carbon-fields/templates/Container/term_meta.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/track-for-buzzlead/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Ancestor_ID_Condition.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/crb_carbon_fields_container_buzzlead.php
    • > Network (severe)
    wp-admin/crb_carbon_fields_container_buzzlead.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
7 plugin tags: converso, campanha buzzlead, tracker, marketing boca a boca, marketing de indicaes...

track-for-buzzlead/track-for-buzzlead.php 85% from 13 tests

The main file in "Tracker Buzzlead para Woocommerce" v. 2.2.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 153 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin27,037 lines of code in 399 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1715,1628,35212,848
PHP1442,4466,4598,654
Sass4832701,723
PO File216147841,675
CSS73201,1391,626
JSON400359
SVG17184
Markdown324068

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity8.19
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.03
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces22
Interfaces5
Traits0
Classes121
▷ Abstract classes119.09%
▷ Concrete classes11090.91%
▷ Final classes10.91%
Methods886
▷ Static methods9210.38%
▷ Public methods71981.15%
▷ Protected methods16318.40%
▷ Private methods40.45%
Functions109
▷ Named functions2926.61%
▷ Anonymous functions8073.39%
Constants34
▷ Global constants1132.35%
▷ Class constants2367.65%
▷ Public constants23100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icone.png1.75KB1.17KB▼ 33.18%