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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 41.60 ▼2.05 |
Dashboard /wp-admin | 3.50 ▲0.19 | 49.17 ▼2.07 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 51.75 ▼2.32 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 86.09 ▼27.87 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 40.15 ▲1.17 |
eBook WooSell /wp-admin/tools.php?page=epubsystems_woo | 3.42 | 36.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲144 | 13.80 ▼0.93 | 8.53 ▲6.90 | 44.46 ▼1.92 |
Dashboard /wp-admin | 2,203 ▲26 | 5.75 ▲0.12 | 93.17 ▲0.63 | 37.06 ▼3.87 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 2.00 ▲0.03 | 35.76 ▼7.78 | 33.42 ▼3.30 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.78 ▲0.12 | 672.71 ▼55.85 | 65.86 ▲11.77 |
Media Library /wp-admin/upload.php | 1,402 ▲2 | 4.27 ▲0.04 | 101.59 ▼15.41 | 49.01 ▼0.36 |
eBook WooSell /wp-admin/tools.php?page=epubsystems_woo | 957 | 2.01 | 24.14 | 42.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 314 | 789 | 915 |
JavaScript | 2 | 26 | 62 | 59 |
CSS | 2 | 9 | 14 | 28 |
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 code | 0.29 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 2 | 3.85% |
▷ Public methods | 42 | 80.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 19.23% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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