Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.43MB] [CPU: ▼4.50ms] Passed 4 tests
An overview of server-side resources used by My Agile Pixel - The GDPR Analytics and Tracking Pixel Solution
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.44 | 41.74 ▲4.83 |
Dashboard /wp-admin | 3.75 ▲0.40 | 50.04 ▼10.91 |
Posts /wp-admin/edit.php | 3.86 ▲0.51 | 44.50 ▼3.77 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 83.51 ▼6.90 |
Media Library /wp-admin/upload.php | 3.67 ▲0.44 | 38.04 ▲3.57 |
My Agile Pixel /wp-admin/admin.php?page=my-agile-pixel_settings | 3.73 | 35.73 |
User Property Tracking /wp-admin/admin.php?page=my-agile-pixel_user_property_assoc | 3.75 | 36.81 |
Server storage [IO: ▲9.25MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 46 new files
Database: no new tables, 11 new options
New WordPress options |
---|
AgilePixel |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
AgilePixeldb_version_number |
theysaidso_admin_options |
AgilePixel_rconfig |
AgilePixeldo_sync_last_execution |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
My Agile Pixel - The GDPR Analytics and Tracking Pixel Solution: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲72 | 14.26 ▼0.08 | 2.89 ▲1.16 | 44.89 ▲4.13 |
Dashboard /wp-admin | 2,208 ▲34 | 5.54 ▼0.01 | 95.24 ▲3.95 | 69.23 ▲29.04 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 1.95 ▼0.08 | 36.13 ▼0.81 | 32.36 ▼1.15 |
Add New Post /wp-admin/post-new.php | 1,700 ▲174 | 22.34 ▼0.55 | 774.54 ▲82.28 | 48.55 ▼5.53 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.14 ▼0.05 | 103.85 ▲1.31 | 71.51 ▲26.38 |
My Agile Pixel /wp-admin/admin.php?page=my-agile-pixel_settings | 2,478 | 2.13 | 39.36 | 69.94 |
User Property Tracking /wp-admin/admin.php?page=my-agile-pixel_user_property_assoc | 1,312 | 2.12 | 34.40 | 32.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 11 options
- AgilePixeldo_sync_last_execution
- AgilePixeldo_sync_now
- AgilePixeldb_version_number
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- AgilePixel_rconfig
- theysaidso_admin_options
- db_upgraded
- ...
Smoke tests 75% 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 no errors were found, 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 fix the following
- 14× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/myagilepixel/admin/views/inc/inc.sidebar.php:6
- > PHP Notice
Undefined variable: the_options in wp-content/plugins/myagilepixel/admin/views/inc/inc.user_property_list.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/myagilepixel/admin/views/inc/inc.facebook_tab.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/myagilepixel/admin/views/inc/inc.tiktok_tab.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/myagilepixel/admin/views/inc/inc.user_property_assoc.edit.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/myagilepixel/admin/views/inc/inc.advanced_settings_tab.php:4
- > PHP Warning
Use of undefined constant MAPX_PLUGIN_NAME - assumed 'MAPX_PLUGIN_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/myagilepixel/includes/my-agile-pixel-class.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/myagilepixel/admin/views/inc/inc.general_tab.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/myagilepixel/myagilepixel.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/myagilepixel/admin/views/user_property_assoc.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
myagilepixel/myagilepixel.php Passed 13 tests
The entry point to "My Agile Pixel - The GDPR Analytics and Tracking Pixel Solution" version 2.2.4 is a PHP file that has certain tags in its header comment area
93 characters long description:
Prevent legal compliance issues when using Google Analytics, Facebook Pixel and TikTok Pixel.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin24,035 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 8,813 | 17 | 18,285 |
PHP | 14 | 1,406 | 575 | 4,483 |
JavaScript | 3 | 270 | 115 | 867 |
PO File | 1 | 133 | 255 | 400 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 162)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 231.67 |
▷ Minimum class complexity | 160.00 |
▷ Maximum class complexity | 325.00 |
Average method complexity | 10.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 162.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 27 | 38.03% |
▷ Public methods | 57 | 80.28% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 19.72% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 33 | |
▷ Global constants | 33 | 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
3 PNG files occupy 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/banner-privacy-eng.png | 68.72KB | 29.13KB | ▼ 57.61% |
admin/img/banner-privacy-ita.png | 64.09KB | 27.32KB | ▼ 57.37% |
admin/img/menu-icon.png | 1.60KB | 0.66KB | ▼ 58.99% |