10% kalimah-dashboard

Code Review | Kalimah Dashboard

WordPress plugin Kalimah Dashboard scored10%from 54 tests.

About plugin

  • Plugin page: kalimah-dashboard
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.7.4
  • WordPress version: 6.3.1
  • First release: Apr 28, 2017
  • Latest release: May 1, 2017
  • Number of updates: 12
  • Update frequency: every 0.4 days
  • Top authors: khr2003 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /824 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Error in wp-content/plugins/kalimah-dashboard/settings.php+208
    Uncaught ArgumentCountError: Too few arguments to function kalimah_admin_settings::kalimah_admin_get_color_part(), 0 passed in wp-content/plugins/kalimah-dashboard/settings.php on line 281 and exactly 2 expected in wp-content/plugins/kalimah-dashboard/settings.php:208
    Stack trace:
    #0 wp-content/plugins/kalimah-dashboard/settings.php(281): kalimah_admin_settings->kalimah_admin_get_color_part()
    #1 wp-content/plugins/kalimah-dashboard/settings.php(45): kalimah_admin_settings->kalimah_admin_check_conf()
    #2 wp-content/plugins/kalimah-dashboard/index.php(42): kalimah_admin_settings->__construct()
    #3 wp-content/plugins/kalimah-dashboard/index.php(277): kalimah_admin->__construct()
    #4 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
    #5 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.45ms] Passed 4 tests

An overview of server-side resources used by Kalimah Dashboard
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0048.50 ▲8.01
Dashboard /wp-admin3.31 ▲0.0045.30 ▼1.88
Posts /wp-admin/edit.php3.36 ▲0.0047.49 ▼2.97
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.87 ▼7.11
Media Library /wp-admin/upload.php3.23 ▲0.0037.82 ▲2.18

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
kalimah_admin_last_modified_conf
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Kalimah Dashboard
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.48 ▼0.302.10 ▲0.4464.49 ▲22.28
Dashboard /wp-admin2,206 ▲155.85 ▼0.05105.86 ▲3.8840.11 ▼0.97
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0138.93 ▲0.9635.93 ▲3.22
Add New Post /wp-admin/post-new.php1,536 ▲223.09 ▲0.04642.92 ▼26.4055.68 ▲0.92
Media Library /wp-admin/upload.php1,385 ▼34.20 ▲0.0197.85 ▼6.4740.65 ▼2.43

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • kalimah_admin_last_modified_conf

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/kalimah-dashboard/settings.php:696
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/kalimah-dashboard/settings.php:696

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention: You can look at the official readme.txt

kalimah-dashboard/index.php 92% from 13 tests

The main file in "Kalimah Dashboard" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("kalimah-dashboard.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected14,596 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
CSS70655,740
PHP51551,2353,162
LESS5504462,932
SVG1002,671
JavaScript226891

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity85.56
▷ Minimum class complexity1.00
▷ Maximum class complexity371.00
Average method complexity4.33
▷ Minimum method complexity1.00
▷ Maximum method complexity53.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods229
▷ Static methods104.37%
▷ Public methods9139.74%
▷ Protected methods13358.08%
▷ Private methods52.18%
Functions8
▷ Named functions112.50%
▷ Anonymous functions787.50%
Constants11
▷ Global constants1090.91%
▷ Class constants19.09%
▷ Public constants1100.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
PNG images were not found in this plugin