Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/iq-inhead-analytics/includes/load.php+17
Use of undefined constant IQA_ABSPATH - assumed 'IQA_ABSPATH' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.96MB] [CPU: ▼54.52ms] Passed 4 tests
An overview of server-side resources used by IQ Analytics Tracking Code In Head
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.95 ▼37.42 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.65 ▼49.82 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.55 ▼42.72 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.47 ▼88.11 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.64 ▼31.81 |
IQ Analytics /wp-admin/options-general.php?page=iq-inhead-analytics | 2.05 | 5.69 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by IQ Analytics Tracking Code In Head
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲43 | 14.33 ▼0.19 | 2.19 ▲0.23 | 40.85 ▲0.94 |
Dashboard /wp-admin | 2,199 ▲25 | 5.59 ▼0.02 | 84.60 ▼26.75 | 43.43 ▲0.54 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.04 ▲0.08 | 40.09 ▲1.68 | 36.70 ▲3.01 |
Add New Post /wp-admin/post-new.php | 1,531 ▼4 | 23.38 ▲5.28 | 664.17 ▲5.53 | 60.49 ▼2.56 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.25 ▲0.06 | 95.20 ▼10.87 | 43.66 ▼1.52 |
IQ Analytics /wp-admin/options-general.php?page=iq-inhead-analytics | 824 | 2.03 | 23.88 | 26.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/iq-inhead-analytics/includes/load.php+17
Use of undefined constant IQA_ABSPATH - assumed 'IQA_ABSPATH' (this will throw an Error in a future version of PHP)
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=iq-inhead-analytics
- > Warning in wp-content/plugins/iq-inhead-analytics/includes/load.php+17
Use of undefined constant IQA_ABSPATH - assumed 'IQA_ABSPATH' (this will throw an Error in a future version of PHP)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=iq-inhead-analytics
- > Warning in wp-includes/option.php+2467
Illegal offset type
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 take a closer look at the following
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/iq-inhead-analytics/settings.ctp.php
- > /wp-content/plugins/iq-inhead-analytics/iq-inhead-analytics.php
- > /wp-content/plugins/iq-inhead-analytics/includes/load.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Analytics tracking script inline in head.
), #2 (Plugin options page for visibility options and adding your tracking code.
)
iq-inhead-analytics/iq-inhead-analytics.php Passed 13 tests
The primary PHP file in "IQ Analytics Tracking Code In Head" version 0.2.1 is used by WordPress to initiate all plugin functionality
55 characters long description:
Copy and paste your Analytics tracking code. Thats all.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin166 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 51 | 47 | 166 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 14.29% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 34.00KB | 17.22KB | ▼ 49.34% |
screenshot-1.png | 43.58KB | 19.07KB | ▼ 56.23% |