83% woo-katalog

Code Review | Woo Katalog

WordPress plugin Woo Katalog scored83%from 54 tests.

About plugin

  • Plugin page: woo-katalog
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8.1
  • WordPress version: 6.3.1
  • First release: Dec 6, 2014
  • Latest release: Sep 8, 2017
  • Number of updates: 12
  • Update frequency: every 83.9 days
  • Top authors: muratbtn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,733 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼0.27ms] Passed 4 tests

A check of server-side resources used by Woo Katalog
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0138.00 ▼2.37
Dashboard /wp-admin3.31 ▲0.0048.46 ▼1.16
Posts /wp-admin/edit.php3.36 ▲0.0053.67 ▲7.34
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.66 ▲3.11
Media Library /wp-admin/upload.php3.23 ▲0.0033.80 ▼0.64

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Woo Katalog
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6813.27 ▼1.025.99 ▲3.8942.02 ▼4.20
Dashboard /wp-admin2,206 ▲215.91 ▲0.03105.36 ▼3.4941.66 ▲0.50
Posts /wp-admin/edit.php2,086 ▼32.04 ▼0.0140.23 ▼2.9533.99 ▼1.80
Add New Post /wp-admin/post-new.php1,528 ▼523.07 ▲0.02642.24 ▼15.8962.44 ▲9.06
Media Library /wp-admin/upload.php1,391 ▲64.25 ▲0.0594.11 ▼5.4641.30 ▼1.64

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% 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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just 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/woo-katalog/index.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === woo-katalog === )
  • Screenshots: Screenshot #1 (screenshots-1.png) image missing
  • Screenshots: A description for screenshot #0 is required in woo-katalog/assets to your readme.txt
You can take inspiration from this readme.txt

woo-katalog/index.php 92% from 13 tests

The primary PHP file in "Woo Katalog" version 1.1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-katalog.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin3 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1093

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.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