84% komito-analytics

Code Review | Komito Analytics

WordPress plugin Komito Analytics scored84%from 54 tests.

About plugin

  • Plugin page: komito-analytics
  • Plugin version: 1.1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 5, 2017
  • Latest release: Jun 19, 2023
  • Number of updates: 59
  • Update frequency: every 34.3 days
  • Top authors: komito (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

300+ active /45,507 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
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.46ms] Passed 4 tests

Server-side resources used by Komito Analytics
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.22 ▲4.05
Dashboard /wp-admin3.37 ▲0.0344.73 ▼13.77
Posts /wp-admin/edit.php3.43 ▲0.0744.99 ▼3.36
Add New Post /wp-admin/post-new.php5.96 ▲0.0787.43 ▼5.55
Media Library /wp-admin/upload.php3.30 ▲0.0736.00 ▲0.86

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Komito Analytics: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲6313.20 ▼1.442.22 ▲0.3843.53 ▲1.52
Dashboard /wp-admin2,242 ▲504.88 ▲0.02101.51 ▼7.5839.15 ▼3.81
Posts /wp-admin/edit.php2,122 ▲332.07 ▼0.1133.52 ▼3.7736.70 ▼1.03
Add New Post /wp-admin/post-new.php1,527 ▲823.53 ▲0.49645.77 ▼45.7950.51 ▼13.86
Media Library /wp-admin/upload.php1,418 ▲304.22 ▼0.0196.59 ▼11.4640.96 ▼4.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/komito-analytics/komito-analytics.php:240

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Requires php: Invalid version format
Please take inspiration from this readme.txt

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

The primary PHP file in "Komito Analytics" version 1.1.9 is used by WordPress to initiate all plugin functionality
79 characters long description:
Komito Analytics is an enhancement for the most popular web analytics software.

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
Good job! No executable or dangerous file extensions detected654 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PO File9206242502
PHP12963152

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin