Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▲0.20ms] Passed 4 tests
Server-side resources used by simple google analytics by webexpert
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 43.62 ▲2.87 |
Dashboard /wp-admin | 3.35 ▲0.04 | 55.49 ▲5.93 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 53.99 ▼3.57 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 90.00 ▼2.86 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 39.49 ▲4.35 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by simple google analytics by webexpert
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.06 ▼0.34 | 1.85 ▼0.02 | 42.47 ▲2.57 |
Dashboard /wp-admin | 2,198 ▲21 | 5.76 ▲0.14 | 94.39 ▲1.03 | 77.98 ▲38.18 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 2.02 ▲0.03 | 34.50 ▼6.16 | 35.26 ▼2.75 |
Add New Post /wp-admin/post-new.php | 1,554 ▲17 | 23.36 ▲5.13 | 792.31 ▲157.30 | 53.14 ▼6.28 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.19 ▼0.04 | 100.84 ▼4.84 | 65.25 ▲21.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/simple-google-analytics-by-webexpert/google_analytics_pro.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Admin Menu), #2 (Settings Page)
simple-google-analytics-by-webexpert/google_analytics_pro.php 85% from 13 tests
Analyzing the main PHP file in "simple google analytics by webexpert" version 1.1.0
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("simple-google-analytics-by-webexpert.php" instead of "google_analytics_pro.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 282 characters long)
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
Everything looks great! No dangerous files found in this plugin3,598 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 357 | 216 | 2,144 |
PHP | 11 | 296 | 210 | 1,294 |
JavaScript | 2 | 16 | 2 | 107 |
PO File | 1 | 20 | 21 | 53 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 36.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 173.00 |
Average method complexity | 4.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 72 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/welogomed.png | 2.49KB | 1.27KB | ▼ 48.96% |
screenshot/screenshot-1.png | 24.00KB | 7.21KB | ▼ 69.94% |
assets/images/placeholder.png | 2.75KB | 2.92KB | 0.00% |
(invalid) assets/images/question_mark.png | 0.86KB | 0.00KB | ▼ 100.00% |
screenshot/screenshot-2.png | 40.23KB | 23.41KB | ▼ 41.80% |