Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.36MB] [CPU: ▼1.86ms] Passed 4 tests
This is a short check of server-side resources used by Meta pixel for WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.30 | 38.75 ▼2.98 |
Dashboard /wp-admin | 3.69 ▲0.39 | 54.54 ▲7.01 |
Posts /wp-admin/edit.php | 3.73 ▲0.38 | 47.35 ▲1.41 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.40 | 87.13 ▼11.64 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 37.96 ▲5.77 |
Meta /wp-admin/options-general.php?page=facebook_pixel_options | 3.52 | 34.27 |
Server storage [IO: ▲6.00MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 1,697 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
facebook_capi_integration_status |
widget_theysaidso_widget |
facebook_capi_integration_events_filter |
db_upgraded |
Browser metrics Passed 4 tests
Meta pixel for WordPress: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲32 | 14.66 ▲0.31 | 1.71 ▼0.22 | 42.38 ▼2.70 |
Dashboard /wp-admin | 2,227 ▲50 | 5.64 ▼0.05 | 86.07 ▼8.81 | 41.76 ▲3.61 |
Posts /wp-admin/edit.php | 2,106 ▲3 | 2.00 ▲0.04 | 36.26 ▼7.17 | 33.59 ▼3.75 |
Add New Post /wp-admin/post-new.php | 1,531 ▼4 | 23.02 ▼1.89 | 615.93 ▼52.78 | 46.87 ▼20.29 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.21 ▲0.13 | 104.20 ▼1.85 | 41.66 ▼2.70 |
Meta /wp-admin/options-general.php?page=facebook_pixel_options | 1,557 | 10.52 | 292.00 | 81.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 8 options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- facebook_capi_integration_events_filter
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- facebook_capi_integration_status
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
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
Please take a closer look at the following
- 24× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/official-facebook-pixel/core/ServerEventFactory.php
- > /wp-content/plugins/official-facebook-pixel/integration/EDDUtils.php
- > /wp-content/plugins/official-facebook-pixel/core/FacebookServerSideEvent.php
- > /wp-content/plugins/official-facebook-pixel/integration/FacebookWordpressFormidableForm.php
- > /wp-content/plugins/official-facebook-pixel/integration/FacebookWordpressWPForms.php
- > /wp-content/plugins/official-facebook-pixel/integration/FacebookWordpressWPECommerce.php
- > /wp-content/plugins/official-facebook-pixel/integration/FacebookWordpressContactForm7.php
- > /wp-content/plugins/official-facebook-pixel/core/PixelRenderer.php
- > /wp-content/plugins/official-facebook-pixel/integration/FacebookWordpressNinjaForms.php
- > /wp-content/plugins/official-facebook-pixel/integration/FacebookWordpressWooCommerce.php
- 1666× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'FacebookAds\\Enum\\AbstractEnum' not found in wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/PageParkingFields.php:38
- > PHP Fatal error
Uncaught Error: Class 'FacebookAds\\Object\\AbstractCrudObject' not found in wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/URL.php:43
- > PHP Fatal error
Uncaught Error: Class 'FacebookAds\\Object\\AbstractCrudObject' not found in wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/Experience.php:42
- > PHP Fatal error
Uncaught Error: Class 'FacebookAds\\Object\\AbstractObject' not found in wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ProductCatalogImageSettings.php:42
- > PHP Fatal error
Uncaught Error: Class 'FacebookAds\\Enum\\AbstractEnum' not found in wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ProductCatalogImageSettingsFields.php:38
- > PHP Fatal error
Uncaught Error: Class 'FacebookAds\\Enum\\AbstractEnum' not found in wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdCampaignPacedBidInfoFields.php:38
- > PHP Fatal error
Uncaught Error: Class 'FacebookAds\\Object\\AbstractObject' not found in wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/FAMEExportConfig.php:42
- > PHP Fatal error
Uncaught Error: Class 'FacebookAdsTest\\Object\\AbstractAsyncJobTestCase' not found in wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/test/FacebookAdsTest/Object/AsyncJobInsightsTest.php:33
- > PHP Fatal error
Uncaught Error: Class 'FacebookAds\\Object\\AbstractObject' not found in wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdRuleExecutionOptions.php:43
- > PHP Fatal error
Uncaught Error: Class 'FacebookAds\\Object\\AbstractObject' not found in wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ManagedPartnerBusiness.php:42
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=facebook_pixel_options
- > Console-api (warning) in wp-content/plugins/official-facebook-pixel/js/fbe_allinone.js?ver=6.3.1+21423:14
Warning: Accessing createClass via the main React package is deprecated, and will be removed in React v16.0. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class v15.* is available on npm as a temporary, drop-in replacement. For more info see https://fb.me/react-create-class
- > GET request to /wp-admin/options-general.php?page=facebook_pixel_options
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/options-general.php?page=facebook_pixel_options
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
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
10 plugin tags: facebook pixel, facebook conversion pixel, facebook standard events, facebook retargeting, meta conversion api...
official-facebook-pixel/facebook-for-wordpress.php 85% from 13 tests
The primary PHP file in "Meta pixel for WordPress" version 3.0.14 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("official-facebook-pixel.php" instead of "facebook-for-wordpress.php")
- Description: The description should be shorter than 140 characters (currently 397 characters long)
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
It is important to fix the following items
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/fb_ca_chain_bundle.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,609 | 15,451 | 52,861 | 74,822 |
JavaScript | 1 | 2,498 | 6,238 | 12,982 |
PO File | 26 | 312 | 515 | 1,660 |
Markdown | 11 | 385 | 0 | 901 |
JSON | 4 | 0 | 0 | 197 |
HTML | 1 | 13 | 18 | 143 |
CSS | 2 | 25 | 34 | 131 |
XML | 3 | 0 | 0 | 51 |
YAML | 1 | 4 | 0 | 24 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 2.61 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 118.00 |
Average method complexity | 1.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.00 |
Code structure | ||
---|---|---|
Namespaces | 39 | |
Interfaces | 13 | |
Traits | 4 | |
Classes | 1,440 | |
▷ Abstract classes | 15 | 1.04% |
▷ Concrete classes | 1,425 | 98.96% |
▷ Final classes | 6 | 0.42% |
Methods | 4,075 | |
▷ Static methods | 1,121 | 27.51% |
▷ Public methods | 3,370 | 82.70% |
▷ Protected methods | 588 | 14.43% |
▷ Private methods | 117 | 2.87% |
Functions | 42 | |
▷ Named functions | 6 | 14.29% |
▷ Anonymous functions | 36 | 85.71% |
Constants | 9,566 | |
▷ Global constants | 6 | 0.06% |
▷ Class constants | 9,560 | 99.94% |
▷ Public constants | 9,560 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/facebook/php-business-sdk/test/misc/image.png | 6.46KB | 5.92KB | ▼ 8.50% |