84% ga-made-simple

Code Review | GA Made Simple by Devictio

WordPress plugin GA Made Simple by Devictio scored 84% from 54 tests.

About plugin

  • Plugin page: ga-made-simple
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.0
  • WordPress version: 6.3.1
  • First release: Jan 17, 2014
  • Latest release: Sep 17, 2014
  • Number of updates: 17
  • Update frequency: every 14.3 days
  • Top authors: nicoss01 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,234 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.13MB] [CPU: ▼7.75ms] Passed 4 tests

Server-side resources used by GA Made Simple by Devictio
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▼0.0341.65 ▼13.06
Dashboard /wp-admin3.31 ▲0.0151.54 ▼0.12
Posts /wp-admin/edit.php3.36 ▼0.4849.56 ▼8.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.92 ▼9.12
Media Library /wp-admin/upload.php3.24 ▲0.0037.50 ▲6.33

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for GA Made Simple by Devictio
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲4813.37 ▼1.011.73 ▼0.3038.76 ▼6.49
Dashboard /wp-admin2,219 ▲285.82 ▲0.77104.06 ▼14.1239.13 ▼7.03
Posts /wp-admin/edit.php2,105 ▲162.06 ▲0.0538.36 ▼1.9934.81 ▲0.16
Add New Post /wp-admin/post-new.php1,555 ▲2718.32 ▼4.65593.07 ▼81.4061.26 ▲2.52
Media Library /wp-admin/upload.php1,401 ▲104.27 ▲0.0594.97 ▼2.9343.86 ▲0.68

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/ga-made-simple/ga-made-simple.php:55

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Donate link: Invalid URI found ("")
The official readme.txt is a good inspiration

ga-made-simple/ga-made-simple.php Passed 13 tests

"GA Made Simple by Devictio" version 2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
39 characters long description:
Add Google Analytics code on each pages

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 detected262 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP110423160
PO File23284102

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin