Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.26MB] [CPU: ▼5.15ms] Passed 4 tests
Server-side resources used by Piwik PRO
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 41.06 ▲2.74 |
Dashboard /wp-admin | 3.62 ▲0.31 | 47.56 ▲1.44 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 46.62 ▼0.75 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.24 | 83.68 ▼21.94 |
Media Library /wp-admin/upload.php | 3.48 ▲0.24 | 35.50 ▲0.65 |
Piwik PRO /wp-admin/options-general.php?page=piwik-pro | 3.48 | 32.60 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 54 new files
Database: no new tables, 7 new options
New WordPress options |
---|
piwik_pro |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Piwik PRO
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲60 | 14.28 ▼0.28 | 1.76 ▲0.17 | 38.51 ▼9.03 |
Dashboard /wp-admin | 2,198 ▲20 | 5.51 ▼0.22 | 82.82 ▼27.49 | 36.46 ▼7.09 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.03 ▲0.04 | 32.65 ▼2.42 | 32.61 ▼2.80 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.08 ▼0.21 | 648.79 ▼58.09 | 66.20 ▼4.95 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▲0.09 | 94.23 ▼17.88 | 42.26 ▼6.06 |
Piwik PRO /wp-admin/options-general.php?page=piwik-pro | 935 | 2.03 | 24.62 | 38.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: piwik pro, analytics, piwik, website stats, woocommerce
piwik-pro/plugin.php 92% from 13 tests
"Piwik PRO" version 1.3.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("piwik-pro.php" instead of "plugin.php")
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
No dangerous file extensions were detected1,061 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 207 | 172 | 913 |
JSON | 2 | 0 | 0 | 75 |
Markdown | 2 | 12 | 0 | 73 |
PHP code Passed 2 tests
An overview 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.79 |
Average class complexity | 20.88 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 90.00 |
Average method complexity | 2.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 7 | 11.86% |
▷ Public methods | 38 | 64.41% |
▷ Protected methods | 21 | 35.59% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 12 | 100.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin