Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲5.70MB] [CPU: ▲31.05ms] 50% from 4 tests
Server-side resources used by BookPress - For Book Authors
The following require your attention
- CPU: You should keep total CPU usage under 500.00ms (currently 1,902.96ms on /wp-admin/admin.php?page=book-press-setting)
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.70MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.22 ▲5.76 | 64.89 ▲28.60 |
Dashboard /wp-admin | 9.24 ▲5.94 | 74.57 ▲27.09 |
Posts /wp-admin/edit.php | 9.24 ▲5.88 | 83.10 ▲40.52 |
Add New Post /wp-admin/post-new.php | 11.11 ▲5.22 | 1,129.79 ▲1,044.43 |
Media Library /wp-admin/upload.php | 9.26 ▲6.03 | 65.62 ▲27.98 |
Add New /wp-admin/post-new.php?post_type=book | 9.26 | 566.41 |
All Books /wp-admin/edit.php?post_type=book | 9.26 | 92.79 |
Account Settings /wp-admin/admin.php?page=book-press-setting | 9.26 | 1,902.96 |
Genres /wp-admin/edit-tags.php?taxonomy=genre&post_type=book | 9.26 | 79.31 |
Freemius Debug [v.2.5.8] /wp-admin/admin.php?page=freemius | 9.26 | 60.09 |
Server storage [IO: ▲4.41MB] [DB: ▲0.02MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 217 new files
Database: no new tables, 12 new options
New WordPress options |
---|
fs_active_plugins |
genre_children |
initialized_genres |
fs_debug_mode |
theysaidso_admin_options |
widget_book_press_widget |
widget_recent-comments |
fs_accounts |
widget_recent-posts |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
A check of browser resources used by BookPress - For Book Authors
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,293 ▲532 | 17.25 ▲2.91 | 58.79 ▲57.06 | 32.44 ▼10.53 |
Dashboard /wp-admin | 2,271 ▲94 | 5.81 ▲0.14 | 94.23 ▼7.45 | 40.89 ▼21.49 |
Posts /wp-admin/edit.php | 2,158 ▲58 | 2.31 ▲0.33 | 41.75 ▲6.75 | 38.55 ▲1.26 |
Add New Post /wp-admin/post-new.php | 1,418 ▼108 | 17.16 ▼5.95 | 578.87 ▼86.38 | 29.33 ▼29.58 |
Media Library /wp-admin/upload.php | 1,474 ▲74 | 4.27 ▲0.20 | 91.01 ▼24.82 | 47.31 ▼0.54 |
Add New /wp-admin/post-new.php?post_type=book | 4,455 | 4.71 | 98.19 | 46.66 |
All Books /wp-admin/edit.php?post_type=book | 3,223 | 2.41 | 38.79 | 32.97 |
Account Settings /wp-admin/admin.php?page=book-press-setting | 1,038 | 2.11 | 27.51 | 58.46 |
Genres /wp-admin/edit-tags.php?taxonomy=genre&post_type=book | 2,878 | 2.17 | 32.93 | 42.59 |
Freemius Debug [v.2.5.8] /wp-admin/admin.php?page=freemius | 1,128 | 1.98 | 29.64 | 27.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/book-press/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 13 options
- widget_theysaidso_widget
- widget_recent-comments
- fs_accounts
- widget_book_press_widget
- my_plugin_do_activation_redirect
- fs_debug_mode
- widget_recent-posts
- fs_active_plugins
- initialized_genres
- genre_children
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=book
- > Notice in wp-content/plugins/book-press/admin/class-book-press-admin.php+1427
Undefined variable: navigation_color
SRP 0% 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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/book-press/admin/partials/book-press-admin-display.php
- > /wp-content/plugins/book-press/public/partials/book-press-public-display.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/book-press/includes/class-book-press-widget.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/book-press/public/book-single-js-old.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/book-press/public/book-single.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/book-press/includes/class-book-press-pro-widget.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/book-press/public/book-single-old.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=freemius
- > Javascript (severe) in unknown
/wp-content/plugins/book-press/admin/js/book-press-admin.js?ver=1.2.4 35:38 Uncaught TypeError: $(...).dialog is not a function
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Requires at least: The plugin version is formatted incorrectly
book-press/book-press.php Passed 13 tests
The primary PHP file in "BookPress - For Book Authors" version 1.2.4 is used by WordPress to initiate all plugin functionality
71 characters long description:
Tools for authors to write and display their books easily on WordPress.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin47,136 lines of code in 168 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 134 | 8,507 | 17,965 | 37,233 |
JavaScript | 10 | 1,668 | 1,086 | 8,062 |
PO File | 7 | 520 | 556 | 1,140 |
CSS | 16 | 84 | 20 | 487 |
Markdown | 1 | 68 | 0 | 214 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,079)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 87.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,079.00 |
Average method complexity | 4.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 57 | |
▷ Abstract classes | 2 | 3.51% |
▷ Concrete classes | 55 | 96.49% |
▷ Final classes | 0 | 0.00% |
Methods | 1,356 | |
▷ Static methods | 199 | 14.68% |
▷ Public methods | 962 | 70.94% |
▷ Protected methods | 17 | 1.25% |
▷ Private methods | 377 | 27.80% |
Functions | 101 | |
▷ Named functions | 100 | 99.01% |
▷ Anonymous functions | 1 | 0.99% |
Constants | 147 | |
▷ Global constants | 100 | 68.03% |
▷ Class constants | 47 | 31.97% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/book-press.png | 12.77KB | 4.63KB | ▼ 63.71% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |