77% real-kit

Code Review | real.Kit

WordPress plugin real.Kit scored77%from 54 tests.

About plugin

  • Plugin page: real-kit
  • Plugin version: 5.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1.1-6.1
  • WordPress version: 6.3.1
  • First release: Mar 20, 2015
  • Latest release: Jan 23, 2023
  • Number of updates: 56
  • Update frequency: every 51.2 days
  • Top authors: real.master (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

500+ active /9,203 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.37MB] [CPU: ▲5.04ms] Passed 4 tests

Server-side resources used by real.Kit
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.01 ▲0.2852.13 ▲4.72
Dashboard /wp-admin4.03 ▲0.4067.95 ▼1.86
Posts /wp-admin/edit.php4.08 ▲0.4065.33 ▲13.35
Add New Post /wp-admin/post-new.php6.56 ▲0.42111.64 ▲3.94
Media Library /wp-admin/upload.php3.95 ▲0.4656.74 ▲14.06
Add New /wp-admin/post-new.php?post_type=realkit_modal4.0964.59
Translit /wp-admin/tools.php?page=realkit-translit-generator3.8650.95
All Modals /wp-admin/edit.php?post_type=realkit_modal4.0051.87
real.Kit /wp-admin/options-general.php?page=realkit_settings3.8649.85

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 70 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
realkit_plugin_version
can_compress_scripts
widget_recent-posts
realkit_translit_notice

Browser metrics Passed 4 tests

Checking browser requirements for real.Kit
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,031 ▲27013.86 ▼0.548.49 ▲6.8533.21 ▼8.89
Dashboard /wp-admin2,354 ▲1775.64 ▼0.0288.66 ▼10.3944.03 ▼1.02
Posts /wp-admin/edit.php2,181 ▲812.07 ▲0.0138.97 ▲2.8233.84 ▼2.01
Add New Post /wp-admin/post-new.php1,568 ▲4223.18 ▲5.56666.00 ▼30.9464.85 ▲5.53
Media Library /wp-admin/upload.php1,448 ▲484.31 ▲0.05100.72 ▼21.7842.35 ▼6.04
Add New /wp-admin/post-new.php?post_type=realkit_modal2,2897.64179.3763.55
Translit /wp-admin/tools.php?page=realkit-translit-generator8392.1226.9926.69
All Modals /wp-admin/edit.php?post_type=realkit_modal1,0992.1633.0331.17
real.Kit /wp-admin/options-general.php?page=realkit_settings1,8001.9426.3938.94

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 50× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/real-kit/mod/translit/tpl/settings.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/real-kit/mod/metrics/index.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/real-kit/mod/tags/index.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/real-kit/real-kit.php:25
    • > PHP Warning
      Use of undefined constant REALKIT_PLUGIN_DIR_MOD - assumed 'REALKIT_PLUGIN_DIR_MOD' (this will throw an Error in a future version of PHP) in wp-content/plugins/real-kit/mod/modals/index.php on line 3
    • > PHP Warning
      Use of undefined constant REALKIT_PLUGIN_DIR_MOD - assumed 'REALKIT_PLUGIN_DIR_MOD' (this will throw an Error in a future version of PHP) in wp-content/plugins/real-kit/mod/thumbnails/index.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/real-kit/mod/dashboard/index.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/real-kit/mod/dashboard/settings.php:3
    • > PHP Fatal error
      require_once(): Failed opening required 'REALKIT_PLUGIN_DIR_MOD/optimize/actions.php' (include_path='.:/usr/share/php') in wp-content/plugins/real-kit/mod/optimize/index.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/real-kit/mod/optimize/tpl/settings_revisions.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/edit.php?post_type=realkit_modal
    • > Console-api (severe) in wp-admin/edit.php?post_type=realkit_modal+356:15
    real.Kit" "Translit

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (36 tag instead of maximum 10)
  • Screenshots: Add descriptions for screenshots #2, #3, #4, #5, #6, #7, #8 in real-kit/assets to your readme.txt
You can look at the official readme.txt

real-kit/real-kit.php 85% from 13 tests

"real.Kit" version 5.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: Please don't use more than 140 characters for the plugin description (currently 214 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin2,704 lines of code in 67 files:
LanguageFilesBlank linesComment linesLines of code
PHP475992511,589
CSS10152422
JavaScript917555413
PO File1104125280

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity12.50
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity3.30
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods30
▷ Static methods2790.00%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions70
▷ Named functions710.00%
▷ Anonymous functions6390.00%
Constants11
▷ Global constants11100.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
There were not PNG files found in your plugin