78% ebook-woohook

Code Review | = Plugin Name

WordPress plugin = Plugin Name scored78%from 54 tests.

About plugin

  • Plugin page: ebook-woohook
  • Plugin version: 4.1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3.1
  • WordPress version: 6.3.1
  • First release: Dec 1, 2020
  • Latest release: Sep 14, 2023
  • Number of updates: 39
  • Update frequency: every 44.9 days
  • Top authors: looknear (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,437 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.20MB] [CPU: ▼8.58ms] Passed 4 tests

Analyzing server-side resources used by = Plugin Name
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2041.60 ▼2.05
Dashboard /wp-admin3.50 ▲0.1949.17 ▼2.07
Posts /wp-admin/edit.php3.61 ▲0.2551.75 ▼2.32
Add New Post /wp-admin/post-new.php6.10 ▲0.2186.09 ▼27.87
Media Library /wp-admin/upload.php3.42 ▲0.1940.15 ▲1.17
eBook WooSell /wp-admin/tools.php?page=epubsystems_woo3.4236.96

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for = Plugin Name
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲14413.80 ▼0.938.53 ▲6.9044.46 ▼1.92
Dashboard /wp-admin2,203 ▲265.75 ▲0.1293.17 ▲0.6337.06 ▼3.87
Posts /wp-admin/edit.php2,108 ▲52.00 ▲0.0335.76 ▼7.7833.42 ▼3.30
Add New Post /wp-admin/post-new.php1,533 ▲723.78 ▲0.12672.71 ▼55.8565.86 ▲11.77
Media Library /wp-admin/upload.php1,402 ▲24.27 ▲0.04101.59 ▼15.4149.01 ▼0.36
eBook WooSell /wp-admin/tools.php?page=epubsystems_woo9572.0124.1442.47

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/ebook-woohook/public/partials/epubsystems_woo-public-display.php
    • > /wp-content/plugins/ebook-woohook/admin/partials/modal-convert-to-ebook.php
    • > /wp-content/plugins/ebook-woohook/admin/partials/modal-copy-sku-to-ebook-code.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ebook-woohook/admin/partials/epubsystems_woo-admin-display.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 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
8 plugin tags: digital books, books distributing, epub, digital reading, epub3...

ebook-woohook/epubsystems_woo.php 85% from 13 tests

The entry point to "= Plugin Name" version 4.1.9 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: The principal plugin file should be the same as the plugin slug ("ebook-woohook.php" instead of "epubsystems_woo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,002 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP14314789915
JavaScript2266259
CSS291428

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity16.00
▷ Minimum class complexity1.00
▷ Maximum class complexity83.00
Average method complexity3.02
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods52
▷ Static methods23.85%
▷ Public methods4280.77%
▷ Protected methods00.00%
▷ Private methods1019.23%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin