83% zotabox

Code Review | Zotabox - 20+ Promotional Sales tools to boost your subscribers and sales

WordPress plugin Zotabox - 20+ Promotional Sales tools to boost your subscribers and sales scored83%from 54 tests.

About plugin

  • Plugin page: zotabox
  • Plugin version: 1.9.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Jun 9, 2015
  • Latest release: Jul 25, 2023
  • Number of updates: 148
  • Update frequency: every 20.1 days
  • Top authors: zotabox (100%)

Code review

54 tests

User reviews

39 reviews

Install metrics

1,000+ active /49,859 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Server-side resources used by Zotabox - 20+ Promotional Sales tools to boost your subscribers and sales
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0254.03 ▲12.17
Dashboard /wp-admin3.32 ▲0.0248.42 ▲1.02
Posts /wp-admin/edit.php3.37 ▲0.0244.16 ▼6.32
Add New Post /wp-admin/post-new.php5.90 ▲0.0296.62 ▲6.37
Media Library /wp-admin/upload.php3.24 ▲0.0240.81 ▲6.20

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 14 new options
New WordPress options
access_key
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
ztb_source
ztb_status_message
db_upgraded
ztb_id
ztb_access_key
widget_recent-posts
...

Browser metrics Passed 4 tests

Checking browser requirements for Zotabox - 20+ Promotional Sales tools to boost your subscribers and sales
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲9713.35 ▼0.845.07 ▲3.4747.42 ▲4.03
Dashboard /wp-admin2,210 ▲225.84 ▲0.95109.78 ▲0.2592.06 ▲48.33
Posts /wp-admin/edit.php2,111 ▲222.05 ▲0.0333.79 ▼6.9833.56 ▼1.88
Add New Post /wp-admin/post-new.php1,685 ▲16322.60 ▼0.25608.05 ▲15.6449.85 ▼10.72
Media Library /wp-admin/upload.php1,410 ▲194.10 ▼0.12101.01 ▼0.6978.06 ▲32.28

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
  • Zombie WordPress options were found after uninstall: 14 options
    • ztb_id
    • ztb_source
    • ztb_access_key
    • widget_recent-comments
    • theysaidso_admin_options
    • ztb_status_disconnect
    • widget_recent-posts
    • ztb_status_message
    • ztb_domainid
    • ztb_email
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zotabox/zotabox.php:15

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 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Donate link: Invalid url: ""
  • Screenshots: Add images for these screenshots: #2 (Free widgets on dashboard), #3 (Premium widgets on dashboard)
  • Tags: There are too many tags (55 tag instead of maximum 10)
The official readme.txt might help

zotabox/zotabox.php 92% from 13 tests

This is the main PHP file of "Zotabox - 20+ Promotional Sales tools to boost your subscribers and sales" version 1.9.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 149 characters long)

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
Good job! No executable or dangerous file extensions detected480 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS234273
PHP11939167
JavaScript14040

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo-zotabox.png5.45KB2.43KB▼ 55.35%
assets/images/check.png2.96KB0.37KB▼ 87.47%
zotabox.png3.19KB0.44KB▼ 86.31%
assets/images/bg_body.png22.84KB9.83KB▼ 56.98%