Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/ebook-store/ebook_store.php+62
Undefined index: do
Server metrics [RAM: ▼1.79MB] [CPU: ▼52.72ms] Passed 4 tests
Server-side resources used by Ebook Store
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.20 ▼1.26 | 4.34 ▼37.31 |
Dashboard /wp-admin | 2.23 ▼1.08 | 7.90 ▼43.66 |
Posts /wp-admin/edit.php | 2.23 ▼1.14 | 6.38 ▼42.46 |
Add New Post /wp-admin/post-new.php | 2.23 ▼3.67 | 9.15 ▼87.46 |
Media Library /wp-admin/upload.php | 2.23 ▼1.01 | 6.36 ▼28.61 |
Publishers /wp-admin/edit.php?post_type=ebook_publisher | 2.23 | 6.52 |
Ebooks /wp-admin/edit.php?post_type=ebook | 2.23 | 8.13 |
Add New Ebook /wp-admin/post-new.php?post_type=ebook | 2.23 | 6.25 |
Ebook Categories /wp-admin/edit-tags.php?taxonomy=ebook_category&post_type=ebook | 2.23 | 7.05 |
Authors /wp-admin/edit.php?post_type=ebook_author | 2.23 | 6.15 |
Orders /wp-admin/edit.php?post_type=ebook_order | 2.23 | 6.75 |
Orders - Reports /wp-admin/edit.php?post_type=ebook&page=ebook-store-order_reports | 2.23 | 6.73 |
Settings /wp-admin/edit.php?post_type=ebook&page=settings-page | 2.23 | 7.36 |
Orders - New Issue /wp-admin/edit.php?post_type=ebook&page=ebook-store-add-issue-page | 2.23 | 6.48 |
Server storage [IO: ▲6.56MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 505 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Ebook Store
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,996 ▲245 | 14.22 ▼0.13 | 1.82 ▲0.08 | 39.21 ▼4.83 |
Dashboard /wp-admin | 2,379 ▲202 | 5.60 ▼0.03 | 92.38 ▼8.52 | 46.05 ▼1.35 |
Posts /wp-admin/edit.php | 2,274 ▲174 | 2.12 ▲0.15 | 41.72 ▼0.33 | 38.77 ▲2.41 |
Add New Post /wp-admin/post-new.php | 6,331 ▲4,805 | 26.01 ▲2.62 | 840.72 ▲169.20 | 63.73 ▲8.47 |
Media Library /wp-admin/upload.php | 1,569 ▲175 | 4.24 ▲0.07 | 98.83 ▼2.42 | 46.52 ▲0.37 |
Publishers /wp-admin/edit.php?post_type=ebook_publisher | 1,279 | 2.12 | 36.50 | 34.46 |
Ebooks /wp-admin/edit.php?post_type=ebook | 1,302 | 2.06 | 37.38 | 36.93 |
Add New Ebook /wp-admin/post-new.php?post_type=ebook | 3,066 | 8.07 | 188.00 | 160.39 |
Ebook Categories /wp-admin/edit-tags.php?taxonomy=ebook_category&post_type=ebook | 1,446 | 2.27 | 30.79 | 36.62 |
Authors /wp-admin/edit.php?post_type=ebook_author | 1,279 | 2.13 | 37.85 | 32.33 |
Ebook Store /wp-admin/ebook_options.php | 26 | 0.41 | 0.08 | 11.89 |
Orders /wp-admin/edit.php?post_type=ebook_order | 1,317 | 2.13 | 38.18 | 32.23 |
Orders - Reports /wp-admin/edit.php?post_type=ebook&page=ebook-store-order_reports | 1,506 | 5.53 | 42.64 | 67.61 |
Settings /wp-admin/edit.php?post_type=ebook&page=settings-page | 3,615 | 4.03 | 87.53 | 59.97 |
Orders - New Issue /wp-admin/edit.php?post_type=ebook&page=ebook-store-add-issue-page | 1,020 | 2.04 | 22.65 | 26.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/ebook-store/ebook_store.php+62
Undefined index: do
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 14 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ebook&page=ebook-store-add-issue-page
- > Notice in wp-content/plugins/ebook-store/ebook_store.php+62
Undefined index: do
- 14 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ebook&page=ebook-store-add-issue-page
- > Notice in wp-content/plugins/ebook-store/ebook_store.php+221
Undefined index: post_type
- 43 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ebook&page=ebook-store-add-issue-page
- > Notice in wp-content/plugins/ebook-store/ebook_store.php+75
Undefined index: task
- 14 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ebook&page=ebook-store-add-issue-page
- > Notice in wp-content/plugins/ebook-store/functions.php+1633
Undefined index: wc_order
- 14 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ebook&page=ebook-store-add-issue-page
- > Notice in wp-content/plugins/ebook-store/functions.php+1636
Undefined index: ebook_key
- 45 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ebook&page=ebook-store-add-issue-page
- > Notice in wp-content/plugins/ebook-store/ebook_store_add_issue_page_callback.php+3
Undefined index: action
- 15 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ebook&page=ebook-store-add-issue-page
- > Notice in wp-content/plugins/ebook-store/functions.php+3419
Undefined index: export
- 14 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ebook&page=ebook-store-add-issue-page
- > Notice in wp-content/plugins/ebook-store/functions.php+3197
Undefined index: woocommerce_product_id
- > GET request to /wp-admin/post-new.php?post_type=ebook
- > Notice in wp-content/plugins/ebook-store/functions.php+226
Undefined index: ebook_order_nonce
- > GET request to /wp-admin/post-new.php?post_type=ebook
- > Notice in wp-content/plugins/ebook-store/functions.php+343
Undefined variable: html
- > GET request to /wp-admin/post-new.php?post_type=ebook
- > Notice in wp-content/plugins/ebook-store/functions.php+389
Undefined variable: paypal_currency
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=ebook
- > Notice in wp-content/plugins/ebook-store/functions.php+421
Undefined index: url
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=ebook
- > Notice in wp-content/plugins/ebook-store/functions.php+430
Undefined index: ebook_price
- > GET request to /wp-admin/post-new.php?post_type=ebook
- > Notice in wp-content/plugins/ebook-store/EbookStoreEbook.class.php+16
Undefined index: file
- 8 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=ebook
- > Notice in wp-content/plugins/ebook-store/EbookStoreEbook.class.php+62
String offset cast occurred
- > GET request to /wp-admin/post-new.php?post_type=ebook
- > Notice in wp-content/plugins/ebook-store/EbookStoreEbook.class.php+19
Undefined index: type
- > GET request to /wp-admin/post-new.php?post_type=ebook
- > Notice in wp-content/plugins/ebook-store/EbookStoreEbook.class.php+22
Undefined index: ebook_wp_custom_attachment
- > GET request to /wp-admin/post-new.php?post_type=ebook
- > Notice in wp-content/plugins/ebook-store/EbookStoreEbook.class.php+34
Undefined index: ebook_wp_custom_attachment_mobi
- > GET request to /wp-admin/post-new.php?post_type=ebook
- > Notice in wp-content/plugins/ebook-store/EbookStoreEbook.class.php+34
Undefined index: ebook_wp_custom_attachment_epub
- > GET request to /wp-admin/post-new.php?post_type=ebook
- > Notice in wp-content/plugins/ebook-store/EbookStoreEbook.class.php+34
Undefined index: ebook_wp_custom_attachment_txt
- > GET request to /wp-admin/post-new.php?post_type=ebook
- > Notice in wp-content/plugins/ebook-store/EbookStoreEbook.class.php+34
Undefined index: ebook_wp_custom_attachment_zip
- > GET request to /wp-admin/post-new.php?post_type=ebook
- > Notice in wp-content/plugins/ebook-store/EbookStoreEbook.class.php+34
Undefined index: ebook_wp_custom_attachment_mp3
- > GET request to /wp-admin/post-new.php?post_type=ebook
- > Notice in wp-content/plugins/ebook-store/EbookStoreEbook.class.php+34
Undefined index: ebook_wp_custom_attachment_mp4
- > GET request to /wp-admin/post-new.php?post_type=ebook
- > Notice in wp-content/plugins/ebook-store/functions.php+3533
Undefined property: EbookStoreEbook::$formats
- > GET request to /wp-admin/post-new.php?post_type=ebook
- > Notice in wp-content/plugins/ebook-store/functions.php+3544
Undefined variable: i
- 7 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=ebook
- > Notice in wp-content/plugins/ebook-store/functions.php+3551
Undefined property: EbookStoreEbook::$files
- 7 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=ebook
- > Notice in wp-content/plugins/ebook-store/functions.php+3551
Trying to access array offset on value of type null
- > GET request to /wp-admin/post-new.php?post_type=ebook
- > Notice in wp-content/plugins/ebook-store/functions.php+426
Undefined variable: ebook_authors
- > GET request to /wp-admin/post-new.php?post_type=ebook
- > Notice in wp-content/plugins/ebook-store/functions.php+433
Undefined variable: ebook_publishers
- > GET request to /wp-admin/post-new.php?post_type=ebook
- > Notice in wp-content/plugins/ebook-store/functions.php+435
Undefined index: ebook_date
- > GET request to /wp-admin/post-new.php?post_type=ebook
- > Notice in wp-content/plugins/ebook-store/functions.php+436
Undefined index: ebook_pages
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=ebook
- > Notice in wp-content/plugins/ebook-store/functions.php+458
Undefined index: donate_or_download
- > GET request to /wp-admin/edit.php?post_type=ebook&page=settings-page
- > Notice in wp-content/plugins/ebook-store/ebook_options.php+127
Undefined variable: task
- > GET request to /wp-admin/edit.php?post_type=ebook&page=settings-page
- > Notice in wp-content/plugins/ebook-store/ebook_options.php+229
Undefined index: tab
SRP 0% 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× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/ebook-store/fpdi/FPDF-master/tutorial/tuto7.php
- > /wp-content/plugins/ebook-store/fpdi/fpdi-protection-master/local-tests/simple.php
- > /wp-content/plugins/ebook-store/fpdi/FPDF-master/tutorial/tuto3.php
- > /wp-content/plugins/ebook-store/fpdi/FPDF-master/tutorial/makefont.php
- > /wp-content/plugins/ebook-store/fpdi/FPDF-master/tutorial/tuto6.php
- > /wp-content/plugins/ebook-store/fpdi/FPDF-master/tutorial/tuto5.php
- > /wp-content/plugins/ebook-store/fpdi/tutorial/tuto3.php
- > /wp-content/plugins/ebook-store/fpdi/tutorial/makefont.php
- > /wp-content/plugins/ebook-store/fpdi/tutorial/tuto6.php
- > /wp-content/plugins/ebook-store/fpdi/tutorial/tuto1.php
- 69× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'FPDF' not found in wp-content/plugins/ebook-store/fpdi/FPDI-master/src/FpdfTpl.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ebook-store/archive-ebook.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/ebook-store/settings-MailChimp.php:1
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/ebook-store/fpdi/FPDI-master/src/PdfParser/Type/PdfString.php:18
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\PdfParserException' not found in wp-content/plugins/ebook-store/fpdi/FPDI-master/src/PdfParser/Type/PdfTypeException.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/ebook-store/fpdi/fpdi-protection-master/tests/functional/FpdiProtectionTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/ebook-store/fpdi/FPDI-master/src/PdfParser/Type/PdfDictionary.php:20
- > PHP Fatal error
require_once(): Failed opening required 'fpdf_tpl.php' (include_path='.:/usr/share/php') in wp-content/plugins/ebook-store/includes/fpdi/fpdi.php on line 27
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/ebook-store/fpdi/FPDI-master/src/PdfParser/Type/PdfNumeric.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/ebook-store/settings-General.php:1
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/ebook_options.php
- > Network (severe)
wp-admin/ebook_options.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=ebook&page=settings-page
- > Console-api (warning) in unknown
https://v2.zopim.com/w?pJJOUNrd3F2XicGCyKN5BGmHdzK4VVuA 1795:56 "The Zopim widget embed code is invalid. Please email chat@zendesk.com with your account key: pJJOUNrd3F2XicGCyKN5BGmHdzK4VVuA"
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #4 (The Add New Order screen. If encryption is enabled, the files will also be delivered encrypted. Email with the files and/or links is also sent.), #5 (PayPal email for receiving payments, WP Affiliates and WooCommerce integration enabler.), #6 (PayPal return to merchant text, currency select and font size settings for the ebook order form.), #7 (License key field and PDF encryption settings for encryption, random password, blank password ability (still encrypted), login email as pdf password feature, PDF master password feature.), #8 (Disable PDF printing, modification, annotation forms, QR code watermarking with transaction / buyer data, buyer info watermark on each page feature. Ability to fill a form upon each order that you can design and add fields as you wish. Ability to require @kindle email for the email delivery mail to be sent directly to the buyer's device.), #9 (Mailchimp integration feature via API key. Link expiration setting and download limit. Email delivery and Attach files feature settings. This way the customer receives email with the files attached or just download links depending on configuration. Optional VAT settings.), #10 (Thank you page template editor, you can redesign it as desired.), #11 (Email delivery email editor, it can be customized/transated to meet your needs.), #12 (The form for the "Fill a form upon order" feature. You can customize the html code and add more fields.), #13 (WooCommerce integration, adding ebook store product type, ability to select which ebook to be delivered with it's additional formats. PDF file can be encrpyted.), #14 (WooCommerce download table for the ebook(s) in the cart. Users can buy multiple ebooks with WooCommerce shopping cart and Ebook Store plugin.)
- Tags: Please delete some tags, you are using 28 tag instead of maximum 10
ebook-store/ebook_store.php 85% from 13 tests
The principal PHP file in "Ebook Store" v. 5.788 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 590 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ebook-store.php" instead of "ebook_store.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Please fix the following items
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/ebook-store/payment_gateways/paypal/cert/api_cert_chain.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 18 | 3,705 | 3,640 | 43,533 |
PHP | 155 | 3,897 | 8,171 | 20,255 |
SVG | 19 | 35 | 18 | 12,733 |
HTML | 65 | 117 | 23 | 4,002 |
PO File | 4 | 817 | 832 | 2,181 |
CSS | 13 | 253 | 79 | 1,258 |
JSON | 7 | 0 | 0 | 453 |
Markdown | 7 | 121 | 0 | 362 |
YAML | 1 | 10 | 0 | 43 |
XML | 1 | 3 | 7 | 20 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 12.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 339.00 |
Average method complexity | 3.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 2 | |
Traits | 2 | |
Classes | 205 | |
▷ Abstract classes | 2 | 0.98% |
▷ Concrete classes | 203 | 99.02% |
▷ Final classes | 0 | 0.00% |
Methods | 871 | |
▷ Static methods | 38 | 4.36% |
▷ Public methods | 715 | 82.09% |
▷ Protected methods | 152 | 17.45% |
▷ Private methods | 4 | 0.46% |
Functions | 166 | |
▷ Named functions | 160 | 96.39% |
▷ Anonymous functions | 6 | 3.61% |
Constants | 91 | |
▷ Global constants | 30 | 32.97% |
▷ Class constants | 61 | 67.03% |
▷ Public constants | 61 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
40 compressed PNG files occupy 0.50MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/ViewerJS/images/toolbarButton-download.png | 0.50KB | 0.59KB | 0.00% |
includes/ViewerJS/images/nlnet.png | 5.27KB | 3.96KB | ▼ 24.81% |
img/zip.png | 1.56KB | 1.48KB | ▼ 5.14% |
fpdi/tutorial/logo.png | 2.32KB | 2.26KB | ▼ 2.57% |
img/yt-gray.png | 73.07KB | 73.28KB | 0.00% |