77% zeevou

Code Review | Zeevou

WordPress plugin Zeevou scored77%from 54 tests.

About plugin

  • Plugin page: zeevou
  • Plugin version: 0.7.54
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-5.9.2
  • WordPress version: 6.3.1
  • First release: Jul 29, 2020
  • Latest release: Sep 13, 2023
  • Number of updates: 74
  • Update frequency: every 15.5 days
  • Top authors: zeevou (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /3,602 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.22MB] [CPU: ▼7.30ms] Passed 4 tests

This is a short check of server-side resources used by Zeevou
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2438.18 ▲0.18
Dashboard /wp-admin3.53 ▲0.1848.19 ▼9.37
Posts /wp-admin/edit.php3.64 ▲0.2846.25 ▼2.36
Add New Post /wp-admin/post-new.php6.12 ▲0.2382.75 ▼17.66
Media Library /wp-admin/upload.php3.45 ▲0.2245.09 ▲10.97

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 97 new files
Database: no new tables, 20 new options
New WordPress options
zeevou_border_radius
can_compress_scripts
zeevou_max_width
zeevou_plugin_version
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
zeevou_default_infants_no
...

Browser metrics Passed 4 tests

Checking browser requirements for Zeevou
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,919 ▲17314.07 ▼0.3110.83 ▲9.1041.81 ▲3.16
Dashboard /wp-admin2,220 ▲325.83 ▲0.9795.90 ▼7.0880.87 ▲36.42
Posts /wp-admin/edit.php2,103 ▲112.03 ▼0.0037.71 ▼6.5632.97 ▼5.09
Add New Post /wp-admin/post-new.php1,683 ▲16122.71 ▼0.77768.32 ▲97.8752.43 ▼0.61
Media Library /wp-admin/upload.php1,396 ▲144.23 ▲0.0498.23 ▼1.8569.99 ▲23.14

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 20 options in the database
    • can_compress_scripts
    • zeevou_default_infants_no
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • zeevou_token_date
    • zeevou_align_radio
    • zeevou_default_adults_no
    • zeevou_url
    • zeevou_access_token
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/zeevou/calculate_price.php
    • > /wp-content/plugins/zeevou/apply_voucher.php
    • > /wp-content/plugins/zeevou/connect_zeevou.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      require_once(): Failed opening required 'refresh_token.php' (include_path='.:/usr/share/php') in wp-content/plugins/zeevou/get_brands.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zeevou/zeevou.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #9 (You have to choose a brand and a property for each property page.), #10 (Property Search Widget: [zeevou-property-search]), #11 (Property Amenities Widget: [zeevou-property-amenities]), #12 (Property Description Widget: [zeevou-property-description]), #13 (Property Images Widget: [zeevou-property-images])
  • Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
Please take inspiration from this readme.txt

zeevou/zeevou.php 85% from 13 tests

"Zeevou" version 0.7.54's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 159 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected17,208 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript111,6106507,644
CSS75541155,610
SVG1002,671
PHP85071661,283

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions36
▷ Named functions36100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
58 compressed PNG files occupy 0.12MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/amenities/first-aid-kit.png0.43KB0.43KB0.00%
css/images/amenities/full-bathroom.png0.65KB0.65KB0.00%
css/images/amenities/heating.png0.41KB0.41KB0.00%
css/images/amenities/self-contained.png1.11KB1.45KB0.00%
css/images/amenities/full-bathrooms.png0.65KB0.65KB0.00%