Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.86MB] [CPU: ▼180.92ms] Passed 4 tests
An overview of server-side resources used by Tracking Inbound & Outbond traffic
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.17 | 38.24 ▲9.13 |
Dashboard /wp-admin | 2.79 ▼0.27 | 24.18 ▼35.36 |
Posts /wp-admin/edit.php | 2.79 ▼0.32 | 23.49 ▼27.27 |
Add New Post /wp-admin/post-new.php | 2.79 ▼2.64 | 27.31 ▼645.14 |
Media Library /wp-admin/upload.php | 2.79 ▼0.21 | 21.45 ▼15.90 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 13 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_ntracker |
New WordPress options |
---|
plugin_ntracker_settings |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Tracking Inbound & Outbond traffic
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,728 ▲132 | 16.09 ▲0.17 | 11.92 ▲1.06 | 47.46 ▼8.16 |
Dashboard /wp-admin | 2,992 ▲58 | 5.88 ▼0.05 | 160.92 ▼8.04 | 114.33 ▼5.03 |
Posts /wp-admin/edit.php | 2,764 ▲25 | 2.71 ▼0.01 | 72.87 ▲0.74 | 102.51 ▲10.75 |
Add New Post /wp-admin/post-new.php | 1,744 ▲129 | 15.83 ▼5.79 | 430.07 ▲78.78 | 120.60 ▲4.52 |
Media Library /wp-admin/upload.php | 1,832 ▲25 | 5.03 ▼0.02 | 164.16 ▼20.50 | 125.12 ▼0.18 |
Trackit /wp-admin/tracker.php | 26 | 0.90 | 0.09 | 10.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5495
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
Smoke tests 50% 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)
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 take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/track-site-traffic/tracker.php:466
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/tracker.php
- > Network (severe)
wp-admin/tracker.php - Failed to load resource: the server responded with a status of 404 (Not 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: incoming traffic, referal link, track site traffic, traffic count
track-site-traffic/tracker.php 92% from 13 tests
The primary PHP file in "Tracking Inbound & Outbond traffic" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("track-site-traffic.php" instead of "tracker.php")
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
There were no executable files found in this plugin455 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 86 | 50 | 347 |
CSS | 2 | 7 | 2 | 89 |
JavaScript | 3 | 0 | 1 | 19 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 19 | |
▷ Named functions | 19 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/button.png | 0.24KB | 0.22KB | ▼ 8.10% |
img/button_current.png | 0.24KB | 0.21KB | ▼ 14.98% |