89% io-engagement-analytics

Code Review | Plugin for Google Analytics by IO technologies

WordPress plugin Plugin for Google Analytics by IO technologies scored89%from 54 tests.

About plugin

  • Plugin page: io-engagement-ana...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.0-5.4.1
  • WordPress version: 6.3.1
  • First release: Mar 25, 2020
  • Latest release: Jul 13, 2020
  • Number of updates: 14
  • Update frequency: every 7.9 days
  • Top authors: engagementanalytics (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /54,960 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Plugin for Google Analytics by IO technologies
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.68 ▼2.55
Dashboard /wp-admin3.33 ▼0.0145.02 ▼11.61
Posts /wp-admin/edit.php3.38 ▲0.0349.64 ▲3.18
Add New Post /wp-admin/post-new.php5.93 ▲0.0589.95 ▼4.24
Media Library /wp-admin/upload.php3.26 ▲0.0336.74 ▼1.39

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: 2 new tables, 6 new options
New tables
wp_io_stats_daily
wp_io_stats_rt
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Plugin for Google Analytics by IO technologies: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,927 ▲16613.53 ▼0.8211.89 ▲9.7042.87 ▼9.77
Dashboard /wp-admin2,226 ▲465.63 ▼0.2190.03 ▲5.9940.87 ▲2.25
Posts /wp-admin/edit.php2,129 ▲292.03 ▼0.0138.65 ▼3.1436.10 ▲2.71
Add New Post /wp-admin/post-new.php1,560 ▲2418.12 ▼0.19602.40 ▲1.7066.53 ▼1.06
Media Library /wp-admin/upload.php1,428 ▲284.20 ▼0.0293.75 ▼6.0943.25 ▲0.12

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: wordpress analytics, analytics, google analytics widget, google analytics dashboard, google analytics

io-engagement-analytics/io.php 85% from 13 tests

"Plugin for Google Analytics by IO technologies" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 155 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("io-engagement-analytics.php" instead of "io.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,009 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP815746635
CSS1737320
JavaScript212654

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.31
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%
Functions14
▷ Named functions857.14%
▷ Anonymous functions642.86%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 0% from 2 tests

Image compression 0% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.84MB with 0.71MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) assets/._screenshot-2.png0.67KB0.00KB▼ 100.00%
assets/screenshot-2.png517.53KB195.15KB▼ 62.29%
assets/screenshot-1.png344.71KB93.07KB▼ 73.00%
(invalid) assets/._screenshot-1.png0.67KB0.00KB▼ 100.00%