Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.44MB] [CPU: ▲4.08ms] Passed 4 tests
A check of server-side resources used by Axeptio - GDPR Cookie Consent & Compliance with a friendly touch
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.28 ▲0.81 | 253.13 ▲209.61 |
Dashboard /wp-admin | 3.73 ▲0.43 | 53.54 ▲5.98 |
Posts /wp-admin/edit.php | 3.83 ▲0.47 | 55.53 ▲11.15 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 99.57 ▲0.32 |
Media Library /wp-admin/upload.php | 3.64 ▲0.41 | 36.22 ▼1.15 |
Settings /wp-admin/admin.php?page=axeptio-wordpress-plugin | 3.70 | 41.46 |
Plugin manager /wp-admin/admin.php?page=axeptio-plugin-manager | 3.72 | 52.70 |
Server storage [IO: ▲2.50MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 653 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_axeptio_plugin_configuration |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
axeptio_settings |
axeptio/version |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Axeptio - GDPR Cookie Consent & Compliance with a friendly touch
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,108 ▲346 | 15.15 ▲0.75 | 1.78 ▼0.15 | 39.92 ▼4.23 |
Dashboard /wp-admin | 2,508 ▲328 | 6.53 ▲0.93 | 129.33 ▲29.33 | 79.65 ▲36.33 |
Posts /wp-admin/edit.php | 2,337 ▲234 | 3.48 ▲1.40 | 57.97 ▲15.61 | 65.38 ▲26.42 |
Add New Post /wp-admin/post-new.php | 2,107 ▲580 | 23.26 ▲0.23 | 603.54 ▼65.44 | 164.66 ▲91.31 |
Media Library /wp-admin/upload.php | 1,566 ▲172 | 4.34 ▲0.16 | 88.95 ▼15.65 | 74.44 ▲31.83 |
Settings /wp-admin/admin.php?page=axeptio-wordpress-plugin | 2,385 | 12.86 | 323.57 | 164.87 |
Plugin manager /wp-admin/admin.php?page=axeptio-plugin-manager | 2,376 | 3.92 | 69.68 | 82.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie tables were found after uninstall: 1 table
- wp_axeptio_plugin_configuration
- This plugin does not fully uninstall, leaving 8 options in the database
- db_upgraded
- axeptio_settings
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- axeptio/version
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/axeptio-sdk-integration/templates/admin/onboarding/welcome.php
- > /wp-content/plugins/axeptio-sdk-integration/templates/frontend/sdk.php
- 306× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Client\\Common\\Plugin' not found in wp-content/plugins/axeptio-sdk-integration/vendor/php-http/client-common/src/Plugin/BaseUriPlugin.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Stringable' not found in wp-content/plugins/axeptio-sdk-integration/vendor/sentry/sentry/src/EventId.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/axeptio-sdk-integration/templates/admin/plugins/fields/edit.php:20
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/axeptio-sdk-integration/vendor/guzzlehttp/promises/src/CancellationException.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Promise\\Promise' not found in wp-content/plugins/axeptio-sdk-integration/vendor/php-http/httplug/src/Promise/HttpRejectedPromise.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Stringable' not found in wp-content/plugins/axeptio-sdk-integration/vendor/sentry/sentry/src/Tracing/SpanId.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/axeptio-sdk-integration/vendor/guzzlehttp/psr7/src/Stream.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\OptionsResolver\\Options' not found in wp-content/plugins/axeptio-sdk-integration/vendor/symfony/options-resolver/OptionsResolver.php:28
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Message\\RequestMatcher' not found in wp-content/plugins/axeptio-sdk-integration/vendor/php-http/message/src/RequestMatcher/CallbackRequestMatcher.php:13
- > PHP Fatal error
Uncaught Error: Class 'Http\\Message\\Encoding\\FilteredStream' not found in wp-content/plugins/axeptio-sdk-integration/vendor/php-http/message/src/Encoding/DecompressStream.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=axeptio-wordpress-plugin
- > Other (warning) in unknown
/wp-admin/admin.php?page=axeptio-wordpress-plugin 380 Unrecognized feature: 'web-share'.
- > GET request to /wp-admin/admin.php?page=axeptio-wordpress-plugin
- > Network (severe)
wp-content/plugins/axeptio-sdk-integration/dist/css/fonts/SourceSerif4-Bold.otf.woff2 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=axeptio-plugin-manager
- > Network (severe)
wp-json/axeptio/v1/plugins/all - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=axeptio-plugin-manager
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=axeptio-plugin-manager 0:0 Uncaught SyntaxError: Unexpected token '
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
axeptio-sdk-integration/axeptio-wordpress-plugin.php 85% from 13 tests
This is the main PHP file of "Axeptio - GDPR Cookie Consent & Compliance with a friendly touch" version 2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("axeptio-sdk-integration.php" instead of "axeptio-wordpress-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected40,575 lines of code in 603 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 534 | 7,940 | 16,352 | 32,747 |
JSON | 31 | 0 | 0 | 3,204 |
Markdown | 20 | 1,400 | 0 | 2,413 |
PO File | 6 | 896 | 1,411 | 2,018 |
YAML | 3 | 12 | 2 | 125 |
SVG | 4 | 0 | 0 | 39 |
Bourne Shell | 1 | 6 | 0 | 18 |
CSS | 2 | 0 | 0 | 9 |
JavaScript | 2 | 0 | 1 | 2 |
PHP code Passed 2 tests
A short review 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.44 |
Average class complexity | 9.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 181.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 84 | |
Interfaces | 81 | |
Traits | 25 | |
Classes | 365 | |
▷ Abstract classes | 11 | 3.01% |
▷ Concrete classes | 354 | 96.99% |
▷ Final classes | 221 | 62.43% |
Methods | 2,428 | |
▷ Static methods | 342 | 14.09% |
▷ Public methods | 2,074 | 85.42% |
▷ Protected methods | 71 | 2.92% |
▷ Private methods | 283 | 11.66% |
Functions | 263 | |
▷ Named functions | 50 | 19.01% |
▷ Anonymous functions | 213 | 80.99% |
Constants | 122 | |
▷ Global constants | 11 | 9.02% |
▷ Class constants | 111 | 90.98% |
▷ Public constants | 71 | 63.96% |
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.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/img/icon.png | 0.29KB | 0.39KB | 0.00% |