Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼1.18ms] Passed 4 tests
A check of server-side resources used by NK Google Analytics
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 39.53 ▼4.73 |
Dashboard /wp-admin | 3.39 ▲0.08 | 48.01 ▼4.97 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 52.79 ▲3.85 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 95.95 ▲1.18 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 41.07 ▲3.82 |
NK Google Analytics /wp-admin/options-general.php?page=NKgoogleanalytics | 3.34 | 37.57 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 22 new options
New WordPress options |
---|
nkweb_Custom_js |
widget_recent-comments |
nkweb_Custom_Values |
nkweb_id |
nkweb_fingerprintjs |
widget_theysaidso_widget |
widget_recent-posts |
nkweb_analytics_type |
nkweb_Use_Custom |
nkweb_track_login_and_register |
... |
Browser metrics Passed 4 tests
NK Google Analytics: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 14.75 ▲0.40 | 1.85 ▲0.09 | 41.75 ▼2.69 |
Dashboard /wp-admin | 2,197 ▲20 | 5.59 ▲0.06 | 82.97 ▼16.50 | 36.04 ▼9.16 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.04 ▲0.09 | 41.31 ▲4.81 | 38.06 ▲3.23 |
Add New Post /wp-admin/post-new.php | 6,367 ▲4,839 | 26.08 ▲2.93 | 893.12 ▲199.60 | 56.01 ▲3.88 |
Media Library /wp-admin/upload.php | 1,405 ▲2 | 4.42 ▲0.17 | 104.91 ▼0.19 | 48.59 ▲3.74 |
NK Google Analytics /wp-admin/options-general.php?page=NKgoogleanalytics | 1,174 | 1.68 | 30.53 | 26.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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 items
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/nk-google-analytics/admin/options.php
- > /wp-content/plugins/nk-google-analytics/admin/save_metabox.php
- > /wp-content/plugins/nk-google-analytics/options.php
- > /wp-content/plugins/nk-google-analytics/NKgoogleanalytics.php
- > /wp-content/plugins/nk-google-analytics/admin/metabox.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
- Requires at least: Version format is invalid
- Donate link: Invalid URI found ("#")
nk-google-analytics/NKgoogleanalytics.php 92% from 13 tests
The entry point to "NK Google Analytics" version 1.6.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("nk-google-analytics.php" instead of "NKgoogleanalytics.php")
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
There were no executable files found in this plugin1,223 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 229 | 59 | 893 |
PO File | 3 | 62 | 66 | 207 |
CSS | 1 | 11 | 0 | 87 |
JavaScript | 2 | 0 | 0 | 35 |
HTML | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 80.64KB | 24.64KB | ▼ 69.45% |
screenshot-1.png | 16.42KB | 6.32KB | ▼ 61.49% |
screenshot-2.png | 12.49KB | 5.35KB | ▼ 57.11% |
screenshot-3.png | 24.18KB | 9.22KB | ▼ 61.85% |