72% facebook-conversion-pixel

Code Review | Pixel Cat - Conversion Pixel Manager

WordPress plugin Pixel Cat - Conversion Pixel Manager scored72%from 54 tests.

About plugin

  • Plugin page: facebook-conversi...
  • Plugin version: 3.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 12, 2014
  • Latest release: Aug 9, 2023
  • Number of updates: 86
  • Update frequency: every 38.9 days
  • Top authors: RyanNovotny (32.56%)fatcatapps (24.42%)kellenmace (24.42%)flippy101 (19.77%)davidhme (3.49%)

Code review

54 tests

User reviews

35 reviews

Install metrics

40,000+ active /1,053,354 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.66ms] 75% from 4 tests

Analyzing server-side resources used by Pixel Cat - Conversion Pixel Manager
Please have a look at the following items
  • CPU: Total CPU usage must kept under 500.00ms (currently 4,318.80ms on /wp-admin/admin.php?page=fca-pc-featured-plugins)
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.72 ▼0.07
Dashboard /wp-admin3.33 ▼0.0145.62 ▼17.03
Posts /wp-admin/edit.php3.38 ▲0.0347.95 ▲3.31
Add New Post /wp-admin/post-new.php5.91 ▲0.0378.94 ▼12.86
Media Library /wp-admin/upload.php3.25 ▲0.0237.97 ▲4.22
Featured Plugins /wp-admin/admin.php?page=fca-pc-featured-plugins3.784,318.80
Pixel Cat /wp-admin/admin.php?page=fca_pc_settings_page3.2838.71
Upgrade to Premium /wp-admin/admin.php?page=pixel-cat-upgrade3.0622.13

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 48 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
fca_pc
theysaidso_admin_options
widget_recent-comments
db_upgraded
fca_pc_version
fca_pc_show_review_notice

Browser metrics Passed 4 tests

A check of browser resources used by Pixel Cat - Conversion Pixel Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,944 ▲19813.62 ▼0.759.63 ▲7.8040.48 ▼4.11
Dashboard /wp-admin2,264 ▲795.86 ▲0.93108.91 ▼7.7185.20 ▲41.14
Posts /wp-admin/edit.php2,247 ▲1612.04 ▼0.0137.15 ▲2.7034.35 ▼2.64
Add New Post /wp-admin/post-new.php1,562 ▲3417.55 ▼5.69758.88 ▲75.4451.48 ▼6.03
Media Library /wp-admin/upload.php1,440 ▲524.18 ▼0.0898.09 ▼11.5675.72 ▲26.34
Featured Plugins /wp-admin/admin.php?page=fca-pc-featured-plugins1,4493.1241.4056.21
Pixel Cat /wp-admin/admin.php?page=fca_pc_settings_page2,2775.0576.1054.14
Upgrade to Premium /wp-admin/admin.php?page=pixel-cat-upgrade2,9975.24300.34214.92

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: 9 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • fca_pc_version
    • fca_pc_show_review_notice
    • widget_recent-posts
    • db_upgraded
    • fca_pc
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Almost there! Just fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/facebook-conversion-pixel/facebook-conversion-pixel.php
    • > /wp-content/plugins/facebook-conversion-pixel/languages/index.php
  • 15× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/facebook-conversion-pixel/includes/integrations/quizcat.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/facebook-conversion-pixel/includes/api.php:49
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/facebook-conversion-pixel/includes/functions.php:138
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/facebook-conversion-pixel/includes/editor/editor.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/facebook-conversion-pixel/includes/integrations/edd-events-ga.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/facebook-conversion-pixel/includes/integrations/landingpagecat.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/facebook-conversion-pixel/includes/integrations/amp.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/facebook-conversion-pixel/includes/integrations/optincat.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/facebook-conversion-pixel/includes/integrations/edd-events.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/facebook-conversion-pixel/includes/integrations/edd-feed.php:124

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=pixel-cat-upgrade
    • > Intervention (severe) in unknown
    /wp-admin/admin.php?page=fca_pc_settings_page - Blocked attempt to show a 'beforeunload' confirmation panel for a frame that never had a user gesture since its load. https://www.chromestatus.com/feature/5082396709879808

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 17 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (Pixel Cat Settings Screen), #3 (Facebook Standard Events builder), #2 (WooCommerce integration), #4 (Easy Digital Downloads integration)
The official readme.txt is a good inspiration

facebook-conversion-pixel/facebook-conversion-pixel.php Passed 13 tests

The primary PHP file in "Pixel Cat - Conversion Pixel Manager" version 3.0.3 is used by WordPress to initiate all plugin functionality
45 characters long description:
Provides an easy way to embed Facebook pixels

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected5,910 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP17686652,910
JavaScript95951802,498
CSS6907502

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions129
▷ Named functions129100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.18MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/onboarding-text.png3.31KB2.59KB▼ 21.68%
assets/onboarding-arrow.png0.83KB1.04KB0.00%
screenshot-4.png49.02KB27.15KB▼ 44.62%
assets/icon-256x256.png16.55KB17.54KB0.00%
screenshot-2.png24.75KB14.34KB▼ 42.04%