Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼273.77ms] Passed 4 tests
This is a short check of server-side resources used by Carolyn Google Analytics
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 39.79 ▲15.62 |
Dashboard /wp-admin | 3.07 ▲0.01 | 48.37 ▲0.77 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 41.75 ▼4.49 |
Add New Post /wp-admin/post-new.php | 5.43 ▲0.00 | 108.38 ▼1,074.87 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 36.47 ▼16.48 |
Google Analytics /wp-admin/options-general.php?page=carolyn_google_analytics | 2.98 | 32.38 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Carolyn Google Analytics
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,654 ▲72 | 15.85 ▲0.33 | 7.77 ▼0.26 | 45.23 ▲0.80 |
Dashboard /wp-admin | 2,935 ▲82 | 5.90 ▼0.02 | 147.83 ▲5.01 | 102.82 ▲8.62 |
Posts /wp-admin/edit.php | 2,711 ▲5 | 2.69 ▲0.00 | 70.07 ▲0.40 | 85.83 ▲2.22 |
Add New Post /wp-admin/post-new.php | 1,659 ▲3 | 18.36 ▲1.32 | 383.22 ▲5.17 | 109.32 ▼1.30 |
Media Library /wp-admin/upload.php | 1,780 ▲8 | 5.00 ▼0.02 | 162.95 ▲1.43 | 107.20 ▼11.25 |
Google Analytics /wp-admin/options-general.php?page=carolyn_google_analytics | 993 | 2.22 | 61.68 | 57.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
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
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/carolyn-google-analytics/carolyn-analytics.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: analytics, google analytics, google, statistics, javascript...
carolyn-google-analytics/carolyn-analytics.php 92% from 13 tests
The entry point to "Carolyn Google Analytics" version 0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("carolyn-google-analytics.php" instead of "carolyn-analytics.php")
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
No dangerous file extensions were detected35 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 17 | 9 | 35 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
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 | 3 | |
▷ Named functions | 3 | 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 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin