Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼5.38ms] Passed 4 tests
Analyzing server-side resources used by Analytics Head
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.81 ▼2.73 |
Dashboard /wp-admin | 3.43 ▲0.12 | 51.05 ▼0.49 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 44.90 ▼1.18 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 101.65 ▼17.11 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 33.97 ▲1.63 |
Google Analytics Head /wp-admin/options-general.php?page=phylax_plugin_analytics_head | 3.32 | 30.58 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
phylax_plugin-analytics_head |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Analytics Head: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲65 | 13.18 ▼1.46 | 1.69 ▼0.17 | 44.64 ▼0.77 |
Dashboard /wp-admin | 2,217 ▲29 | 5.77 ▼0.12 | 96.20 ▼21.03 | 39.86 ▼8.97 |
Posts /wp-admin/edit.php | 2,081 ▼11 | 2.05 ▲0.04 | 35.43 ▼0.28 | 32.87 ▼0.51 |
Add New Post /wp-admin/post-new.php | 1,552 ▲23 | 18.34 ▲0.03 | 591.48 ▼64.16 | 48.69 ▲1.69 |
Media Library /wp-admin/upload.php | 1,393 ▲8 | 4.23 ▼0.08 | 98.06 ▼7.33 | 42.74 ▼10.63 |
Google Analytics Head /wp-admin/options-general.php?page=phylax_plugin_analytics_head | 862 | 2.30 | 21.95 | 27.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 6× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/analytics-head/inc/admin.php
- > /wp-content/plugins/analytics-head/inc/plugin.php
- > /wp-content/plugins/analytics-head/inc/install.php
- > /wp-content/plugins/analytics-head/inc/options.php
- > /wp-content/plugins/analytics-head/analytics_head.php
- > /wp-content/plugins/analytics-head/inc/remove.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
analytics-head/analytics_head.php 85% from 13 tests
The primary PHP file in "Analytics Head" version 1.6.7 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 299 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("analytics-head.php" instead of "analytics_head.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected547 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 80 | 325 | 450 |
PO File | 1 | 30 | 52 | 97 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 18.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 3.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 1 | 2.86% |
▷ Public methods | 26 | 74.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 25.71% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.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
There were not PNG files found in your plugin