90% wporigo-google-analytics

Code Review | WPOrigo Google Analytics Plugin

WordPress plugin WPOrigo Google Analytics Plugin scored90%from 54 tests.

About plugin

  • Plugin page: wporigo-google-an...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.0
  • WordPress version: 6.3.1
  • First release: Nov 21, 2014
  • Latest release: Nov 21, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: horvelod (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /571 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by WPOrigo Google Analytics Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0825.53 ▼14.83
Dashboard /wp-admin3.31 ▼0.0350.07 ▼10.50
Posts /wp-admin/edit.php3.37 ▲0.0145.03 ▼4.29
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.97 ▼0.62
Media Library /wp-admin/upload.php3.24 ▲0.0135.78 ▼1.84

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: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

WPOrigo Google Analytics Plugin: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.72 ▲0.541.75 ▼0.3542.40 ▼4.32
Dashboard /wp-admin2,214 ▲375.64 ▲0.0384.54 ▼22.4439.53 ▼5.40
Posts /wp-admin/edit.php2,116 ▲131.95 ▼0.0536.17 ▼5.4034.75 ▼0.72
Add New Post /wp-admin/post-new.php1,539 ▲1123.24 ▼0.06601.73 ▼11.7857.60 ▼7.70
Media Library /wp-admin/upload.php1,407 ▲44.21 ▲0.0196.06 ▼9.8441.38 ▼1.54

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: plugin, google analytics

wporigo-google-analytics/wporigo-ga.php 92% from 13 tests

The entry point to "WPOrigo Google Analytics Plugin" version 1.0.3 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wporigo-google-analytics.php" instead of "wporigo-ga.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected75 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2453975

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin