Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼292.18ms] Passed 4 tests
Analyzing server-side resources used by Mailster Piwik
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.06 | 54.21 ▲3.97 |
Dashboard /wp-admin | 3.46 ▲0.05 | 36.89 ▲4.92 |
Posts /wp-admin/edit.php | 3.69 ▲0.05 | 38.18 ▲0.77 |
Add New Post /wp-admin/post-new.php | 6.93 ▼0.04 | 93.46 ▼1,175.24 |
Media Library /wp-admin/upload.php | 3.34 ▲0.05 | 25.53 ▲1.79 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Mailster Piwik
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,807 ▲53 | 15.61 ▲0.02 | 6.10 ▲0.25 | 2.83 ▲0.51 |
Dashboard /wp-admin | 2,907 ▲53 | 5.96 ▼0.22 | 120.87 ▼12.74 | 155.68 ▼3.16 |
Posts /wp-admin/edit.php | 2,706 ▲12 | 3.24 ▼0.12 | 63.14 ▼0.13 | 140.10 ▲2.06 |
Add New Post /wp-admin/post-new.php | 1,768 ▲8 | 22.80 ▲5.80 | 424.21 ▼22.60 | 155.38 ▼7.77 |
Media Library /wp-admin/upload.php | 1,713 ▲15 | 5.52 ▲0.01 | 145.06 ▲3.55 | 187.25 ▼0.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mailster-piwik/mailster-piwik.php:21
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: piwik, tracking, analytics, mailster
mailster-piwik/mailster-piwik.php Passed 13 tests
The primary PHP file in "Mailster Piwik" version 1.0 is used by WordPress to initiate all plugin functionality
118 characters long description:
Integrates Piwik Analytics with Mailster Newsletter Plugin to track your clicks with the open source Analytics service
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin229 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 78 | 69 | 229 |
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.29 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected