83% kattene

Code Review | Kattene

WordPress plugin Kattene scored83%from 54 tests.

About plugin

  • Plugin page: kattene
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.2-6.2.2
  • WordPress version: 6.3.1
  • First release: Jun 29, 2019
  • Latest release: Jul 19, 2023
  • Number of updates: 16
  • Update frequency: every 92.7 days
  • Top authors: webfood (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /13,351 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.01MB] [CPU: ▼9.55ms] Passed 4 tests

Analyzing server-side resources used by Kattene
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.56 ▼9.24
Dashboard /wp-admin3.32 ▼0.0247.18 ▼15.76
Posts /wp-admin/edit.php3.37 ▲0.0244.73 ▼1.82
Add New Post /wp-admin/post-new.php5.90 ▲0.0281.92 ▼11.39
Media Library /wp-admin/upload.php3.25 ▲0.0235.49 ▼0.12

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Kattene
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.23 ▼0.191.62 ▼0.3838.24 ▼5.51
Dashboard /wp-admin2,198 ▲245.64 ▲0.0579.45 ▼9.4740.48 ▲0.87
Posts /wp-admin/edit.php2,100 ▼32.01 ▲0.0532.90 ▼2.9035.68 ▼0.09
Add New Post /wp-admin/post-new.php1,541 ▲522.99 ▲4.81628.08 ▲26.8857.24 ▼6.36
Media Library /wp-admin/upload.php1,403 ▲34.20 ▼0.0496.07 ▼3.9841.93 ▼7.92

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/kattene/plugin.php:113

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: custom, stylecss, css

kattene/plugin.php 77% from 13 tests

This is the main PHP file of "Kattene" version 1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: The plugin description must be longer than 10 characters (currently 8 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("kattene.php" instead of "plugin.php")
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin330 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS1540228
PHP12725101
Markdown1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin