84% kindred-installer

Code Review | Kindred Installer

WordPress plugin Kindred Installer scored84%from 54 tests.

About plugin

  • Plugin page: kindred-installer
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 30, 2019
  • Latest release: Oct 7, 2019
  • Number of updates: 7
  • Update frequency: every 1.3 days
  • Top authors: ryanbosleykindred (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /657 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.57ms] Passed 4 tests

Server-side resources used by Kindred Installer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.10 ▼0.92
Dashboard /wp-admin3.33 ▲0.0344.95 ▼0.86
Posts /wp-admin/edit.php3.38 ▲0.0344.08 ▲2.05
Add New Post /wp-admin/post-new.php5.91 ▲0.0279.72 ▼11.79
Media Library /wp-admin/upload.php3.25 ▲0.0231.09 ▼0.70
Kindred Installer /wp-admin/options-general.php?page=kindred_fields3.2230.29

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Kindred Installer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.22 ▼1.541.64 ▼0.1443.00 ▼1.77
Dashboard /wp-admin2,207 ▲195.86 ▲0.97103.28 ▲0.8737.64 ▼7.64
Posts /wp-admin/edit.php2,093 ▲42.03 ▼0.0133.60 ▼3.0434.41 ▲3.29
Add New Post /wp-admin/post-new.php1,545 ▲1618.33 ▼0.05603.17 ▼14.9660.29 ▲3.65
Media Library /wp-admin/upload.php1,392 ▲74.19 ▼0.0099.91 ▼2.5242.26 ▼0.74
Kindred Installer /wp-admin/options-general.php?page=kindred_fields8122.0526.0240.99

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

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)
Everything seems fine, however this is by no means an exhaustive test

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
  • 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/kindred-installer/kindred-installer.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: kindred, integration, conversion tracking, sdk

kindred-installer/kindred-installer.php Passed 13 tests

Analyzing the main PHP file in "Kindred Installer" version 1.0.0
45 characters long description:
Kindred SDK and conversion tracking installer

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
There were no executable files found in this plugin81 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1173181

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.06
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.22
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 were not PNG files found in your plugin