78% plezi

Code Review | Plezi

WordPress plugin Plezi scored78%from 54 tests.

About plugin

  • Plugin page: plezi
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.0
  • WordPress version: 6.3.1
  • First release: Feb 26, 2021
  • Latest release: Jun 29, 2022
  • Number of updates: 16
  • Update frequency: every 30.5 days
  • Top authors: plezi (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /2,440 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.28MB] [CPU: ▼1.24ms] Passed 4 tests

This is a short check of server-side resources used by Plezi
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2741.68 ▼6.03
Dashboard /wp-admin3.58 ▲0.2854.84 ▲2.09
Posts /wp-admin/edit.php3.69 ▲0.3351.96 ▼1.64
Add New Post /wp-admin/post-new.php6.18 ▲0.2999.12 ▲0.63
Media Library /wp-admin/upload.php3.50 ▲0.2739.80 ▲6.85

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 63 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Plezi: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,979 ▲20813.53 ▼0.852.10 ▲0.0840.37 ▼5.06
Dashboard /wp-admin2,367 ▲1795.81 ▲0.94102.01 ▼13.5984.14 ▲42.79
Posts /wp-admin/edit.php2,127 ▲382.02 ▼0.0036.93 ▲0.6634.66 ▼2.75
Add New Post /wp-admin/post-new.php6,385 ▲4,87127.71 ▲10.07860.59 ▲174.8636.34 ▼15.45
Media Library /wp-admin/upload.php1,420 ▲294.27 ▲0.09103.22 ▲1.0675.11 ▲31.31
Forms /wp-admin/plezi-for-wordpress-forms.php260.440.0815.56
Setup /wp-admin/plezi-for-wordpress-configuration.php260.440.128.66
FAQ /wp-admin/plezi-for-wordpress-faq.php260.440.117.33

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/plezi/includes/class-plz-forms.php:6
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/plezi/includes/class-plz-forms.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'DiviExtension' not found in wp-content/plugins/plezi/module/includes/class-divi-plezi-form-module.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/plezi/module/includes/modules/PleziForm/PleziForm.php:2
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/plezi/includes/class-plz-forms.php on line 3
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/class-wp-list-table.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/plezi/includes/class-plz-forms.php on line 3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/plezi-for-wordpress-forms.php
    • > Network (severe)
    wp-admin/plezi-for-wordpress-forms.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/plezi-for-wordpress-configuration.php
    • > Network (severe)
    wp-admin/plezi-for-wordpress-configuration.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/plezi-for-wordpress-faq.php
    • > Network (severe)
    wp-admin/plezi-for-wordpress-faq.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: automation, forms, tracking, lead generation, plezi one...

plezi/plezi.php 85% from 13 tests

The entry point to "Plezi" version 1.0.4 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 144 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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 plugin4,560 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
CSS41201802,292
PHP16257281,348
JavaScript10760446
PO File1125191304
JSON40073
SVG80069
JSX13015
Sass23013

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity14.00
▷ Minimum class complexity1.00
▷ Maximum class complexity33.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods33
▷ Static methods00.00%
▷ Public methods3193.94%
▷ Protected methods26.06%
▷ Private methods00.00%
Functions45
▷ Named functions45100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin