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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.25MB] [CPU: ▼291.92ms] Passed 4 tests
An overview of server-side resources used by Admitad Tracking
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.56 | 53.59 ▲25.65 |
Dashboard /wp-admin | 3.65 ▲0.24 | 36.40 ▲3.68 |
Posts /wp-admin/edit.php | 3.88 ▲0.23 | 41.62 ▲2.96 |
Add New Post /wp-admin/post-new.php | 7.18 ▲0.20 | 94.97 ▼1,178.93 |
Media Library /wp-admin/upload.php | 3.60 ▲0.30 | 28.76 ▲4.63 |
Admitad tracking /wp-admin/options-general.php?page=admitadtracking | 3.57 | 26.03 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Admitad Tracking
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲14 | 16.21 ▲0.30 | 6.01 ▼0.33 | 2.44 ▲0.26 |
Dashboard /wp-admin | 2,897 ▲36 | 6.18 ▼0.08 | 118.50 ▼18.57 | 156.72 ▼3.21 |
Posts /wp-admin/edit.php | 2,662 ▼29 | 3.24 ▼0.00 | 65.58 ▲2.18 | 140.24 ▼2.02 |
Add New Post /wp-admin/post-new.php | 1,755 ▲44 | 21.57 ▲0.04 | 453.71 ▲19.73 | 159.89 ▼2.14 |
Media Library /wp-admin/upload.php | 1,703 ▲2 | 5.53 ▲0.01 | 139.10 ▼1.60 | 184.14 ▼3.74 |
Admitad tracking /wp-admin/options-general.php?page=admitadtracking | 1,037 | 2.50 | 53.05 | 124.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
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 no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please fix the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Admitad\\Tab\\Tab' not found in wp-content/plugins/admitad-tracking/src/Admitad/Tab/RevisionTab.php:7
- > PHP Fatal error
Uncaught Error: Class 'Admitad\\Tab\\Tab' not found in wp-content/plugins/admitad-tracking/src/Admitad/Tab/ActionsTab.php:8
- > PHP Fatal error
Uncaught Error: Class 'Admitad\\Tab\\Tab' not found in wp-content/plugins/admitad-tracking/src/Admitad/Tab/AuthTab.php:7
- > PHP Fatal error
Uncaught Error: Class 'Admitad\\Tab\\Tab' not found in wp-content/plugins/admitad-tracking/src/Admitad/Tab/MainTab.php:7
- > 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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: integration, admitad
admitad-tracking/admitadtracking.php 85% from 13 tests
"Admitad Tracking" version 1.0.7'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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("admitad-tracking.php" instead of "admitadtracking.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,491 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 377 | 243 | 1,429 |
PO File | 1 | 25 | 30 | 62 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 13.93 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 123 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 83 | 67.48% |
▷ Protected methods | 37 | 30.08% |
▷ Private methods | 3 | 2.44% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin