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
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.20ms] Passed 4 tests
This is a short check of server-side resources used by Analytics Cat - Google Analytics Made Easy
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.17 ▲0.81 |
Dashboard /wp-admin | 3.32 ▼0.03 | 50.42 ▼15.40 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.35 ▼5.59 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 89.68 ▼15.29 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.32 ▼0.50 |
Google Analytics Manager /wp-admin/options-general.php?page=fca_ga_settings_page | 3.21 | 31.70 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
fca_ga_show_ga4_notice |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Analytics Cat - Google Analytics Made Easy
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲91 | 14.26 ▼0.10 | 1.84 ▲0.10 | 39.78 ▼1.53 |
Dashboard /wp-admin | 2,248 ▲68 | 5.68 ▲0.07 | 83.14 ▼4.92 | 73.63 ▲32.73 |
Posts /wp-admin/edit.php | 2,150 ▲50 | 2.18 ▲0.17 | 35.65 ▼4.42 | 34.62 ▲2.40 |
Add New Post /wp-admin/post-new.php | 1,595 ▲57 | 18.17 ▼4.99 | 670.00 ▼0.63 | 55.20 ▲1.68 |
Media Library /wp-admin/upload.php | 1,450 ▲50 | 4.20 ▲0.03 | 109.95 ▲0.14 | 66.32 ▲19.19 |
Google Analytics Manager /wp-admin/options-general.php?page=fca_ga_settings_page | 964 | 2.18 | 37.31 | 28.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- fca_ga_show_ga4_notice
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/analytics-cat/languages/index.php
- > /wp-content/plugins/analytics-cat/fca-ga.php
- 3× 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/analytics-cat/includes/editor/editor.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/analytics-cat/includes/api.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/analytics-cat/includes/notices/notices.php:19
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Please add an image for screenshot #1 (Analytics Cat - Google Analytics for WordPress settings screen)
analytics-cat/fca-ga.php 85% from 13 tests
The main PHP script in "Analytics Cat - Google Analytics Made Easy" version 1.1.2 is automatically included on every request by WordPress
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("analytics-cat.php" instead of "fca-ga.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected482 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 131 | 33 | 345 |
CSS | 6 | 7 | 1 | 89 |
JavaScript | 6 | 8 | 2 | 46 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.15MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/googlecat_icon128_128_360.png | 24.66KB | 6.88KB | ▼ 72.09% |
assets/icon.png | 0.73KB | 0.60KB | ▼ 17.38% |
assets/googlecat_icon256_256_360.png | 73.46KB | 18.88KB | ▼ 74.30% |
screenshot-1.png | 40.18KB | 40.33KB | 0.00% |
assets/fatcatapps-logo-text.png | 16.24KB | 4.88KB | ▼ 69.97% |