84% jalil-toolkit

Code Review | Jalil Toolkit

WordPress plugin Jalil Toolkit scored84%from 54 tests.

About plugin

  • Plugin page: jalil-toolkit
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.9.8
  • WordPress version: 6.3.1
  • First release: Sep 1, 2018
  • Latest release: Sep 1, 2018
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: jewel1994 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /502 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.22MB] [CPU: ▼5.66ms] Passed 4 tests

An overview of server-side resources used by Jalil Toolkit
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2337.48 ▼2.57
Dashboard /wp-admin3.52 ▲0.2152.83 ▲4.46
Posts /wp-admin/edit.php3.63 ▲0.2752.72 ▲3.74
Add New Post /wp-admin/post-new.php6.10 ▲0.2188.22 ▼25.32
Media Library /wp-admin/upload.php3.44 ▲0.2138.12 ▲1.52
Add New /wp-admin/post-new.php?post_type=team3.5050.20
Add New /wp-admin/post-new.php?post_type=slide3.5655.52
Projects /wp-admin/edit.php?post_type=project3.4839.22
Add New /wp-admin/post-new.php?post_type=project3.5652.29
Teams /wp-admin/edit.php?post_type=team3.4837.57
Testimonials /wp-admin/edit.php?post_type=testimonial3.4839.37
Slides /wp-admin/edit.php?post_type=slide3.4838.07
Add New /wp-admin/post-new.php?post_type=testimonial3.5647.84

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Jalil Toolkit
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,047 ▲30113.75 ▼0.8012.92 ▲11.3846.81 ▲5.29
Dashboard /wp-admin2,314 ▲1375.63 ▲0.0592.36 ▲4.3742.30 ▲0.60
Posts /wp-admin/edit.php2,220 ▲1231.98 ▼0.0539.04 ▼0.7833.66 ▼4.94
Add New Post /wp-admin/post-new.php1,629 ▲10323.64 ▲0.64700.59 ▲92.9662.27 ▲12.74
Media Library /wp-admin/upload.php1,522 ▲1254.24 ▲0.06100.27 ▼4.5044.96 ▼1.27
Add New /wp-admin/post-new.php?post_type=team1,7243.9364.3338.36
Add New /wp-admin/post-new.php?post_type=slide2,2797.55170.1964.99
Projects /wp-admin/edit.php?post_type=project1,1841.9733.8629.39
Add New /wp-admin/post-new.php?post_type=project2,2827.76160.6657.39
Teams /wp-admin/edit.php?post_type=team1,1662.0833.9731.97
Testimonials /wp-admin/edit.php?post_type=testimonial1,1841.9133.0333.70
Slides /wp-admin/edit.php?post_type=slide1,1841.9333.0533.57
Add New /wp-admin/post-new.php?post_type=testimonial2,2847.66162.4856.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
The following issues need your attention
  • 26× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/jalil-toolkit/theme-shortcodes/btn-shortcode.php
    • > /wp-content/plugins/jalil-toolkit/theme-shortcodes/post-shortcode.php
    • > /wp-content/plugins/jalil-toolkit/theme-shortcodes/service-shortcode.php
    • > /wp-content/plugins/jalil-toolkit/kc-addons/kc-team.php
    • > /wp-content/plugins/jalil-toolkit/kc-addons/kc-count.php
    • > /wp-content/plugins/jalil-toolkit/kc-addons/kc-post.php
    • > /wp-content/plugins/jalil-toolkit/theme-shortcodes/project-shortcode.php
    • > /wp-content/plugins/jalil-toolkit/theme-shortcodes/pricing-table-shortcode.php
    • > /wp-content/plugins/jalil-toolkit/kc-addons/kc-slide.php
    • > /wp-content/plugins/jalil-toolkit/theme-shortcodes/testimonial-shortcode.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: jalil-toolkit, jalil-helper-plugin, helper plugin, helper assets, jalil-blog

jalil-toolkit/jalil-toolkit.php Passed 13 tests

The entry point to "Jalil Toolkit" version 1.0.0 is a PHP file that has certain tags in its header comment area
131 characters long description:
jalil Toolkit is a helper plugin for jalil theme.This plugin only used for the jalil theme.It is a required plugin for jalil theme.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin5,958 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
CSS54991034,318
PHP27133371,615
JavaScript643025

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin