10% kekupro

Code Review | KeKu Pro

WordPress plugin KeKu Pro scored 10% from 54 tests.

About plugin

  • Plugin page: kekupro
  • Plugin version: 1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.8
  • WordPress version: 6.3.1
  • First release: Dec 2, 2018
  • Latest release: Dec 4, 2018
  • Number of updates: 6
  • Update frequency: every 0.5 days
  • Top authors: kekupro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 579 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > User deprecated in wp-includes/functions.php+5747
    Function add_option was called with an argument that is deprecated since version 2.3.0 with no alternative available.

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.90ms] Passed 4 tests

Analyzing server-side resources used by KeKu Pro
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0345.67 ▲1.90
Dashboard /wp-admin3.34 ▲0.0350.53 ▼4.48
Posts /wp-admin/edit.php3.39 ▲0.0351.28 ▼0.73
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.39 ▼10.39
Media Library /wp-admin/upload.php3.26 ▲0.0337.96 ▼3.99
KeKu Pro Settings /wp-admin/options-general.php?page=kekupro/kekupro.php3.2031.73

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
kekupro_settings
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for KeKu Pro
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲1613.23 ▼1.611.88 ▲0.0148.49 ▲0.04
Dashboard /wp-admin2,207 ▲14.89 ▲0.03101.96 ▼4.3741.45 ▼4.13
Posts /wp-admin/edit.php2,093 ▲41.97 ▼0.0439.51 ▲3.3135.66 ▼2.62
Add New Post /wp-admin/post-new.php1,528 ▲1423.32 ▲5.81677.35 ▲63.1462.75 ▲17.15
Media Library /wp-admin/upload.php1,392 ▲14.23 ▼0.0495.59 ▼3.4839.98 ▼3.64
KeKu Pro Settings /wp-admin/options-general.php?page=kekupro/kekupro.php8512.1427.9135.35

Uninstaller [IO: ✅] [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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=kekupro/kekupro.php
    • > Notice in wp-content/plugins/kekupro/kekupro.php+80
    Undefined index: saveConfig

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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kekupro/kekupro.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=kekupro/kekupro.php
    • > Other (warning) in unknown
    other - Failed parsing 'srcset' attribute value since it has an unknown descriptor.
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=kekupro/kekupro.php
    • > Other (warning) in unknown
    other - Dropped srcset candidate "2x"

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
Please take inspiration from this readme.txt

kekupro/kekupro.php 85% from 13 tests

"KeKu Pro" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 82 characters long)
  • Description: Please keep the plugin description shorter than 140 characters (currently 343 characters long)

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 plugin194 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13812194

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
favicon.png14.25KB8.39KB▼ 41.07%