10% ez-zenback

Code Review | EZ zenback

WordPress plugin EZ zenback scored10%from 54 tests.

About plugin

  • Plugin page: ez-zenback
  • Plugin version: 1.5.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.3.1
  • WordPress version: 6.3.1
  • First release: Jun 23, 2011
  • Latest release: Nov 8, 2013
  • Number of updates: 59
  • Update frequency: every 14.7 days
  • Top authors: redcocker (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /9,582 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/ez-zenback/ez-zenback.php+277
    Trying to access array offset on value of type bool

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

This is a short check of server-side resources used by EZ zenback
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0344.28 ▼1.08
Dashboard /wp-admin3.32 ▲0.0251.67 ▼0.26
Posts /wp-admin/edit.php3.38 ▲0.0257.13 ▲1.65
Add New Post /wp-admin/post-new.php5.91 ▲0.02100.71 ▲5.88
Media Library /wp-admin/upload.php3.25 ▲0.0239.35 ▲0.56
EZ zenback /wp-admin/options-general.php?page=ez-zenback-options3.1930.54

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 18 new options
New WordPress options
ez_zenback_updated
ez_zenback_before_post
ez_zenback_single
ez_zenback_code
ez_zenback_after_post
ez_zenback_exc
widget_recent-comments
recovery_mode_email_last_sent
ez_zenback_position
ez_zenback_checkver_stamp
...

Browser metrics Passed 4 tests

An overview of browser requirements for EZ zenback
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲4214.72 ▲0.091.56 ▼0.4640.52 ▼4.02
Dashboard /wp-admin2,209 ▲295.62 ▼0.0486.21 ▼8.2940.78 ▼2.07
Posts /wp-admin/edit.php2,114 ▲112.04 ▲0.0440.28 ▲0.6936.10 ▼2.53
Add New Post /wp-admin/post-new.php1,550 ▲2418.21 ▼4.97610.99 ▼100.5668.43 ▼0.70
Media Library /wp-admin/upload.php1,417 ▲234.18 ▲0.0696.53 ▼18.5943.80 ▼1.29
EZ zenback /wp-admin/options-general.php?page=ez-zenback-options1,0451.517.1242.36

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • recovery_mode_email_last_sent

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=ez-zenback-options
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=ez-zenback-options
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=ez-zenback-options
    • > Error in wp-content/plugins/ez-zenback/ez-zenback-admin.php+286
    Uncaught Error: Call to undefined function mysql_get_server_info() in wp-content/plugins/ez-zenback/ez-zenback-admin.php:286
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): ez_zenback_options_panel()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/admin.php(259): do_action()
    #4 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
    #5 {main}
    thrown

SRP 50% 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 trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ez-zenback/ez-zenback-widget.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/ez-zenback/del-old-options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ez-zenback/ez-zenback-shortcode.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/ez-zenback/ez-zenback.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ez-zenback/data-migration.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (This is setting panel.)
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
The official readme.txt is a good inspiration

ez-zenback/ez-zenback.php 85% from 13 tests

The principal PHP file in "EZ zenback" v. 1.5.2.2 is loaded by WordPress automatically on each request
The following require your attention:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Description: Keep the plugin description shorter than 140 characters (currently 478 characters long)

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
Everything looks great! No dangerous files found in this plugin1,070 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP761108894
PO File17483163
JavaScript12113

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.68
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin