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.05MB] [CPU: ▼11.10ms] Passed 4 tests
Server-side resources used by Adsfox - tracking Pixel
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.83 ▼2.73 |
Dashboard /wp-admin | 3.38 ▲0.03 | 45.40 ▼19.50 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 46.84 ▲4.03 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 85.27 ▼19.67 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 32.20 ▼2.51 |
adsfox-info /wp-admin/admin.php?page=ddt-info-page | 3.27 | 31.22 |
Adsfox tracking pixel /wp-admin/admin.php?page=DDT-navigator-settings-page | 3.43 | 42.94 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 9 new options
New WordPress options |
---|
DDT_Facebook_events_url |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
DDT_Pixel_Facebook_auto_setup_apikey |
DDT_Pixel_Facebook_auto_setup |
can_compress_scripts |
Browser metrics Passed 4 tests
Adsfox - tracking Pixel: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 14.33 ▼0.05 | 1.69 ▼0.01 | 43.90 ▲0.26 |
Dashboard /wp-admin | 2,225 ▲54 | 5.74 ▲0.21 | 84.90 ▼1.95 | 39.70 ▲2.78 |
Posts /wp-admin/edit.php | 2,124 ▲21 | 2.03 ▼0.01 | 34.21 ▼5.01 | 33.29 ▼4.46 |
Add New Post /wp-admin/post-new.php | 1,553 ▲16 | 22.95 ▲4.80 | 664.51 ▲56.69 | 51.27 ▼13.85 |
Media Library /wp-admin/upload.php | 1,421 ▲21 | 4.19 ▲0.02 | 93.47 ▼0.57 | 40.90 ▼2.53 |
adsfox-info /wp-admin/admin.php?page=ddt-info-page | 818 | 2.15 | 23.58 | 23.88 |
Adsfox tracking pixel /wp-admin/admin.php?page=DDT-navigator-settings-page | 1,533 | 2.20 | 23.96 | 71.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_recent-posts
- DDT_Pixel_Facebook_auto_setup
- can_compress_scripts
- DDT_Facebook_events_url
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- DDT_Pixel_Facebook_auto_setup_apikey
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ddt-tracking/wpajax/ajax.php:39
- > PHP Notice
Undefined variable: dd_array_table in wp-content/plugins/ddt-tracking/frontend/elements/table.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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 need to be fixed:
- Screenshots: These screenshots require images: #1 (Facebook Pixel basic setup), #2 (E-commerce & Contact Form tracking with plugin detection), #3 (With consent mode for Cookieplugins), #4 (Custom Events with all Facebook Events possible), #5 (Create simple, custom URL Events)
- Donate link: Please fix this invalid URI: ""
ddt-tracking/ddt_tracking_pixel.php 92% from 13 tests
The main PHP file in "Adsfox - tracking Pixel" ver. 0.0.1.5 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ddt-tracking.php" instead of "ddt_tracking_pixel.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected3,153 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 285 | 149 | 1,629 |
CSS | 4 | 122 | 70 | 1,027 |
JavaScript | 3 | 93 | 11 | 296 |
JSON | 1 | 0 | 0 | 104 |
SVG | 1 | 1 | 1 | 97 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 3 | 60.00% |
▷ Public methods | 3 | 60.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 40.00% |
Functions | 33 | |
▷ Named functions | 33 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin