94% indi-tuts

Code Review | INDI Tuts

WordPress plugin INDI Tuts scored 94% from 53 tests.

About plugin

  • Plugin page: indi-tuts
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.1
  • WordPress version: 5.8.1
  • First release: Dec 28, 2017
  • Latest release: Feb 13, 2018
  • Number of updates: 10
  • Update frequency: every 6.0 days
  • Top authors: indigorise (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 435 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by INDI Tuts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1530.89 ▲9.87
Dashboard /wp-admin3.10 ▲0.0534.55 ▼8.12
Posts /wp-admin/edit.php3.21 ▲0.1042.99 ▲3.16
Add New Post /wp-admin/post-new.php5.46 ▲0.0390.68 ▼1,043.12
Media Library /wp-admin/upload.php3.04 ▲0.0329.95 ▼6.53

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by INDI Tuts
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,668 ▲6216.01 ▲0.477.96 ▼0.8347.08 ▼4.21
Dashboard /wp-admin2,949 ▲966.11 ▲0.25139.20 ▲10.0696.69 ▼5.59
Posts /wp-admin/edit.php2,725 ▲192.68 ▲0.0065.51 ▼2.5077.54 ▼23.52
Add New Post /wp-admin/post-new.php1,667 ▲18618.85 ▲0.37374.39 ▼0.74113.70 ▼16.83
Media Library /wp-admin/upload.php1,791 ▲195.00 ▼0.02152.30 ▼11.36104.50 ▼13.03

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 5× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/indi-tuts/admin/partials/indi-tuts-manager-display.php
    • > /wp-content/plugins/indi-tuts/admin/partials/indi-tuts-blogger-display.php
    • > /wp-content/plugins/indi-tuts/admin/partials/indi-tuts-admin-display.php
    • > /wp-content/plugins/indi-tuts/admin/partials/indi-tuts-editor-display.php
    • > /wp-content/plugins/indi-tuts/admin/partials/indi-tuts-user-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (No Screenshots available)
Please take inspiration from this readme.txt

indi-tuts/indi-tuts.php Passed 13 tests

The main PHP file in "INDI Tuts" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
38 characters long description:
Tutorial-Plugin - INDI Webseitensystem

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 detected2,019 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP143125061,850
CSS12815166
JavaScript12273

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods21
▷ Static methods29.52%
▷ Public methods1780.95%
▷ Protected methods00.00%
▷ Private methods419.05%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin