Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.83ms] Passed 4 tests
This is a short check of server-side resources used by Pirsch Analytics
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.89 ▼1.43 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.61 ▼16.64 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.05 ▼3.05 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 97.43 ▲3.61 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.37 ▼2.18 |
Server storage [IO: ▲1.70MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 322 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Pirsch Analytics
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.28 ▼0.00 | 1.85 ▲0.04 | 42.07 ▲0.50 |
Dashboard /wp-admin | 2,198 ▲21 | 5.65 ▼0.03 | 92.60 ▼1.95 | 37.06 ▼2.56 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.00 | 39.95 ▼1.36 | 36.79 ▼1.21 |
Add New Post /wp-admin/post-new.php | 1,526 ▼6 | 17.65 ▼5.66 | 686.50 ▲77.08 | 54.76 ▼1.38 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.22 ▼0.07 | 100.72 ▼2.78 | 46.60 ▼1.84 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
The following issues need your attention
- 102× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/pirsch-analytics/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:20
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/pirsch-analytics/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/pirsch-analytics/vendor/pirsch-analytics/sdk/vendor/guzzlehttp/psr7/src/UploadedFile.php:12
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/pirsch-analytics/vendor/pirsch-analytics/sdk/vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\MessageFormatterInterface' not found in wp-content/plugins/pirsch-analytics/vendor/guzzlehttp/guzzle/src/MessageFormatter.php:38
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/pirsch-analytics/vendor/pirsch-analytics/sdk/vendor/guzzlehttp/psr7/src/MultipartStream.php:13
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Psr7\\Request' not found in wp-content/plugins/pirsch-analytics/vendor/pirsch-analytics/sdk/vendor/guzzlehttp/psr7/src/ServerRequest.php:27
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/pirsch-analytics/vendor/pirsch-analytics/sdk/vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php:7
- > PHP Fatal error
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 7.4.16. in wp-content/plugins/pirsch-analytics/vendor/pirsch-analytics/sdk/vendor/composer/platform_check.php on line 24
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/pirsch-analytics/vendor/guzzlehttp/psr7/src/PumpStream.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
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
5 plugin tags: api, pirsch, client, sdk, analytics
pirsch-analytics/pirsch-wordpress.php 85% from 13 tests
"Pirsch Analytics" version 1.6.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pirsch-analytics.php" instead of "pirsch-wordpress.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.1" instead of "5.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected16,923 lines of code in 160 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 129 | 2,283 | 5,537 | 11,130 |
Markdown | 19 | 1,529 | 0 | 4,053 |
JSON | 12 | 0 | 0 | 1,740 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 13.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 52 | |
Traits | 6 | |
Classes | 159 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 159 | 100.00% |
▷ Final classes | 70 | 44.03% |
Methods | 1,548 | |
▷ Static methods | 290 | 18.73% |
▷ Public methods | 1,300 | 83.98% |
▷ Protected methods | 8 | 0.52% |
▷ Private methods | 240 | 15.50% |
Functions | 225 | |
▷ Named functions | 41 | 18.22% |
▷ Anonymous functions | 184 | 81.78% |
Constants | 171 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 171 | 100.00% |
▷ Public constants | 149 | 87.13% |
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 images were found in this plugin