78% ezpizee

Code Review | Ezpizee Connector

WordPress plugin Ezpizee Connector scored78%from 54 tests.

About plugin

  • Plugin page: ezpizee
  • Plugin version: 0.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.6
  • WordPress version: 6.3.1
  • First release: Apr 12, 2021
  • Latest release: Apr 12, 2021
  • Number of updates: 7
  • Update frequency: every 12.9 days
  • Top authors: nimsothea (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /462 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.45MB] [CPU: ▼2.69ms] Passed 4 tests

An overview of server-side resources used by Ezpizee Connector
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.3040.29 ▼8.04
Dashboard /wp-admin3.80 ▲0.5049.83 ▼2.89
Posts /wp-admin/edit.php3.85 ▲0.4951.23 ▲2.51
Add New Post /wp-admin/post-new.php6.39 ▲0.5197.79 ▼2.34
Media Library /wp-admin/upload.php3.72 ▲0.4940.22 ▲3.69
Ezpizee /wp-admin/options-general.php?page=ezpizee_install3.7035.75

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 418 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_ezpizee_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ezpizee Connector
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.17 ▼1.234.28 ▲2.3941.86 ▲0.04
Dashboard /wp-admin2,217 ▲264.86 ▼1.04108.19 ▲9.8044.96 ▲1.24
Posts /wp-admin/edit.php2,097 ▲112.01 ▼0.0438.48 ▲2.4934.90 ▼1.73
Add New Post /wp-admin/post-new.php1,521 ▼723.06 ▼0.17594.39 ▼14.5749.34 ▼7.15
Media Library /wp-admin/upload.php1,396 ▲54.28 ▲0.0896.50 ▲0.6240.59 ▼3.28
Ezpizee /wp-admin/options-general.php?page=ezpizee_install8872.0725.4826.49

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_ezpizee_widget
    • theysaidso_admin_options

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 5× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/ezpizee/ezpzlib/vendor/masterminds/html5/bin/entities.php
    • > /wp-content/plugins/ezpizee/asset/html/bail-on-activation.php
    • > /wp-content/plugins/ezpizee/ezpizee.php
    • > /wp-content/plugins/ezpizee/index.php
    • > /wp-content/plugins/ezpizee/asset/html/install.php
  • 143× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Handlebars\\Helper' not found in wp-content/plugins/ezpizee/ezpzlib/vendor/webconsol/php-hbs-helpers/src/Handlebars/Helpers/DateHelper.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'Handlebars\\Helper' not found in wp-content/plugins/ezpizee/ezpzlib/vendor/webconsol/php-hbs-helpers/src/Handlebars/Helpers/RequireHelper.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'Lcobucci\\JWT\\Validator' not found in wp-content/plugins/ezpizee/ezpzlib/vendor/lcobucci/jwt/src/Validation/Validator.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'EzpizeeWordPress\\ContextProcessors\\BaseContextProcessor' not found in wp-content/plugins/ezpizee/lib/src/EzpizeeWordPress/ContextProcessors/AuthenticatedUser/ContextProcessor.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Lcobucci\\JWT\\Signer\\Hmac' not found in wp-content/plugins/ezpizee/ezpzlib/vendor/lcobucci/jwt/src/Signer/Hmac/Sha256.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Lcobucci\\JWT\\Signer\\Ecdsa' not found in wp-content/plugins/ezpizee/ezpzlib/vendor/lcobucci/jwt/src/Signer/Ecdsa/Sha512.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Lcobucci\\JWT\\Signer\\Hmac' not found in wp-content/plugins/ezpizee/ezpzlib/vendor/lcobucci/jwt/src/Signer/Hmac/Sha512.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'SendGrid\\Mail\\EmailAddress' not found in wp-content/plugins/ezpizee/ezpzlib/vendor/sendgrid/sendgrid/lib/mail/Bcc.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Handlebars\\Processors\\Processor' not found in wp-content/plugins/ezpizee/ezpzlib/vendor/webconsol/php-hbs-helpers/src/Handlebars/Processors/GX2CMS.php:21
    • > PHP Fatal error
      Uncaught Error: Interface 'Handlebars\\Helper' not found in wp-content/plugins/ezpizee/ezpzlib/vendor/webconsol/php-hbs-helpers/src/Handlebars/Helpers/IfNotHelper.php:10

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 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: e-commerce, saas

ezpizee/ezpizee.php Passed 13 tests

The primary PHP file in "Ezpizee Connector" version 0.0.3 is used by WordPress to initiate all plugin functionality
102 characters long description:
For accessing Ezpizee Portal right inside WordPress and integrating Ezpizee e-commerce with WordPress.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected38,097 lines of code in 401 files:
LanguageFilesBlank linesComment linesLines of code
PHP3545,55413,64935,476
JSON22001,385
Markdown2051501,192
XML10219
JavaScript1009
Bourne Shell1207
Handlebars1005
CSS1004

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
The following items need your attention
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 104)
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity14.12
▷ Minimum class complexity1.00
▷ Maximum class complexity470.00
Average method complexity3.22
▷ Minimum method complexity1.00
▷ Maximum method complexity104.00
Code structure
Namespaces59
Interfaces19
Traits0
Classes388
▷ Abstract classes205.15%
▷ Concrete classes36894.85%
▷ Final classes5414.67%
Methods2,483
▷ Static methods46618.77%
▷ Public methods1,84474.27%
▷ Protected methods44617.96%
▷ Private methods1937.77%
Functions41
▷ Named functions37.32%
▷ Anonymous functions3892.68%
Constants322
▷ Global constants144.35%
▷ Class constants30895.65%
▷ Public constants308100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
asset/images/favicon-32x32.png1.89KB1.46KB▼ 22.72%