84% technoscore-kissmetrics-tracking

Code Review | Technoscore kissmetrics Tracking

WordPress plugin Technoscore kissmetrics Tracking scored84%from 54 tests.

About plugin

  • Plugin page: technoscore-kissm...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.6-4.7
  • WordPress version: 6.3.1
  • First release: May 29, 2017
  • Latest release: May 29, 2017
  • Number of updates: 6
  • Update frequency: every 0.5 days
  • Top authors: saravan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /547 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼10.29ms] Passed 4 tests

An overview of server-side resources used by Technoscore kissmetrics Tracking
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.15 ▼2.92
Dashboard /wp-admin3.32 ▲0.0261.39 ▼4.35
Posts /wp-admin/edit.php3.37 ▲0.0149.30 ▼23.55
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.95 ▼10.35
Media Library /wp-admin/upload.php3.24 ▲0.0137.94 ▲2.14

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Technoscore kissmetrics Tracking
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.24 ▼0.121.66 ▼0.5140.34 ▼11.92
Dashboard /wp-admin2,214 ▲405.60 ▼0.0683.41 ▼9.5039.45 ▼5.59
Posts /wp-admin/edit.php2,113 ▲101.96 ▼0.1635.18 ▼14.9732.87 ▼5.99
Add New Post /wp-admin/post-new.php1,541 ▲1323.36 ▲0.09614.38 ▼28.3751.53 ▼7.31
Media Library /wp-admin/upload.php1,413 ▲104.23 ▼0.0199.78 ▼4.3041.89 ▼3.40

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/technoscore-kissmetrics-tracking/technoscore-kissmetrics-tracking.php:12

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

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: kissmetrics tracking, tracking, kissmetrics

technoscore-kissmetrics-tracking/technoscore-kissmetrics-tracking.php 92% from 13 tests

The main PHP script in "Technoscore kissmetrics Tracking" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

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
Good job! No executable or dangerous file extensions detected54 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2181854

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 files were detected