58% wp-keliosis

Code Review | WP Keliosis

WordPress plugin WP Keliosis scored58%from 54 tests.

About plugin

  • Plugin page: wp-keliosis
  • Plugin version: 0.3.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.5.3
  • WordPress version: 6.3.1
  • First release: Dec 30, 2019
  • Latest release: Nov 20, 2020
  • Number of updates: 21
  • Update frequency: every 15.6 days
  • Top authors: florianvalois (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /608 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼8.43MB] [CPU: ▼1,363,489.82ms] Passed 4 tests

Server-side resources used by WP Keliosis
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.29 ▼28.059.12 ▼5,453,754.70
Dashboard /wp-admin2.35 ▼1.0411.21 ▼54.78
Posts /wp-admin/edit.php2.35 ▼1.0511.69 ▼45.75
Add New Post /wp-admin/post-new.php2.35 ▼3.5810.78 ▼104.03
Media Library /wp-admin/upload.php2.35 ▼0.9211.09 ▼27.34
Email /wp-admin/admin.php?page=wpk_email2.3511.21
Changelog /wp-admin/admin.php?page=wpk_changelog2.3512.33
Medias /wp-admin/admin.php?page=wpk_medias2.3513.52
Dashboard /wp-admin/admin.php?page=wp_keliosis2.3512.31

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 23 new files
Database: 1 new table, 6 new options
New tables
wp_keliosis
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Keliosis
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲7814.17 ▼0.011.81 ▼0.0144.63 ▼0.92
Dashboard /wp-admin2,233 ▲535.64 ▼0.0491.82 ▼5.4141.68 ▼4.14
Posts /wp-admin/edit.php2,135 ▲352.00 ▼0.0239.93 ▲3.2835.11 ▲0.26
Add New Post /wp-admin/post-new.php1,554 ▲2623.32 ▲0.40689.50 ▼12.5562.96 ▲9.57
Media Library /wp-admin/upload.php1,438 ▲414.20 ▼0.07107.66 ▼0.2052.38 ▲3.66
Email /wp-admin/admin.php?page=wpk_email9842.2937.0769.42
Changelog /wp-admin/admin.php?page=wpk_changelog1,2762.1837.2651.64
Medias /wp-admin/admin.php?page=wpk_medias9682.3030.5438.66
Dashboard /wp-admin/admin.php?page=wp_keliosis9942.1431.9335.32

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/wp-keliosis/inc/admin/options.inc.php+18
    Undefined offset: 0
  • Zombie tables detected upon uninstall: 1 table
    • wp_keliosis
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 15 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp_keliosis
    • > Notice in wp-content/plugins/wp-keliosis/inc/admin/options.inc.php+18
    Undefined offset: 0
  • 15 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp_keliosis
    • > Notice in wp-content/plugins/wp-keliosis/inc/admin/options.inc.php+18
    Trying to access array offset on value of type null
  • 53 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp_keliosis
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 53 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp_keliosis
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
    • > GET request to /wp-admin/admin.php?page=wpk_changelog
    • > Notice in wp-content/plugins/wp-keliosis/views/changelog.php+29
    Undefined variable: i

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
  • 12× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/wp-keliosis/views/medias.php
    • > /wp-content/plugins/wp-keliosis/views/dashboard.php
    • > /wp-content/plugins/wp-keliosis/inc/admin/options.inc.php
    • > /wp-content/plugins/wp-keliosis/inc/admin/admin_menu.inc.php
    • > /wp-content/plugins/wp-keliosis/wp-keliosis.php
    • > /wp-content/plugins/wp-keliosis/inc/data/save.inc.php
    • > /wp-content/plugins/wp-keliosis/inc/template/title.inc.php
    • > /wp-content/plugins/wp-keliosis/views/changelog.php
    • > /wp-content/plugins/wp-keliosis/inc/admin/ui/enqueue.inc.php
    • > /wp-content/plugins/wp-keliosis/views/email.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Screenshots: Please a description for screenshot #1 in wp-keliosis/assets to your readme.txt
You can take inspiration from this readme.txt

wp-keliosis/wp-keliosis.php 92% from 13 tests

The primary PHP file in "WP Keliosis" version 0.3.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected12,221 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript13,2693,25411,457
PHP15153170566
PO File14552133
Markdown126064
CSS1161

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants15100.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
No PNG files were detected