79% super-simple-google-analytics-lite

Code Review | Super Simple Google Analytics Lite

WordPress plugin Super Simple Google Analytics Lite scored79%from 54 tests.

About plugin

  • Plugin page: super-simple-goog...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9.1
  • WordPress version: 6.3.1
  • First release: Sep 21, 2017
  • Latest release: Dec 5, 2017
  • Number of updates: 5
  • Update frequency: every 15.8 days
  • Top authors: 5fifty (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /693 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.13ms] Passed 4 tests

An overview of server-side resources used by Super Simple Google Analytics Lite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.99 ▼13.66
Dashboard /wp-admin3.32 ▲0.0148.81 ▼10.35
Posts /wp-admin/edit.php3.37 ▲0.0153.19 ▲3.90
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.50 ▲1.71
Media Library /wp-admin/upload.php3.24 ▲0.0136.95 ▼2.22
Super Simple Google Analytics /wp-admin/options-general.php?page=ssga3.1832.57

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
ssga_tracking_code
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Super Simple Google Analytics Lite
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.77 ▲0.2125.05 ▲23.4542.81 ▼8.52
Dashboard /wp-admin2,196 ▲225.59 ▲0.0694.88 ▲6.5742.35 ▼0.54
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0439.77 ▲5.1235.96 ▼1.42
Add New Post /wp-admin/post-new.php1,529 ▲323.35 ▼0.38632.24 ▼16.8156.10 ▲0.44
Media Library /wp-admin/upload.php1,404 ▲44.14 ▲0.00105.93 ▼10.8744.06 ▼4.08
Super Simple Google Analytics /wp-admin/options-general.php?page=ssga8171.9928.6128.28

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
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • ssga_tracking_code
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=ssga
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=ssga
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-simple-google-analytics-lite/super-simple-google-analytics-lite.php:17

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 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
6 plugin tags: simple google analytics, easy google analytics, super simple google analytics, google analytics, super easy google analytics...

super-simple-google-analytics-lite/super-simple-google-analytics-lite.php Passed 13 tests

This is the main PHP file of "Super Simple Google Analytics Lite" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
68 characters long description:
The simplest way to add Google analytics to your site with no bloat.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin41 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1101241

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin