73% pixelavo

Code Review | Pixelavo - Facebook Pixel Conversion API / Server Side Tracking

WordPress plugin Pixelavo - Facebook Pixel Conversion API / Server Side Tracking scored73%from 54 tests.

About plugin

  • Plugin page: pixelavo
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Mar 11, 2023
  • Latest release: Nov 26, 2023
  • Number of updates: 15
  • Update frequency: every 17.3 days
  • Top authors: hasthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,229 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.38MB] [CPU: ▼1.44ms] Passed 4 tests

Analyzing server-side resources used by Pixelavo - Facebook Pixel Conversion API / Server Side Tracking
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3435.84 ▼3.25
Dashboard /wp-admin3.73 ▲0.3850.80 ▼7.89
Posts /wp-admin/edit.php3.78 ▲0.4247.76 ▲5.31
Add New Post /wp-admin/post-new.php6.32 ▲0.4397.06 ▲4.61
Media Library /wp-admin/upload.php3.59 ▲0.3635.99 ▲0.77

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
pixelavo_events

Browser metrics Passed 4 tests

Checking browser requirements for Pixelavo - Facebook Pixel Conversion API / Server Side Tracking
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7514.46 ▲0.181.64 ▼0.0836.04 ▼7.17
Dashboard /wp-admin2,218 ▲405.49 ▼0.18100.55 ▼13.1749.32 ▲6.67
Posts /wp-admin/edit.php2,132 ▲321.99 ▼0.0440.35 ▲0.8537.91 ▲5.13
Add New Post /wp-admin/post-new.php1,554 ▲2323.37 ▲0.62605.69 ▼79.1253.86 ▼2.72
Media Library /wp-admin/upload.php1,435 ▲414.15 ▼0.0699.99 ▲5.1942.38 ▲1.59
Events /wp-admin/admin.php?page=pixelavo#/events1,2726.70123.5468.88
Settings /wp-admin/admin.php?page=pixelavo#/settings1,7187.82115.6750.27
Custom Events /wp-admin/admin.php?page=pixelavo#/custom_events1,3797.31106.3349.21
Pixels /wp-admin/admin.php?page=pixelavo#/pixels1,3277.1497.8149.25

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • pixelavo_events
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/pixelavo/admin/settings-panel/includes/templates/settings-page.php
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant PIXELAVO_INCLUDES - assumed 'PIXELAVO_INCLUDES' (this will throw an Error in a future version of PHP) in wp-content/plugins/pixelavo/admin/settings-panel/includes/classes/Api/Settings.php on line 8
    • > PHP Warning
      include(): Failed opening 'PIXELAVO_INCLUDES/templates/sidebar-banner.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/pixelavo/admin/settings-panel/includes/templates/settings-page.php on line 4
    • > PHP Warning
      include(PIXELAVO_INCLUDES/templates/sidebar-banner.php): failed to open stream: No such file or directory in wp-content/plugins/pixelavo/admin/settings-panel/includes/templates/settings-page.php on line 4
    • > PHP Warning
      Use of undefined constant PIXELAVO_INCLUDES - assumed 'PIXELAVO_INCLUDES' (this will throw an Error in a future version of PHP) in wp-content/plugins/pixelavo/admin/settings-panel/includes/templates/settings-page.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/pixelavo/admin/settings-panel/includes/classes/Api.php:9
    • > PHP Fatal error
      require_once(): Failed opening required 'PIXELAVO_INCLUDES/classes/Admin/Options_field.php' (include_path='.:/usr/share/php') in wp-content/plugins/pixelavo/admin/settings-panel/includes/classes/Api/Settings.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/pixelavo/admin/settings-panel/includes/templates/sidebar-banner.php:5
    • > PHP Warning
      require_once(PIXELAVO_INCLUDES/classes/Admin/Options_field.php): failed to open stream: No such file or directory in wp-content/plugins/pixelavo/admin/settings-panel/includes/classes/Api/Settings.php on line 8

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
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pixelavo#/pixels
    • > Console-api (warning) in unknown
    webpack://pixelavo-options/./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js? 5156:16 "Feature flags __VUE_OPTIONS_API__, __VUE_PROD_DEVTOOLS__ are not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.\n\nFor more details, see https://link.vuejs.org/feature-flags."

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:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
Please take inspiration from this readme.txt

pixelavo/pixelavo.php Passed 13 tests

The principal PHP file in "Pixelavo - Facebook Pixel Conversion API / Server Side Tracking" v. 1.0.6 is loaded by WordPress automatically on each request
95 characters long description:
Add facebook pixel to your website to track the actions people take when they interact with it.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected4,070 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP172875681,845
CSS4272441,207
JavaScript8572649998
SVG50020

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity14.62
▷ Minimum class complexity2.00
▷ Maximum class complexity41.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces5
Interfaces0
Traits1
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes216.67%
Methods80
▷ Static methods78.75%
▷ Public methods7391.25%
▷ Protected methods00.00%
▷ Private methods78.75%
Functions21
▷ Named functions2095.24%
▷ Anonymous functions14.76%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/settings-panel/assets/images/icons/caret-up.png0.17KB0.15KB▼ 13.48%
admin/settings-panel/assets/images/icons/check.png2.01KB0.26KB▼ 86.87%
admin/settings-panel/assets/images/icons/pro-badge.png3.16KB1.97KB▼ 37.53%
admin/settings-panel/assets/images/icons/caret-down.png0.19KB0.15KB▼ 20.21%
admin/settings-panel/assets/images/icons/customer-service.png2.25KB2.05KB▼ 8.93%