Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼9.44ms] Passed 4 tests
An overview of server-side resources used by releva.nz | Dynamisches Retargeting
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.41 ▼9.37 |
Dashboard /wp-admin | 3.31 ▼0.03 | 44.72 ▼13.10 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 50.39 ▼0.05 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 90.68 ▼15.23 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.73 ▲0.88 |
Server storage [IO: ▲0.78MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for releva.nz | Dynamisches Retargeting
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲35 | 14.18 ▼0.17 | 1.56 ▼0.06 | 41.03 ▼4.31 |
Dashboard /wp-admin | 2,199 ▲22 | 5.62 ▲0.00 | 90.53 ▲0.37 | 43.21 ▼2.92 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.97 ▼0.03 | 41.47 ▲1.60 | 36.57 ▼0.04 |
Add New Post /wp-admin/post-new.php | 1,533 ▼3 | 23.10 ▼0.01 | 602.51 ▼50.92 | 53.81 ▼2.51 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.21 ▼0.06 | 122.91 ▲22.63 | 59.72 ▲14.92 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/releva-nz/admin/partials/admin-notices.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/releva-nz/admin/partials/admin-chart.php:17
- > PHP Notice
Undefined variable: once in wp-content/plugins/releva-nz/admin/partials/admin-notices.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/releva-nz/admin/partials/admin-menu.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: advertising, retargeting, e-commerce, sales, remarketing...
releva-nz/relevatracking.php 85% from 13 tests
This is the main PHP file of "releva.nz | Dynamisches Retargeting" version 2.1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("releva-nz.php" instead of "relevatracking.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Success! There were no dangerous files found in this plugin4,639 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 954 | 1,625 | 4,211 |
JavaScript | 3 | 61 | 52 | 255 |
PO File | 2 | 50 | 71 | 153 |
CSS | 2 | 3 | 4 | 20 |
PHP code Passed 2 tests
Analyzing 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.46 |
Average class complexity | 51.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 352.00 |
Average method complexity | 4.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 136 | |
▷ Static methods | 26 | 19.12% |
▷ Public methods | 84 | 61.76% |
▷ Protected methods | 6 | 4.41% |
▷ Private methods | 46 | 33.82% |
Functions | 16 | |
▷ Named functions | 6 | 37.50% |
▷ Anonymous functions | 10 | 62.50% |
Constants | 26 | |
▷ Global constants | 1 | 3.85% |
▷ Class constants | 25 | 96.15% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected