79% simple-easy-google-analytics

Code Review | Simple Easy Google Analytics

WordPress plugin Simple Easy Google Analytics scored 79% from 54 tests.

About plugin

  • Plugin page: simple-easy-googl...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 6.3.1
  • First release: Jul 18, 2017
  • Latest release: Jul 18, 2017
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: ifourkuldeep1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 585 total downloads

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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼0.98ms] Passed 4 tests

Server-side resources used by Simple Easy Google Analytics
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.22 ▼8.58
Dashboard /wp-admin3.36 ▲0.0645.04 ▲1.55
Posts /wp-admin/edit.php3.47 ▲0.1250.17 ▲4.73
Add New Post /wp-admin/post-new.php5.94 ▲0.0593.80 ▲1.75
Media Library /wp-admin/upload.php3.28 ▲0.0532.92 ▲1.38

Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Simple Easy Google Analytics: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲19013.62 ▼0.735.15 ▲3.1041.93 ▲1.26
Dashboard /wp-admin2,222 ▲345.85 ▲0.96110.04 ▲3.4038.70 ▼4.56
Posts /wp-admin/edit.php2,105 ▲162.01 ▲0.0139.75 ▲5.0738.62 ▲1.30
Add New Post /wp-admin/post-new.php1,533 ▲523.43 ▲5.28579.81 ▼41.2351.16 ▼4.23
Media Library /wp-admin/upload.php1,404 ▲194.20 ▲0.0196.16 ▼1.5641.93 ▼4.66

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/simple-easy-google-analytics/public/partials/simple-easy-google-analytics-public-display.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-easy-google-analytics/admin/partials/simple-easy-google-analytics-admin-display.php:16

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 Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: analytics, google analytics

simple-easy-google-analytics/simple-easy-google-analytics.php Passed 13 tests

The main PHP script in "Simple Easy Google Analytics" version 1.0.0 is automatically included on every request by WordPress
128 characters long description:
Simple Easy Google Analytics plugin enables you to track your site using the latest Google Analytics tracking code or client ID.

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
Success! There were no dangerous files found in this plugin322 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12118488315
JavaScript24277
CSS2080

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity1.71
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.19
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods26
▷ Static methods27.69%
▷ Public methods2076.92%
▷ Protected methods00.00%
▷ Private methods623.08%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin