Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.86MB] [CPU: ▼31.25ms] Passed 4 tests
This is a short check of server-side resources used by Ebook Downloader
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 41.94 ▼7.32 |
Dashboard /wp-admin | 3.09 ▼0.22 | 25.56 ▼28.99 |
Posts /wp-admin/edit.php | 3.09 ▼0.27 | 27.27 ▼24.07 |
Add New Post /wp-admin/post-new.php | 3.09 ▼2.80 | 29.50 ▼61.22 |
Media Library /wp-admin/upload.php | 3.09 ▼0.15 | 27.64 ▼10.72 |
All Ebook /wp-admin/edit.php?post_type=ebook | 3.09 | 27.11 |
Add New /wp-admin/post-new.php?post_type=ebook | 3.09 | 28.00 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 14 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_downloader_info |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Ebook Downloader
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲170 | 13.44 ▼1.16 | 7.84 ▲5.97 | 44.21 ▼1.64 |
Dashboard /wp-admin | 2,236 ▲56 | 5.58 ▲0.05 | 85.42 ▼16.44 | 39.59 ▼13.02 |
Posts /wp-admin/edit.php | 2,144 ▲47 | 2.03 ▼0.01 | 40.87 ▲4.78 | 35.81 ▼0.33 |
Add New Post /wp-admin/post-new.php | 1,575 ▲35 | 23.31 ▼0.17 | 606.48 ▼51.40 | 58.49 ▲4.28 |
Media Library /wp-admin/upload.php | 1,441 ▲44 | 4.22 ▼0.01 | 106.69 ▼4.25 | 44.96 ▼0.20 |
All Ebook /wp-admin/edit.php?post_type=ebook | 1,153 | 1.97 | 34.73 | 33.53 |
Add New /wp-admin/post-new.php?post_type=ebook | 2,636 | 7.63 | 171.59 | 72.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- The uninstall procedure failed, leaving 1 table in the database
- wp_downloader_info
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 6 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=ebook
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/post-new.php?post_type=ebook
- > Notice in wp-content/plugins/ebook-downloader/admin/create_ebook_post_type.php+87
Undefined index: ebook_price
- > GET request to /wp-admin/post-new.php?post_type=ebook
- > Notice in wp-content/plugins/ebook-downloader/admin/create_ebook_post_type.php+88
Undefined index: ebook_file
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ebook-downloader/admin/paypal_settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ebook-downloader/ebook_shortcode.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ebook-downloader/admin/create_ebook_post_type.php:2
- > PHP Warning
Use of undefined constant EBOOK_PLUGIN_PATH - assumed 'EBOOK_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ebook-downloader/load.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'EBOOK_PLUGIN_PATH/admin/create_ebook_post_type.php' (include_path='.:/usr/share/php') in wp-content/plugins/ebook-downloader/load.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ebook-downloader/ebook_plugin.php:18
- > PHP Warning
require_once(EBOOK_PLUGIN_PATH/admin/create_ebook_post_type.php): failed to open stream: No such file or directory in wp-content/plugins/ebook-downloader/load.php on line 2
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: download, ebook
ebook-downloader/ebook_plugin.php 92% from 13 tests
The main PHP script in "Ebook Downloader" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ebook-downloader.php" instead of "ebook_plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin436 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 171 | 33 | 393 |
JavaScript | 2 | 6 | 0 | 39 |
CSS | 1 | 32 | 0 | 4 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
3 PNG files occupy 0.14MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 4.73KB | 2.18KB | ▼ 53.93% |
icon/pdf.png | 1.39KB | 1.35KB | ▼ 3.09% |
assets/screenshot-1.png | 135.04KB | 28.87KB | ▼ 78.62% |