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.05MB] [CPU: ▼3.46ms] Passed 4 tests
Analyzing server-side resources used by Admitad Tracking
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.05 ▲4.03 |
Dashboard /wp-admin | 3.36 ▲0.06 | 43.31 ▼8.08 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 47.85 ▲4.67 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 83.26 ▼11.89 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 36.49 ▲2.12 |
Admitad tracking /wp-admin/options-general.php?page=admitadtracking | 3.25 | 30.03 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Admitad Tracking
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.26 ▼1.17 | 1.78 ▲0.03 | 43.06 ▼0.57 |
Dashboard /wp-admin | 2,210 ▲22 | 5.89 ▲1.05 | 104.00 ▼16.50 | 38.51 ▼4.09 |
Posts /wp-admin/edit.php | 2,090 ▲4 | 2.01 ▼0.00 | 35.82 ▼0.65 | 33.31 ▼3.13 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.21 ▲2.09 | 618.99 ▼25.96 | 53.98 ▲2.59 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.22 ▲0.10 | 97.25 ▼2.86 | 42.83 ▼1.05 |
Admitad tracking /wp-admin/options-general.php?page=admitadtracking | 803 | 2.06 | 24.37 | 25.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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 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/ActionsTab.php:8
- > 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
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/RevisionTab.php:7
- > PHP Fatal error
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)
Everything seems fine, but this is not an exhaustive test
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: admitad, integration
admitad-tracking/admitadtracking.php 85% from 13 tests
The primary PHP file in "Admitad Tracking" version 1.0.7 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("admitad-tracking.php" instead of "admitadtracking.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous 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 is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin