94% carolyn-google-analytics

Code Review | Carolyn Google Analytics

WordPress plugin Carolyn Google Analytics scored 94% from 53 tests.

About plugin

  • Plugin page: carolyn-google-an...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.4
  • WordPress version: 5.8.1
  • First release: Nov 11, 2012
  • Latest release: Nov 11, 2012
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: MartySpellerberg (100%)

Code review

53 tests

User reviews

1 review

Install metrics

20+ active / 1,205 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1239.79 ▲15.62
Dashboard /wp-admin3.07 ▲0.0148.37 ▲0.77
Posts /wp-admin/edit.php3.12 ▲0.0141.75 ▼4.49
Add New Post /wp-admin/post-new.php5.43 ▲0.00108.38 ▼1,074.87
Media Library /wp-admin/upload.php3.01 ▲0.0036.47 ▼16.48
Google Analytics /wp-admin/options-general.php?page=carolyn_google_analytics2.9832.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,654 ▲7215.85 ▲0.337.77 ▼0.2645.23 ▲0.80
Dashboard /wp-admin2,935 ▲825.90 ▼0.02147.83 ▲5.01102.82 ▲8.62
Posts /wp-admin/edit.php2,711 ▲52.69 ▲0.0070.07 ▲0.4085.83 ▲2.22
Add New Post /wp-admin/post-new.php1,659 ▲318.36 ▲1.32383.22 ▲5.17109.32 ▼1.30
Media Library /wp-admin/upload.php1,780 ▲85.00 ▼0.02162.95 ▲1.43107.20 ▼11.25
Google Analytics /wp-admin/options-general.php?page=carolyn_google_analytics9932.2261.6857.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

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


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:
LanguageFilesBlank linesComment linesLines of code

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 code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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