Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.45ms] Passed 4 tests
An overview of server-side resources used by Analytics Buddy
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.88 ▼1.69 |
Dashboard /wp-admin | 3.35 ▲0.05 | 74.39 ▲24.15 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 47.88 ▲0.73 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 85.11 ▼8.38 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 32.15 ▼0.44 |
Analytics Buddy /wp-admin/options-general.php?page=analytics_buddy | 3.24 | 28.89 |
Server storage [IO: ▲0.09MB] [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: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
anbu_review_message_trigger |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Analytics Buddy
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.12 ▼1.47 | 1.62 ▼0.22 | 45.00 ▲0.39 |
Dashboard /wp-admin | 2,210 ▲25 | 4.85 ▼0.05 | 110.71 ▲6.51 | 43.04 ▲1.96 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.06 | 41.27 ▲6.43 | 37.22 ▲5.79 |
Add New Post /wp-admin/post-new.php | 1,523 ▼19 | 23.24 ▲5.11 | 677.64 ▲80.79 | 56.08 ▼10.70 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.21 ▲0.01 | 94.51 ▼1.86 | 40.03 ▼1.53 |
Analytics Buddy /wp-admin/options-general.php?page=analytics_buddy | 805 | 2.03 | 25.63 | 29.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test
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)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: google, tracking, do not track, analytics
analytics-buddy/analytics-buddy.php Passed 13 tests
Analyzing the main PHP file in "Analytics Buddy" version 1.0.2
52 characters long description:
Quickly and easily add Google Analytics to your site
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin234 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 34 | 164 | 219 |
Markdown | 1 | 7 | 0 | 15 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 4.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 8 | 44.44% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 56.58KB | 19.28KB | ▼ 65.93% |