84% meow-analytics

Code Review | Meow Analytics (Google Analytics)

WordPress plugin Meow Analytics (Google Analytics) scored84%from 54 tests.

About plugin

  • Plugin page: meow-analytics
  • Plugin version: 1.2.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Feb 19, 2020
  • Latest release: Sep 22, 2023
  • Number of updates: 61
  • Update frequency: every 21.5 days
  • Top authors: TigrouMeow (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

300+ active /10,768 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.19MB] [CPU: ▼8.23ms] Passed 4 tests

An overview of server-side resources used by Meow Analytics (Google Analytics)
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1644.22 ▲4.29
Dashboard /wp-admin3.56 ▲0.2153.27 ▼8.46
Posts /wp-admin/edit.php3.61 ▲0.2545.88 ▼5.74
Add New Post /wp-admin/post-new.php6.08 ▲0.1988.79 ▼22.30
Media Library /wp-admin/upload.php3.42 ▲0.1940.26 ▲3.59
Analytics /wp-admin/admin.php?page=mga_settings3.3938.66
Dashboard /wp-admin/admin.php?page=meowapps-main-menu3.5954.84

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Meow Analytics (Google Analytics)
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,853 ▲10713.24 ▼1.401.67 ▼0.1841.37 ▼1.76
Dashboard /wp-admin2,259 ▲715.89 ▲1.02100.31 ▼12.7138.15 ▼4.51
Posts /wp-admin/edit.php2,142 ▲502.04 ▲0.0334.17 ▼5.5830.05 ▼5.58
Add New Post /wp-admin/post-new.php1,559 ▲4517.56 ▼5.89692.09 ▼3.9059.83 ▲7.98
Media Library /wp-admin/upload.php1,438 ▲504.14 ▼0.09100.83 ▼13.2443.35 ▼2.68
Analytics /wp-admin/admin.php?page=mga_settings1,1025.22119.2836.61
Dashboard /wp-admin/admin.php?page=meowapps-main-menu5,1991.7025.7550.16

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      require(): Failed opening required 'MGA_PATH/classes/core.php' (include_path='.:/usr/share/php') in wp-content/plugins/meow-analytics/classes/init.php on line 27
    • > PHP Fatal error
      Uncaught Error: Class 'MeowCommon_Admin' not found in wp-content/plugins/meow-analytics/classes/admin.php:3
    • > PHP Warning
      Use of undefined constant MGA_PATH - assumed 'MGA_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/meow-analytics/classes/init.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/meow-analytics/meow-analytics.php:22
    • > PHP Warning
      require(MGA_PATH/classes/core.php): failed to open stream: No such file or directory in wp-content/plugins/meow-analytics/classes/init.php on line 27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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: google analytics, meowapps, dashboard, analytics, google

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

"Meow Analytics (Google Analytics)" version 1.2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
119 characters long description:
Adds the Google Analytics (GA4 included) code to your website and a little dashboard with realtime and historical data.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,775 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13183921,378
PO File17577254
JavaScript32162143

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity14.64
▷ Minimum class complexity3.00
▷ Maximum class complexity31.00
Average method complexity2.51
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods96
▷ Static methods1515.62%
▷ Public methods9194.79%
▷ Protected methods00.00%
▷ Private methods55.21%
Functions10
▷ Named functions110.00%
▷ Anonymous functions990.00%
Constants9
▷ Global constants666.67%
▷ Class constants333.33%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin