84% kinfo

Code Review | KINFO

WordPress plugin KINFO scored84%from 54 tests.

About plugin

  • Plugin page: kinfo
  • Plugin version: 1.0.10
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.9.4
  • WordPress version: 6.3.1
  • First release: Aug 1, 2017
  • Latest release: Feb 26, 2018
  • Number of updates: 22
  • Update frequency: every 11.6 days
  • Top authors: kvd1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,041 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▲2.21ms] Passed 4 tests

This is a short check of server-side resources used by KINFO
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0946.31 ▲2.65
Dashboard /wp-admin3.39 ▲0.0863.98 ▲14.16
Posts /wp-admin/edit.php3.44 ▲0.0854.21 ▼0.35
Add New Post /wp-admin/post-new.php5.97 ▲0.0897.87 ▲11.17
Media Library /wp-admin/upload.php3.31 ▲0.0839.27 ▼4.62

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_performance_widget
widget_recent-posts
widget_recent-comments
widget_positions_widget
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for KINFO
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.36 ▼0.271.73 ▼0.1642.59 ▼3.62
Dashboard /wp-admin2,198 ▲285.61 ▲0.0084.65 ▼10.7741.30 ▲2.51
Posts /wp-admin/edit.php2,103 ▼02.03 ▲0.0342.77 ▲7.6435.72 ▲1.03
Add New Post /wp-admin/post-new.php1,526 ▼323.29 ▲0.31692.28 ▲19.4456.55 ▲7.62
Media Library /wp-admin/upload.php1,394 ▼64.17 ▲0.0197.13 ▼19.7248.77 ▼1.80

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_theysaidso_widget
    • widget_positions_widget
    • can_compress_scripts
    • widget_performance_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/kinfo/wordpress-kinfo.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: investing, kinfo, portfolio, social

kinfo/wordpress-kinfo.php 92% from 13 tests

The main PHP file in "KINFO" ver. 1.0.10 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("kinfo.php" instead of "wordpress-kinfo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin423 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP16330285
JavaScript33724128
CSS10010

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity9.00
▷ Minimum class complexity6.00
▷ Maximum class complexity12.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin