10% magyar-eszkozok-divi-hez

Code Review | Magyar kiegészítésék Divi-hez

WordPress plugin Magyar kiegészítésék Divi-hez scored 10% from 54 tests.

About plugin

  • Plugin page: magyar-eszkozok-d...
  • Plugin version: 0.0.25
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.4
  • WordPress version: 5.8.1
  • First release: Aug 10, 2019
  • Latest release: Jan 6, 2020
  • Number of updates: 93
  • Update frequency: every 1.6 days
  • Top authors: hellowpio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 3,118 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/magyar-eszkozok-divi-hez/modules/extra.php+98
    Undefined variable: theme

Server metrics [RAM: ▼1.83MB] [CPU: ▼192.48ms] Passed 4 tests

Analyzing server-side resources used by Magyar kiegészítésék Divi-hez
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.80 ▼0.925.64 ▼17.13
Dashboard /wp-admin1.81 ▼1.246.73 ▼25.99
Posts /wp-admin/edit.php1.82 ▼1.297.20 ▼33.31
Add New Post /wp-admin/post-new.php1.81 ▼3.626.82 ▼684.55
Media Library /wp-admin/upload.php1.82 ▼1.195.90 ▼26.06

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Magyar kiegészítésék Divi-hez
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8316.27 ▲0.778.27 ▼0.5045.00 ▲2.66
Dashboard /wp-admin2,967 ▲366.09 ▼0.05146.29 ▲1.41109.92 ▼3.23
Posts /wp-admin/edit.php2,739 ▲32.68 ▼0.0265.75 ▼2.7481.06 ▼9.77
Add New Post /wp-admin/post-new.php1,606 ▲10618.92 ▲0.69358.67 ▲9.13104.59 ▼3.94
Media Library /wp-admin/upload.php1,810 ▲35.03 ▲0.01145.45 ▲4.37117.25 ▼6.87

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
Please fix the following items
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/magyar-eszkozok-divi-hez/modules/extra.php+98
    Undefined variable: theme

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/magyar-eszkozok-divi-hez/modules/extra.php
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined variable: timeline_posts in wp-content/plugins/magyar-eszkozok-divi-hez/modules/timeline-posts-content-hun.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/magyar-eszkozok-divi-hez/modules/timeline-posts-content-hun.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/magyar-eszkozok-divi-hez/modules/page-template-authors-hun.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/magyar-eszkozok-divi-hez/modules/page-template-timeline-hun.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/magyar-eszkozok-divi-hez/modules/timeline.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/magyar-eszkozok-divi-hez/modules/authors.php:4

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, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: divi, magyar

magyar-eszkozok-divi-hez/init.php 85% from 13 tests

"Magyar kiegészítésék Divi-hez" version 0.0.25's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("magyar-eszkozok-divi-hez.php" instead of "init.php")

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
Good job! No executable or dangerous file extensions detected14,095 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PO File76,7228,20013,735
PHP77727360

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin