79% knowledge-base-maker

Code Review | Knowledge Base - Knowledge Base Maker

WordPress plugin Knowledge Base - Knowledge Base Maker scored79%from 54 tests.

About plugin

  • Plugin page: knowledge-base-maker
  • Plugin version: 1.1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 13, 2019
  • Latest release: Jan 26, 2023
  • Number of updates: 52
  • Update frequency: every 22.0 days
  • Top authors: devfelixmoira (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,513 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼2.55ms] Passed 4 tests

An overview of server-side resources used by Knowledge Base - Knowledge Base Maker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2140.05 ▼2.59
Dashboard /wp-admin3.58 ▲0.2747.70 ▼3.97
Posts /wp-admin/edit.php3.63 ▲0.2752.10 ▲2.66
Add New Post /wp-admin/post-new.php6.10 ▲0.2188.19 ▼6.28
Media Library /wp-admin/upload.php3.44 ▲0.2144.54 ▲7.01
Categories /wp-admin/edit-tags.php?taxonomy=ykb-knowledge-category&post_type=ykbpost3.4350.62
Configuration /wp-admin/edit.php?post_type=ykbpost&page=ykbConfigPage3.4236.48
Add New /wp-admin/post-new.php?post_type=ykbpost3.6355.33
All Knowledge Base /wp-admin/edit.php?post_type=ykbpost3.4840.32
More Ideas? /wp-admin/edit.php?post_type=ykbpost&page=ykbIdeasPage3.4133.18
Support /wp-admin/edit.php?post_type=ykbpost&page=ykbsupportpage3.4135.56

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
ykb_redirect
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Knowledge Base - Knowledge Base Maker
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,857 ▲9613.37 ▼0.934.27 ▲2.6939.70 ▼1.91
Dashboard /wp-admin2,262 ▲855.69 ▲0.0788.77 ▲2.8539.03 ▼5.01
Posts /wp-admin/edit.php2,183 ▲832.04 ▼0.0041.39 ▲1.2936.64 ▲2.58
Add New Post /wp-admin/post-new.php1,589 ▲6323.32 ▲5.72680.14 ▲57.8855.08 ▲0.87
Media Library /wp-admin/upload.php1,466 ▲634.24 ▼0.01135.16 ▲32.3860.04 ▲10.31
Categories /wp-admin/edit-tags.php?taxonomy=ykb-knowledge-category&post_type=ykbpost1,3502.1835.3436.37
Configuration /wp-admin/edit.php?post_type=ykbpost&page=ykbConfigPage9991.6823.4027.52
Add New /wp-admin/post-new.php?post_type=ykbpost2,4177.69174.1467.92
All Knowledge Base /wp-admin/edit.php?post_type=ykbpost1,1672.0033.6627.76
More Ideas? /wp-admin/edit.php?post_type=ykbpost&page=ykbIdeasPage8591.8424.7322.69
Support /wp-admin/edit.php?post_type=ykbpost&page=ykbsupportpage8591.7027.2721.67

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/knowledge-base-maker/public/views/admin/supportMetabox.php
  • 13× 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 _e() in wp-content/plugins/knowledge-base-maker/public/views/admin/shortcodeMetabox.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ykb\\admin\\add_action() in wp-content/plugins/knowledge-base-maker/com/classes/admin/Actions.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'ykb\\KnowledgeBase' not found in wp-content/plugins/knowledge-base-maker/com/classes/front/KnowledgeBaseSearch.php:5
    • > PHP Warning
      Use of undefined constant YKB_SUPPORT_URL - assumed 'YKB_SUPPORT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/knowledge-base-maker/public/views/admin/supportMetabox.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/knowledge-base-maker/knowledge-base-maker.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ykb\\add_action() in wp-content/plugins/knowledge-base-maker/com/classes/global/Actions.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ykb\\admin\\add_action() in wp-content/plugins/knowledge-base-maker/com/classes/admin/CSS.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/knowledge-base-maker/public/views/front/searchBar.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ykb\\add_action() in wp-content/plugins/knowledge-base-maker/com/classes/global/Ajax.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ykb\\plugins_url() in wp-content/plugins/knowledge-base-maker/com/config/config.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
3 plugin tags: poll, poll form, polls

knowledge-base-maker/knowledge-base-maker.php Passed 13 tests

The entry point to "Knowledge Base - Knowledge Base Maker" version 1.1.8 is a PHP file that has certain tags in its header comment area
83 characters long description:
WordPress Knowledge Base plugin allow to create many Knowledge Base Maker articles.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin7,828 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
CSS3786,878
PHP2117487908
JavaScript17042

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity6.71
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity2.03
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods78
▷ Static methods1620.51%
▷ Public methods7089.74%
▷ Protected methods00.00%
▷ Private methods810.26%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin