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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼7.61ms] Passed 4 tests
Analyzing server-side resources used by Traki Analytics
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 27.12 ▼12.17 |
Dashboard /wp-admin | 3.37 ▲0.06 | 44.25 ▼1.63 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 61.26 ▲15.14 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 80.77 ▼14.93 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 32.99 ▼1.71 |
Traki Analytics /wp-admin/options-general.php?page=traki-analytics | 3.26 | 28.71 |
Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Traki Analytics: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.67 ▼1.11 | 1.85 ▲0.12 | 45.93 ▲5.64 |
Dashboard /wp-admin | 2,211 ▲23 | 5.84 ▲0.94 | 103.66 ▼18.51 | 36.80 ▼9.59 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 2.05 ▼0.00 | 40.26 ▲0.02 | 36.47 ▲2.65 |
Add New Post /wp-admin/post-new.php | 1,524 ▼11 | 17.86 ▼5.22 | 668.03 ▲19.46 | 58.45 ▲4.14 |
Media Library /wp-admin/upload.php | 1,399 ▲14 | 4.21 ▼0.04 | 110.25 ▲6.69 | 47.02 ▲3.52 |
Traki Analytics /wp-admin/options-general.php?page=traki-analytics | 794 | 2.06 | 23.10 | 26.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=traki-analytics
- > Notice in wp-content/plugins/traki-analytics/admin/partials/traki-analytics-admin-display.php+26
Trying to access array offset on value of type bool
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/traki-analytics/public/partials/traki-analytics-public-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/traki-analytics/admin/partials/traki-analytics-admin-display.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid URI found ("www.traki.co.uk")
traki-analytics/traki-analytics.php Passed 13 tests
"Traki Analytics" version 1.0.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
121 characters long description:
Website analytics you'll actually understand. This plugin allows you to link up your WordPress site with Traki Analytics.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin264 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 143 | 549 | 258 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
This is a very shot review of 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.13 |
Average class complexity | 2.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.24% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin