84% vegetarianus-receptek

Code Review | Vegetáriánus receptek

WordPress plugin Vegetáriánus receptek scored84%from 54 tests.

About plugin

  • Plugin page: vegetarianus-rece...
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.2
  • WordPress version: 6.3.1
  • First release: Sep 20, 2014
  • Latest release: Apr 27, 2015
  • Number of updates: 10
  • Update frequency: every 21.9 days
  • Top authors: vbliszko (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /668 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.03MB] [CPU: ▼3.51ms] Passed 4 tests

This is a short check of server-side resources used by Vegetáriánus receptek
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0342.53 ▼1.93
Dashboard /wp-admin3.34 ▲0.0357.98 ▲3.04
Posts /wp-admin/edit.php3.39 ▲0.0348.83 ▼0.68
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.75 ▼12.49
Media Library /wp-admin/upload.php3.26 ▲0.0337.39 ▲1.05

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_vegetarianusreceptek
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Vegetáriánus receptek
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.34 ▼0.172.38 ▲0.3859.98 ▲15.80
Dashboard /wp-admin2,198 ▲215.57 ▼0.0395.45 ▼1.2143.46 ▼2.88
Posts /wp-admin/edit.php2,103 ▲61.97 ▼0.0052.95 ▲16.1345.44 ▲8.67
Add New Post /wp-admin/post-new.php1,526 ▼023.04 ▼0.47690.99 ▲11.4658.47 ▲3.39
Media Library /wp-admin/upload.php1,397 ▼64.21 ▼0.05106.16 ▲5.2449.40 ▲1.74

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_vegetarianusreceptek
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just 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/vegetarianus-receptek/vegetarianus-receptek.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt might help

vegetarianus-receptek/vegetarianus-receptek.php 92% from 13 tests

The main PHP file in "Vegetáriánus receptek" ver. 1.0.6 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 301 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin145 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23211145

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.14
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods450.00%
▷ Protected methods00.00%
▷ Private methods450.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.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
PNG images were not found in this plugin