90% kortez-toolset

Code Review | Kortez Toolset

WordPress plugin Kortez Toolset scored90%from 54 tests.

About plugin

  • Plugin page: kortez-toolset
  • Plugin version: 1.0.8
  • PHP compatiblity: 4.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Jan 24, 2023
  • Latest release: Jun 7, 2023
  • Number of updates: 10
  • Update frequency: every 13.4 days
  • Top authors: kortezthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /6,674 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.06MB] [CPU: ▼7.74ms] Passed 4 tests

A check of server-side resources used by Kortez Toolset
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0836.78 ▼0.67
Dashboard /wp-admin3.38 ▲0.0343.64 ▼18.01
Posts /wp-admin/edit.php3.43 ▲0.0742.15 ▼4.17
Add New Post /wp-admin/post-new.php5.96 ▲0.0780.85 ▼8.12
Media Library /wp-admin/upload.php3.30 ▲0.0734.71 ▲1.48
Demo Import /wp-admin/themes.php?page=advanced-import3.2728.79

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Kortez Toolset: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.34 ▼0.102.19 ▲0.4940.06 ▼4.80
Dashboard /wp-admin2,199 ▲225.63 ▼0.0379.77 ▼5.8137.69 ▼2.42
Posts /wp-admin/edit.php2,107 ▲72.11 ▲0.1334.64 ▼2.5533.81 ▼2.04
Add New Post /wp-admin/post-new.php1,529 ▲323.05 ▲0.00653.90 ▲6.5552.30 ▼1.33
Media Library /wp-admin/upload.php1,404 ▲14.22 ▲0.0195.00 ▼6.2344.06 ▼1.29
Demo Import /wp-admin/themes.php?page=advanced-import7932.0426.1233.26

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: demo data importer, one click demo import, demo data

kortez-toolset/kortez-toolset.php 92% from 13 tests

The main PHP script in "Kortez Toolset" version 1.0.8 is automatically included on every request by WordPress
It is important to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin468 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP251100368
CSS16074
JavaScript15523
JSON3003

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity63.00
▷ Minimum class complexity63.00
▷ Maximum class complexity63.00
Average method complexity6.64
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected