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
Installer ran successfully
Server metrics [RAM: ▲0.54MB] [CPU: ▼3.42ms] Passed 4 tests
Analyzing server-side resources used by Open Web Analytics for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.41 | 44.61 ▼1.08 |
Dashboard /wp-admin | 3.89 ▲0.58 | 45.51 ▼5.65 |
Posts /wp-admin/edit.php | 3.92 ▲0.57 | 52.19 ▲1.94 |
Add New Post /wp-admin/post-new.php | 6.58 ▲0.69 | 94.73 ▼8.88 |
Media Library /wp-admin/upload.php | 3.82 ▲0.60 | 44.07 ▲3.46 |
Analytics /wp-admin/admin.php?page=owa-analytics | 3.74 | 37.66 |
Settings /wp-admin/admin.php?page=owa-wordpress | 3.74 | 38.18 |
Server storage [IO: ▲0.93MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 178 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Open Web Analytics for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,882 ▲121 | 13.22 ▼1.07 | 2.90 ▲0.89 | 43.40 ▲1.25 |
Dashboard /wp-admin | 2,255 ▲55 | 4.88 ▼1.03 | 108.36 ▲5.44 | 42.07 ▼6.69 |
Posts /wp-admin/edit.php | 2,134 ▲31 | 2.15 ▲0.15 | 40.59 ▼4.07 | 37.74 ▼1.80 |
Add New Post /wp-admin/post-new.php | 1,579 ▲34 | 23.32 ▲0.24 | 696.70 ▲95.81 | 57.33 ▲0.91 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.22 ▲0.05 | 106.99 ▲0.40 | 47.83 ▲1.62 |
Analytics /wp-admin/admin.php?page=owa-analytics | 799 | 2.04 | 29.46 | 27.15 |
Settings /wp-admin/admin.php?page=owa-wordpress | 1,074 | 2.21 | 33.36 | 31.68 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 61× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/open-web-analytics/vendor/guzzlehttp/psr7/src/AppendStream.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/open-web-analytics/vendor/psr/http-message/src/ServerRequestInterface.php:43
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/open-web-analytics/vendor/guzzlehttp/psr7/src/Uri.php:17
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/open-web-analytics/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/open-web-analytics/vendor/guzzlehttp/psr7/src/Stream.php:12
- > PHP Warning
require_once(wp-content/plugins/open-web-analytics/vendor/open-web-analytics/owa-php-sdk/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/open-web-analytics/vendor/open-web-analytics/owa-php-sdk/owa-autoloader.php on line 22
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/open-web-analytics/vendor/guzzlehttp/psr7/src/MultipartStream.php:13
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/open-web-analytics/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/open-web-analytics/vendor/guzzlehttp/psr7/src/UploadedFile.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/open-web-analytics/vendor/guzzlehttp/psr7/src/InflateStream.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add an image for screenshot #1 (Tracking Settings)
open-web-analytics/owa-plugin.php 92% from 13 tests
The main file in "Open Web Analytics for WordPress" v. 2.1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("open-web-analytics.php" instead of "owa-plugin.php")
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
No dangerous file extensions were detected19,260 lines of code in 161 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 152 | 3,867 | 6,632 | 17,226 |
Markdown | 6 | 291 | 0 | 1,091 |
JSON | 1 | 0 | 0 | 934 |
YAML | 2 | 1 | 1 | 9 |
PHP code Passed 2 tests
Analyzing 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.45 |
Average class complexity | 15.61 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 20 | |
Interfaces | 26 | |
Traits | 3 | |
Classes | 102 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 102 | 100.00% |
▷ Final classes | 38 | 37.25% |
Methods | 1,048 | |
▷ Static methods | 221 | 21.09% |
▷ Public methods | 882 | 84.16% |
▷ Protected methods | 4 | 0.38% |
▷ Private methods | 162 | 15.46% |
Functions | 178 | |
▷ Named functions | 85 | 47.75% |
▷ Anonymous functions | 93 | 52.25% |
Constants | 112 | |
▷ Global constants | 45 | 40.18% |
▷ Class constants | 67 | 59.82% |
▷ Public constants | 56 | 83.58% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin