10% wide-angle-analytics

Code Review | Wide Angle Analytics

WordPress plugin Wide Angle Analytics scored10%from 54 tests.

About plugin

  • Plugin page: wide-angle-analytics
  • Plugin version: 1.0.7
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 31, 2021
  • Latest release: Dec 17, 2022
  • Number of updates: 11
  • Update frequency: every 32.0 days
  • Top authors: jrozanski (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /367 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/wide-angle-analytics/types/WideAngleGenerator.php+12
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.87MB] [CPU: ▼51.20ms] Passed 4 tests

An overview of server-side resources used by Wide Angle Analytics
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.12 ▼1.355.46 ▼38.17
Dashboard /wp-admin2.14 ▼1.177.94 ▼39.72
Posts /wp-admin/edit.php2.14 ▼1.227.36 ▼47.96
Add New Post /wp-admin/post-new.php2.14 ▼3.757.47 ▼78.95
Media Library /wp-admin/upload.php2.14 ▼1.096.39 ▼26.23
Wide Angle Analytics /wp-admin/options-general.php?page=wide-angle-analytics2.146.94

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Wide Angle Analytics: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲3513.20 ▼1.554.51 ▲2.5041.46 ▼3.42
Dashboard /wp-admin2,210 ▲224.81 ▼0.06107.23 ▼8.5437.71 ▼2.69
Posts /wp-admin/edit.php2,090 ▲42.01 ▲0.0439.15 ▲1.5934.18 ▲0.78
Add New Post /wp-admin/post-new.php1,540 ▲2123.44 ▲0.27670.81 ▼3.9851.07 ▼7.26
Media Library /wp-admin/upload.php1,389 ▲44.16 ▼0.0594.42 ▼4.4742.83 ▼2.59
Wide Angle Analytics /wp-admin/options-general.php?page=wide-angle-analytics1,0362.0525.8442.35

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/wide-angle-analytics/types/WideAngleGenerator.php+12
    Trying to access array offset on value of type bool
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 14 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wide-angle-analytics
    • > Notice in wp-content/plugins/wide-angle-analytics/types/WideAngleGenerator.php+18
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wide-angle-analytics/wide-angle-analytics.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_unslash() in wp-content/plugins/wide-angle-analytics/views/admin_settings.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wide-angle-analytics/types/WideAngleHelpers.php:2

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 Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: web traffic, statistics, stats, analytics, web analytics...

wide-angle-analytics/wide-angle-analytics.php Passed 13 tests

This is the main PHP file of "Wide Angle Analytics" version 1.0.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
71 characters long description:
Easily enable and configure Wide Angle Analytics on your Wordpress site

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
Everything looks great! No dangerous files found in this plugin675 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP77950675

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity8.33
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity2.26
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods35
▷ Static methods25.71%
▷ Public methods3085.71%
▷ Protected methods00.00%
▷ Private methods514.29%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants00.00%
▷ Class constants12100.00%
▷ Public constants975.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
No PNG images were found in this plugin