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.08MB] [CPU: ▼12.91ms] Passed 4 tests
Server-side resources used by Give - Pixel Tracking
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 43.43 ▲3.28 |
Dashboard /wp-admin | 3.29 ▼0.02 | 37.04 ▼17.05 |
Posts /wp-admin/edit.php | 3.35 ▼0.00 | 36.36 ▼16.51 |
Add New Post /wp-admin/post-new.php | 5.51 ▼0.37 | 75.47 ▼14.94 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.05 ▼3.14 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 42 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
recovery_mode_email_last_sent |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Give - Pixel Tracking
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,482 ▼1,279 | 12.39 ▼1.72 | 2.20 ▲0.52 | 38.95 ▼3.02 |
Dashboard /wp-admin | 850 ▼1,327 | 1.36 ▼4.29 | 14.23 ▼73.41 | 19.49 ▼33.31 |
Posts /wp-admin/edit.php | 861 ▼1,242 | 1.51 ▼0.51 | 6.66 ▼34.25 | 20.13 ▼20.32 |
Add New Post /wp-admin/post-new.php | 587 ▼941 | 1.71 ▼19.12 | 20.17 ▼688.55 | 7.62 ▼53.38 |
Media Library /wp-admin/upload.php | 746 ▼654 | 1.71 ▼2.41 | 22.06 ▼90.81 | 22.14 ▼24.12 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- recovery_mode_email_last_sent
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Interface 'Give\\ServiceProviders\\ServiceProvider' not found in wp-content/plugins/give-pixel-tracking/src/FacebookPixel/FacebookPixelServiceProvider.php:17
- > PHP Fatal error
Uncaught Error: Class 'Give_Settings_Page' not found in wp-content/plugins/give-pixel-tracking/src/FacebookPixel/SettingsPage.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: donations, givewp, conversion, facebook pixel
give-pixel-tracking/give-fbpt.php 85% from 13 tests
"Give - Pixel Tracking" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: The principal plugin file should be the same as the plugin slug ("give-pixel-tracking.php" instead of "give-fbpt.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin913 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 304 | 423 | 876 |
Sass | 2 | 3 | 1 | 15 |
JSON | 2 | 0 | 0 | 12 |
JavaScript | 3 | 1 | 0 | 9 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 7.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 32 | 50.79% |
▷ Public methods | 59 | 93.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 6.35% |
Functions | 7 | |
▷ Named functions | 1 | 14.29% |
▷ Anonymous functions | 6 | 85.71% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected