90% engauge-analytics

Code Review | Engauge Analytics

WordPress plugin Engauge Analytics scored90%from 54 tests.

About plugin

  • Plugin page: engauge-analytics
  • Plugin version: 1.6
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.3
  • WordPress version: 6.3.1
  • First release: Sep 6, 2018
  • Latest release: Nov 1, 2019
  • Number of updates: 19
  • Update frequency: every 22.2 days
  • Top authors: dougblackjr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /822 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
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼8.26ms] Passed 4 tests

An overview of server-side resources used by Engauge Analytics
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0839.17 ▼4.42
Dashboard /wp-admin3.40 ▲0.0954.91 ▲0.36
Posts /wp-admin/edit.php3.51 ▲0.1553.09 ▼3.47
Add New Post /wp-admin/post-new.php5.98 ▲0.0995.00 ▼18.82
Media Library /wp-admin/upload.php3.32 ▲0.0941.35 ▼6.33
Engauge Analytics /wp-admin/options-general.php?page=engauge-analytics3.3136.67

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Engauge Analytics
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲1014.23 ▲0.122.25 ▼0.4244.10 ▼0.99
Dashboard /wp-admin2,199 ▲195.57 ▼0.1294.82 ▼2.2543.83 ▲2.91
Posts /wp-admin/edit.php2,107 ▲72.02 ▲0.0041.12 ▲1.2737.12 ▲5.20
Add New Post /wp-admin/post-new.php1,531 ▲323.23 ▲0.09669.14 ▼7.2750.17 ▲0.57
Media Library /wp-admin/upload.php1,404 ▲74.16 ▼0.01111.13 ▲3.5048.86 ▲2.10
Engauge Analytics /wp-admin/options-general.php?page=engauge-analytics1,0161.7024.8937.45

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Contributors: The plugin contributors field is missing
The official readme.txt is a good inspiration

engauge-analytics/engauge-analytics.php Passed 13 tests

"Engauge Analytics" version 1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
65 characters long description:
Adds your Engauge Analytics Tracking Code to your WordPress site.

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 detected465 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP427934424
CSS18132
JavaScript1919

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity59.00
▷ Minimum class complexity59.00
▷ Maximum class complexity59.00
Average method complexity3.64
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin