78% katisoft

Code Review | KATISOFT

WordPress plugin KATISOFT scored78%from 54 tests.

About plugin

  • Plugin page: katisoft
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.2
  • WordPress version: 6.3.1
  • First release: May 3, 2019
  • Latest release: May 16, 2019
  • Number of updates: 20
  • Update frequency: every 0.7 days
  • Top authors: chithien175 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /870 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.39MB] [CPU: ▼3.69ms] Passed 4 tests

An overview of server-side resources used by KATISOFT
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3944.99 ▲0.57
Dashboard /wp-admin3.72 ▲0.4255.14 ▼2.64
Posts /wp-admin/edit.php3.78 ▲0.4262.38 ▲9.79
Add New Post /wp-admin/post-new.php6.24 ▲0.35101.50 ▼5.01
Media Library /wp-admin/upload.php3.62 ▲0.4043.14 ▼7.67

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 119 new files
Database: no new tables, 14 new options
New WordPress options
katisoft_plugin_chat_facebook
katisoft_plugin_cpt
katisoft_plugin_back_to_top
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
katisoft_plugin_custom_login_page
katisoft_plugin_mail_smtp
theysaidso_admin_options
katisoft_plugin_alo_phone
...

Browser metrics Passed 4 tests

A check of browser resources used by KATISOFT
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,933 ▲18715.13 ▲0.761.88 ▼0.1945.50 ▼1.18
Dashboard /wp-admin2,335 ▲1467.06 ▲2.10141.43 ▲23.2041.49 ▼0.75
Posts /wp-admin/edit.php2,249 ▲1603.58 ▲1.5960.88 ▲23.7636.23 ▼1.32
Add New Post /wp-admin/post-new.php1,668 ▲14422.88 ▼0.50592.74 ▼80.6633.30 ▼27.32
Media Library /wp-admin/upload.php1,385 ▼64.75 ▲0.5587.51 ▼28.1041.61 ▼6.92

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 14 options
    • can_compress_scripts
    • widget_recent-comments
    • katisoft_plugin_chat_facebook
    • katisoft_plugin_back_to_top
    • katisoft_plugin_custom_login_page
    • katisoft_plugin_cpt
    • katisoft_plugin
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/katisoft/templates/testimonial.php
  • 31× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Inc\\Base\\BaseController' not found in wp-content/plugins/katisoft/inc/Base/Enqueue.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/katisoft/templates/back-to-top.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/katisoft/inc/Api/Widgets/MediaWidget.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/katisoft/templates/alo-phone.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/katisoft/templates/mail-smtp.php:40
    • > PHP Fatal error
      Uncaught Error: Class 'Inc\\Base\\BaseController' not found in wp-content/plugins/katisoft/inc/Base/WidgetController.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Inc\\Base\\BaseController' not found in wp-content/plugins/katisoft/inc/Base/CustomLoginPageController.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/katisoft/templates/cpt.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/katisoft/templates/contact-form.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'Inc\\Base\\BaseController' not found in wp-content/plugins/katisoft/inc/Base/CustomTaxonomyController.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #10, #11, #12, #2, #3, #4, #5, #6, #7, #8, #9 in katisoft/assets to your readme.txt
The official readme.txt might help

katisoft/katisoft.php Passed 13 tests

The main PHP script in "KATISOFT" version 1.0.6 is automatically included on every request by WordPress
76 characters long description:
KaTiSoft Plugin được phát triển bởi KaTiSoft - Web Đẹp Nha Trang

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin22,546 lines of code in 89 files:
LanguageFilesBlank linesComment linesLines of code
JSON40018,295
PHP542853933,024
JavaScript139973535
Sass8510326
CSS717614301
PO File2122441
Markdown15024

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity6.62
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces8
Interfaces0
Traits0
Classes34
▷ Abstract classes00.00%
▷ Concrete classes34100.00%
▷ Final classes12.94%
Methods166
▷ Static methods106.02%
▷ Public methods16498.80%
▷ Protected methods00.00%
▷ Private methods21.20%
Functions7
▷ Named functions342.86%
▷ Anonymous functions457.14%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
16 PNG files occupy 1.76MB with 0.95MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/banner-772x250.png300.48KB97.42KB▼ 67.58%
assets/images/screenshot-3.png35.38KB16.74KB▼ 52.67%
assets/images/screenshot-11.png6.05KB3.79KB▼ 37.33%
assets/images/screenshot-8.png67.71KB33.37KB▼ 50.72%
assets/images/banner-1544x500.png860.45KB330.31KB▼ 61.61%