84% usermaven

Code Review | Usermaven

WordPress plugin Usermaven scored84%from 54 tests.

About plugin

  • Plugin page: usermaven
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1
  • WordPress version: 6.3.1
  • First release: Feb 9, 2023
  • Latest release: Mar 16, 2023
  • Number of updates: 6
  • Update frequency: every 5.8 days
  • Top authors: usermaven (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /786 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.19ms] Passed 4 tests

Analyzing server-side resources used by Usermaven
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0843.75 ▲2.65
Dashboard /wp-admin3.38 ▲0.0849.16 ▲0.01
Posts /wp-admin/edit.php3.50 ▲0.1452.35 ▲4.84
Add New Post /wp-admin/post-new.php5.98 ▲0.1093.62 ▼10.64
Media Library /wp-admin/upload.php3.31 ▲0.0836.24 ▼0.79
Dashboard /wp-admin/admin.php?page=usermaven_dashboard3.2732.87
Settings /wp-admin/admin.php?page=usermaven_options3.2734.86

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Usermaven
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,994 ▲20813.50 ▼0.8510.04 ▲8.1544.91 ▲3.36
Dashboard /wp-admin2,277 ▲1005.52 ▼0.1385.42 ▼5.6480.72 ▲39.67
Posts /wp-admin/edit.php2,197 ▲971.98 ▲0.0039.86 ▲0.9937.19 ▼3.27
Add New Post /wp-admin/post-new.php1,615 ▲8923.23 ▲0.32767.15 ▲88.2558.94 ▲2.29
Media Library /wp-admin/upload.php1,491 ▲914.19 ▲0.05102.54 ▼13.7886.29 ▲40.85
Dashboard /wp-admin/admin.php?page=usermaven_dashboard8801.9923.6625.81
Settings /wp-admin/admin.php?page=usermaven_options9801.9623.0238.62

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

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)
Good news, no errors were detected

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 fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/usermaven/public/partials/usermaven-public-display.php
    • > /wp-content/plugins/usermaven/admin/partials/usermaven-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

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
7 plugin tags: web analytics, analytics, stats, privacy friendly analytics, privacy...

usermaven/usermaven.php Passed 13 tests

The primary PHP file in "Usermaven" version 1.0.3 is used by WordPress to initiate all plugin functionality
50 characters long description:
The Easiest Website and Product Analytics Platform

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected508 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP13140625346
CSS3148108
SVG10034
Markdown19014
JavaScript24546

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods24
▷ Static methods28.33%
▷ Public methods1979.17%
▷ Protected methods00.00%
▷ Private methods520.83%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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