84% blue-triad-ezanalytics

Code Review | Blue Triad EZAnalytics

WordPress plugin Blue Triad EZAnalytics scored84%from 54 tests.

About plugin

  • Plugin page: blue-triad-ezanal...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9
  • WordPress version: 6.3.1
  • First release: Jul 3, 2018
  • Latest release: Jul 4, 2018
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: jbahlquist (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /605 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼10.78ms] Passed 4 tests

Server-side resources used by Blue Triad EZAnalytics
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.25 ▼1.54
Dashboard /wp-admin3.31 ▼0.0343.12 ▼22.32
Posts /wp-admin/edit.php3.36 ▲0.0143.95 ▼2.30
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.18 ▼16.96
Media Library /wp-admin/upload.php3.24 ▲0.0136.88 ▲2.78

Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Blue Triad EZAnalytics: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲7413.26 ▼1.111.68 ▲0.0240.78 ▲0.93
Dashboard /wp-admin2,227 ▲385.85 ▲0.9498.98 ▼8.0639.10 ▼2.52
Posts /wp-admin/edit.php2,107 ▲181.98 ▼0.0335.64 ▼2.2834.10 ▼0.78
Add New Post /wp-admin/post-new.php1,552 ▲2423.11 ▲4.70681.27 ▲18.2652.12 ▼1.40
Media Library /wp-admin/upload.php1,400 ▲184.23 ▲0.01108.49 ▲8.4447.48 ▲4.60

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/blue-triad-ezanalytics/blue-triad-ezanalytics.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: google analytics, blue triad

blue-triad-ezanalytics/blue-triad-ezanalytics.php 92% from 13 tests

Analyzing the main PHP file in "Blue Triad EZAnalytics" version 1.0
The following require your attention:
  • Requires at least: Required version must match the one declared in readme.txt ("3.6" instead of "3.8")

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
Good job! No executable or dangerous file extensions detected155 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14893155

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions8
▷ Named functions8100.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
No PNG files were detected