79% zooza

Code Review | ZOOZA

WordPress plugin ZOOZA scored79%from 54 tests.

About plugin

  • Plugin page: zooza
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0.2
  • WordPress version: 6.3.1
  • First release: Oct 31, 2022
  • Latest release: Feb 10, 2023
  • Number of updates: 5
  • Update frequency: every 21.2 days
  • Top authors: zooza (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /242 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by ZOOZA
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0844.46 ▼1.68
Dashboard /wp-admin3.39 ▲0.0550.03 ▼19.30
Posts /wp-admin/edit.php3.51 ▲0.1548.10 ▼3.71
Add New Post /wp-admin/post-new.php5.99 ▲0.1188.72 ▼34.41
Media Library /wp-admin/upload.php3.32 ▲0.0939.86 ▲3.60
Zooza /wp-admin/options-general.php?page=zooza3.31308.12

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 13 new options
New WordPress options
zooza_calendar_page_id
can_compress_scripts
zooza_client_secret
zooza_registration_page_id
widget_recent-posts
zooza_api_key
theysaidso_admin_options
db_upgraded
zooza_profile_page_id
zooza_checkout_page_id
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for ZOOZA
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲17013.60 ▼0.988.01 ▲6.2641.93 ▲0.59
Dashboard /wp-admin2,214 ▲294.84 ▼1.08113.57 ▲5.7342.72 ▼0.08
Posts /wp-admin/edit.php2,094 ▲51.99 ▼0.0437.01 ▼2.2133.59 ▼4.16
Add New Post /wp-admin/post-new.php1,521 ▼1517.57 ▼5.53685.20 ▲34.2158.71 ▼0.05
Media Library /wp-admin/upload.php1,396 ▲114.21 ▼0.0699.73 ▼3.7046.78 ▼2.73
Zooza /wp-admin/options-general.php?page=zooza9342.0523.5429.53

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/zooza/public/partials/zooza-public-display.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/zooza/admin/partials/zooza-admin-display.php:18

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: zooza, widgets

zooza/zooza.php Passed 13 tests

The main PHP file in "ZOOZA" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
95 characters long description:
Plugin pre zákazníkov platformy Zooza pre jednoduché nastavenie registračných formulárov.

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
Success! There were no dangerous files found in this plugin413 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12189535407
JavaScript24546
CSS2080

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.10
Average class complexity2.57
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods38
▷ Static methods25.26%
▷ Public methods3284.21%
▷ Protected methods00.00%
▷ Private methods615.79%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin