10% all-in-one-analytics

Code Review | All In One Analytics

WordPress plugin All In One Analytics scored 10% from 54 tests.

About plugin

  • Plugin page: all-in-one-analytics
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Jul 11, 2019
  • Latest release: Jul 12, 2019
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: juanin8 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 473 total downloads

Benchmarks

Plugin footprint 5% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/all-in-one-analytics/includes/class-all-in-one-analytics.php+504
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.88MB] [CPU: ▼182.34ms] Passed 4 tests

A check of server-side resources used by All In One Analytics
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /1.75 ▼1.084.74 ▼18.65
Dashboard /wp-admin1.77 ▼1.293.99 ▼35.02
Posts /wp-admin/edit.php1.77 ▼1.344.66 ▼27.81
Add New Post /wp-admin/post-new.php1.77 ▼3.674.43 ▼647.66
Media Library /wp-admin/upload.php1.77 ▼1.234.57 ▼18.87
All in One Analytics & Tracking /wp-admin/options-general.php?page=all-in-one-analytics1.773.71

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 954 new files
Database: 1 new table, no new options
New tables
wp_all_in_one_analytics

Browser metrics Passed 4 tests

An overview of browser requirements for All In One Analytics
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,023 ▲42218.02 ▲2.0451.54 ▲45.9774.75 ▲0.01
Dashboard /wp-admin2,998 ▲1037.00 ▲0.85139.87 ▲7.25177.24 ▲6.41
Posts /wp-admin/edit.php2,809 ▲693.74 ▲0.5288.72 ▲23.82138.29 ▲5.42
Add New Post /wp-admin/post-new.php3,754 ▲6118.57 ▲3.15434.10 ▲18.10169.68 ▲4.18
Media Library /wp-admin/upload.php1,815 ▲636.33 ▲0.84168.20 ▲24.72185.18 ▲3.03
All in One Analytics & Tracking /wp-admin/options-general.php?page=all-in-one-analytics3,9775.31117.89155.56

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/all-in-one-analytics/includes/class-all-in-one-analytics.php+504
    Trying to access array offset on value of type bool
  • Incomplete uninstall procedure, leaving 954 files (19.71MB) in the plugin directory
    • (new file) admin/class-all-in-one-analytics-admin.php
    • (new file) admin/css/all-in-one-analytics-admin.css
    • (new file) admin/exopite-simple-options/assets/chosen-sprite.png
    • (new file) README.txt
    • (new file) admin/exopite-simple-options/assets/ace-loader.min.js
    • (new file) LICENSE.txt
    • (new file) README.md
    • (new file) admin/exopite-simple-options/assets/chosen-sprite@2x.png
    • (new file) admin/exopite-simple-options/assets/ace-loader.min.min.js
    • (new file) LICENSE
    • ...
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_all_in_one_analytics
  • The uninstall procedure has failed, leaving 1 option in the database
    • recovery_mode_email_last_sent

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
  • 51 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=all-in-one-analytics
    • > POST request to /wp-admin/admin-ajax.php?action=wp_all_in_one_analytics_async_process_clean_db&nonce=85ddab7ce2
    • > Notice in wp-content/plugins/all-in-one-analytics/includes/class-all-in-one-analytics.php+424
    Trying to access array offset on value of type bool
  • 82 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=all-in-one-analytics
    • > POST request to /wp-admin/admin-ajax.php?action=wp_all_in_one_analytics_async_process_clean_db&nonce=85ddab7ce2
    • > Notice in wp-content/plugins/all-in-one-analytics/includes/class-all-in-one-analytics.php+424
    Trying to access array offset on value of type null
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=all-in-one-analytics
    • > POST request to /wp-admin/admin-ajax.php?action=wp_all_in_one_analytics_async_process_clean_db&nonce=85ddab7ce2
    • > Notice in wp-content/plugins/all-in-one-analytics/admin/exopite-simple-options/exopite-simple-options-framework-class.php+1253
    Undefined index: id
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=all-in-one-analytics
    • > Notice in wp-content/plugins/all-in-one-analytics/admin/exopite-simple-options/exopite-simple-options-framework-class.php+1611
    Undefined index: name
  • 32 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=all-in-one-analytics
    • > Notice in wp-content/plugins/all-in-one-analytics/admin/exopite-simple-options/exopite-simple-options-framework-class.php+671
    Array to string conversion

SRP 50% from 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
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/all-in-one-analytics/includes/class-all-in-one-analytics-wp-background-process.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/all-in-one-analytics/async/class-all-in-one-analytics-async.php:45

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 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Requires at least: The plugin version is formatted incorrectly
You can look at the official readme.txt

all-in-one-analytics/all-in-one-analytics.php Passed 13 tests

Analyzing the main PHP file in "All In One Analytics" version 1.0.1
32 characters long description:
All your analytics stuff sorted.

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 detected124,748 lines of code in 903 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript8252,52913,32991,340
JSON10015,622
PHP602,7392,6139,403
CSS141,2113065,445
SVG2002,877
Markdown152061

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity20.35
▷ Minimum class complexity1.00
▷ Maximum class complexity385.00
Average method complexity4.58
▷ Minimum method complexity1.00
▷ Maximum method complexity92.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes62
▷ Abstract classes34.84%
▷ Concrete classes5995.16%
▷ Final classes00.00%
Methods334
▷ Static methods7020.96%
▷ Public methods28886.23%
▷ Protected methods3811.38%
▷ Private methods82.40%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.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
17 compressed PNG files occupy 0.09MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/exopite-simple-options/assets/images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%
admin/exopite-simple-options/assets/chosen-sprite@2x.png0.72KB0.83KB0.00%
admin/exopite-simple-options/assets/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
admin/exopite-simple-options/assets/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
admin/exopite-simple-options/assets/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%