84% ezfunnels

Code Review | EZFunnels

WordPress plugin EZFunnels scored84%from 54 tests.

About plugin

  • Plugin page: ezfunnels
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.8-5.8.0
  • WordPress version: 6.3.1
  • First release: Jun 6, 2018
  • Latest release: Aug 31, 2021
  • Number of updates: 5
  • Update frequency: every 236.6 days
  • Top authors: ezmarketing (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /857 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
Install script ran successfully

Server metrics [RAM: ▲0.82MB] [CPU: ▲159.40ms] Passed 4 tests

This is a short check of server-side resources used by EZFunnels
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.28 ▲0.8247.09 ▲1.31
Dashboard /wp-admin4.14 ▲0.80309.63 ▲243.06
Posts /wp-admin/edit.php4.19 ▲0.84270.71 ▲222.92
Add New Post /wp-admin/post-new.php6.75 ▲0.86297.99 ▲194.08
Media Library /wp-admin/upload.php4.07 ▲0.84257.79 ▲219.30

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 70 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
_ezf_activation_status
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for EZFunnels
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.72 ▲0.371.83 ▲0.0442.73 ▼5.39
Dashboard /wp-admin2,198 ▲215.65 ▼0.0087.33 ▼3.5785.43 ▲40.53
Posts /wp-admin/edit.php2,118 ▲181.97 ▲0.0135.56 ▲0.0334.47 ▼3.07
Add New Post /wp-admin/post-new.php1,697 ▲17122.52 ▼0.41706.12 ▲17.4546.41 ▼6.30
Media Library /wp-admin/upload.php1,421 ▲244.15 ▼0.0899.73 ▼5.5879.15 ▲31.59

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
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • _ezf_activation_status
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% 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 everything seems fine, this is not an exhaustive test

SRP 50% 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
  • 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'EZF\\Classes\\Controller' not found in wp-content/plugins/ezfunnels/includes/controllers/funnels.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'EZF\\Classes\\Models\\WP' not found in wp-content/plugins/ezfunnels/includes/models/user.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'EZF\\Classes\\Service' not found in wp-content/plugins/ezfunnels/includes/services/locale.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function EZF\\add_action() in wp-content/plugins/ezfunnels/ezfunnels.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'EZF\\Helpers\\View' not found in wp-content/plugins/ezfunnels/assets/dashboard/views/options/header/header.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'EZF\\Classes\\Controller' not found in wp-content/plugins/ezfunnels/includes/controllers/design.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'EZF\\Classes\\Options\\Page' not found in wp-content/plugins/ezfunnels/includes/controllers/options/pages/general/page.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'EZF\\Classes\\Options\\Section' not found in wp-content/plugins/ezfunnels/includes/controllers/options/pages/general/sections/general.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'EZF\\Classes\\Models\\WP' not found in wp-content/plugins/ezfunnels/includes/models/variation.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'EZF\\Classes\\Models\\WP' not found in wp-content/plugins/ezfunnels/includes/models/funnel.php:13

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 issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (14 tag instead of maximum 10)
You can take inspiration from this readme.txt

ezfunnels/ezfunnels.php 92% from 13 tests

This is the main PHP file of "EZFunnels" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin4,497 lines of code in 57 files:
LanguageFilesBlank linesComment linesLines of code
PHP459723,4933,153
CSS44717489
JavaScript47220339
Sass1630318
PO File17681183
SVG20015

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity17.79
▷ Minimum class complexity1.00
▷ Maximum class complexity73.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces11
Interfaces0
Traits0
Classes24
▷ Abstract classes28.33%
▷ Concrete classes2291.67%
▷ Final classes1568.18%
Methods318
▷ Static methods13943.71%
▷ Public methods29793.40%
▷ Protected methods144.40%
▷ Private methods72.20%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/dashboard/images/minimal-logo.png1.48KB1.04KB▼ 29.79%
assets/dashboard/images/without_preview.png6.33KB6.35KB0.00%
assets/dashboard/images/logo.png5.13KB5.14KB0.00%