93% jijnasu-google-analytics

Code Review | Jijnasu Google Analytics

WordPress plugin Jijnasu Google Analytics scored 93% from 54 tests.

About plugin

  • Plugin page: jijnasu-google-an...
  • Plugin version: 1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.6.1
  • WordPress version: 5.8.1
  • First release: Oct 22, 2016
  • Latest release: Oct 22, 2016
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: avastava (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 316 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼139.95ms] Passed 4 tests

Server-side resources used by Jijnasu Google Analytics
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0237.26 ▲2.50
Dashboard /wp-admin3.08 ▲0.0354.56 ▲10.53
Posts /wp-admin/edit.php3.13 ▲0.0343.82 ▼3.77
Add New Post /wp-admin/post-new.php5.44 ▲0.0192.03 ▼563.16
Media Library /wp-admin/upload.php3.02 ▲0.0240.83 ▲4.63
Jijnasu GA /wp-admin/options-general.php?page=jijnasu-google-analytics2.9932.64

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Jijnasu Google Analytics: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,690 ▲11816.06 ▲0.4324.57 ▲15.4044.58 ▼3.34
Dashboard /wp-admin2,972 ▲415.89 ▼0.05149.06 ▲0.51108.50 ▼3.40
Posts /wp-admin/edit.php2,744 ▲52.71 ▼0.0266.69 ▼0.4889.50 ▼7.12
Add New Post /wp-admin/post-new.php1,686 ▲318.14 ▼0.24416.13 ▲1.82104.65 ▼5.18
Media Library /wp-admin/upload.php1,812 ▲55.05 ▲0.09168.95 ▲2.96151.49 ▲17.89
Jijnasu GA /wp-admin/options-general.php?page=jijnasu-google-analytics1,0492.2261.2694.35

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
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
Good news, no errors were detected

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
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/jijnasu-google-analytics/jijnasu-google-analytics.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #1 (Jijnasu Google Analytics Settings page.)
Please take inspiration from this readme.txt

jijnasu-google-analytics/jijnasu-google-analytics.php 77% from 13 tests

"Jijnasu Google Analytics" version 1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "1")

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
There were no executable files found in this plugin93 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1163793

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions10
▷ Named functions10100.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
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png45.83KB19.57KB▼ 57.30%