Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼4.53ms] Passed 4 tests
A check of server-side resources used by WP Analytics Tag Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 38.90 ▼2.34 |
Dashboard /wp-admin | 3.41 ▲0.10 | 46.45 ▼2.84 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 46.07 ▼4.31 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 88.88 ▼8.62 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 37.52 ▲4.92 |
Add New /wp-admin/post-new.php?post_type=wp-ana-tag-manager | 3.45 | 50.17 |
WP Analytics Tag Manager /wp-admin/edit.php?post_type=wp-ana-tag-manager | 3.37 | 37.53 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Analytics Tag Manager
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 14.47 ▲0.10 | 1.66 ▼0.15 | 40.55 ▼1.01 |
Dashboard /wp-admin | 2,236 ▲48 | 4.88 ▼0.11 | 96.30 ▼8.04 | 37.29 ▼6.22 |
Posts /wp-admin/edit.php | 2,113 ▲21 | 1.99 ▼0.02 | 36.37 ▼6.74 | 33.07 ▼3.52 |
Add New Post /wp-admin/post-new.php | 1,542 ▼0 | 23.16 ▲4.68 | 607.00 ▼15.22 | 58.85 ▼0.57 |
Media Library /wp-admin/upload.php | 1,412 ▲21 | 4.17 ▼0.02 | 97.43 ▲0.98 | 42.26 ▲0.13 |
Add New /wp-admin/post-new.php?post_type=wp-ana-tag-manager | 2,389 | 7.77 | 178.79 | 38.49 |
WP Analytics Tag Manager /wp-admin/edit.php?post_type=wp-ana-tag-manager | 1,080 | 1.99 | 31.06 | 29.45 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-analytics-tag-manager/wp-analytics-tag-manager.php:30
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: google, tag manager, tag management, analytics
wp-analytics-tag-manager/wp-analytics-tag-manager.php 92% from 13 tests
The main file in "WP Analytics Tag Manager" v. 0.7.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin489 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 54 | 255 | 357 |
PO File | 1 | 32 | 45 | 71 |
JavaScript | 1 | 2 | 9 | 44 |
CSS | 1 | 6 | 15 | 17 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 14.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 3 | 12.00% |
▷ Public methods | 24 | 96.00% |
▷ Protected methods | 1 | 4.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin