77% zlevnene-aplikace

Code Review | Zlevněné aplikace

WordPress plugin Zlevněné aplikace scored77%from 54 tests.

About plugin

  • Plugin page: zlevnene-aplikace
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.8
  • WordPress version: 6.3.1
  • First release: Jan 11, 2014
  • Latest release: Sep 12, 2014
  • Number of updates: 29
  • Update frequency: every 8.4 days
  • Top authors: marty_cz (89.66%)Pytheor (13.79%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /740 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.08MB] [CPU: ▼9.13ms] Passed 4 tests

Analyzing server-side resources used by Zlevněné aplikace
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.0527.39 ▼14.18
Dashboard /wp-admin2.97 ▼0.33320.48 ▲268.42
Posts /wp-admin/edit.php3.38 ▲0.0347.82 ▼7.03
Add New Post /wp-admin/post-new.php5.91 ▲0.0396.27 ▼16.67
Media Library /wp-admin/upload.php3.25 ▲0.0337.07 ▲1.37

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_za-widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Zlevněné aplikace
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲11513.85 ▼0.9011.28 ▲9.3943.12 ▼0.71
Dashboard /wp-admin2,198 ▲245.56 ▼0.0194.95 ▼3.1143.56 ▲1.71
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0436.05 ▲1.2933.20 ▼5.20
Add New Post /wp-admin/post-new.php1,526 ▼223.01 ▲0.12682.63 ▲18.1257.54 ▲4.90
Media Library /wp-admin/upload.php1,403 ▲34.20 ▼0.0498.47 ▼5.5244.75 ▼0.91

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_za-widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% 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 no errors were found, this is by no means 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
Please take a closer look at the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/zlevnene-aplikace/widget_template.php
    • > /wp-content/plugins/zlevnene-aplikace/ajax_template.php
  • 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: expired in wp-content/plugins/zlevnene-aplikace/ajax_template.php on line 1
    • > PHP Notice
      Undefined variable: title in wp-content/plugins/zlevnene-aplikace/widget_template.php on line 18
    • > PHP Notice
      Undefined variable: before_widget in wp-content/plugins/zlevnene-aplikace/widget_template.php on line 15
    • > PHP Notice
      Undefined variable: after_widget in wp-content/plugins/zlevnene-aplikace/widget_template.php on line 23
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/zlevnene-aplikace/widget.php:3
    • > PHP Notice
      Undefined variable: title in wp-content/plugins/zlevnene-aplikace/ajax_template.php on line 8
    • > PHP Notice
      Undefined variable: url in wp-content/plugins/zlevnene-aplikace/ajax_template.php on line 8
    • > PHP Notice
      Undefined variable: category in wp-content/plugins/zlevnene-aplikace/ajax_template.php on line 10
    • > PHP Notice
      Undefined variable: url in wp-content/plugins/zlevnene-aplikace/ajax_template.php on line 3
    • > PHP Notice
      Undefined variable: price_new in wp-content/plugins/zlevnene-aplikace/ajax_template.php on line 16

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Add descriptions for screenshots #1, #2 in zlevnene-aplikace/assets to your readme.txt
  • Tags: You are using too many tags: 16 tag instead of maximum 10
  • Donate link: Please fix this invalid url: ""
You can take inspiration from this readme.txt

zlevnene-aplikace/zlevneneaplikace.php 92% from 13 tests

The main PHP script in "Zlevněné aplikace" version 1.0.8 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("zlevnene-aplikace.php" instead of "zlevneneaplikace.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected128 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP4276121
SVG1005
CSS1001
JavaScript1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ 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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
3 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icons.png5.17KB2.03KB▼ 60.76%
screenshot-2.PNG67.17KB20.04KB▼ 70.16%
screenshot-1.PNG11.25KB4.72KB▼ 58.08%