87% real-kit

Code Review | real.Kit

WordPress plugin real.Kit scored 87% from 54 tests.

About plugin

  • Plugin page: real-kit
  • Plugin version: 5.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1.1-5.1
  • WordPress version: 5.9.2
  • First release: Mar 20, 2015
  • Latest release: Apr 19, 2019
  • Number of updates: 52
  • Update frequency: every 28.7 days
  • Top authors: real.master (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

700+ active / 8,502 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼287.99ms] Passed 4 tests

A check of server-side resources used by real.Kit
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0657.51 ▲5.62
Dashboard /wp-admin3.59 ▲0.1843.39 ▲9.53
Posts /wp-admin/edit.php3.82 ▲0.1846.74 ▲8.58
Add New Post /wp-admin/post-new.php7.05 ▲0.08101.59 ▼1,175.69
Media Library /wp-admin/upload.php3.47 ▲0.1738.59 ▲14.29
Add New /wp-admin/post-new.php?post_type=realkit_modal3.8251.18
real.Kit /wp-admin/options-general.php?page=realkit_settings3.4931.30
All Modals /wp-admin/edit.php?post_type=realkit_modal3.5134.84

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 59 new files
Database: no new tables, 2 new options
New WordPress options
realkit_plugin_version
realkit_translit_notice

Browser metrics Passed 4 tests

Checking browser requirements for real.Kit
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,138 ▲41616.37 ▲0.7010.35 ▲3.592.06 ▼0.19
Dashboard /wp-admin3,128 ▲2676.17 ▼0.02121.15 ▼12.03194.16 ▲31.04
Posts /wp-admin/edit.php2,767 ▲793.40 ▲0.1763.25 ▼1.48135.64 ▼7.48
Add New Post /wp-admin/post-new.php1,695 ▼1617.12 ▼4.13408.04 ▼60.02154.25 ▼3.17
Media Library /wp-admin/upload.php1,745 ▲505.57 ▲0.04142.54 ▲1.62188.62 ▼1.27
Add New /wp-admin/post-new.php?post_type=realkit_modal2,94410.18190.13194.54
real.Kit /wp-admin/options-general.php?page=realkit_settings2,5192.7954.52154.70
All Modals /wp-admin/edit.php?post_type=realkit_modal1,4123.1959.69109.80

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
  • 43× PHP files trigger errors when accessed directly with GET requests (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 __() in wp-content/plugins/real-kit/mod/optimize/tpl/settings_revisions.php:2
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/real-kit/mod/translit/tpl/settings.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/real-kit/mod/thumbnails/tpl/field_add.php:2
    • > 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 __() in wp-content/plugins/real-kit/mod/modals/tpl/metabox.php:2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/real-kit/mod/translit/tpl/settings.php on line 3
    • > PHP Warning
      require_once(REALKIT_PLUGIN_DIR_MOD/thumbnails/class.php): failed to open stream: No such file or directory in wp-content/plugins/real-kit/mod/thumbnails/index.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/real-kit/mod/optimize/settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/real-kit/mod/maintenance/settings.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/edit.php?post_type=realkit_modal
    • > Console-api (severe) in wp-admin/edit.php?post_type=realkit_modal+388:15
    real.Kit" "Translit

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots need descriptions #2, #3, #4, #5, #6 in real-kit/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 36 tag instead of maximum 10
The official readme.txt is a good inspiration

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

The main PHP file in "real.Kit" ver. 5.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: Keep the plugin description shorter than 140 characters (currently 214 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected2,271 lines of code in 56 files:
LanguageFilesBlank linesComment linesLines of code
PHP405182201,364
CSS8132334
JavaScript713847320
PO File192107253

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions55
▷ Named functions610.91%
▷ Anonymous functions4989.09%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin