Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.56MB] [CPU: ▲2.64ms] 75% from 4 tests
This is a short check of server-side resources used by WordPress Book Plugin for Displaying Books in Grid, Flip, Slider, Popup Layout and more
Please fix the following
- CPU: Total CPU usage must kept under 500.00ms (currently 648.46ms on /wp-admin/edit.php?post_type=gs_bookshowcase&page=gs-books-plugins-premium)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.00 ▲0.54 | 41.75 ▼1.79 |
Dashboard /wp-admin | 3.92 ▲0.62 | 64.20 ▲13.35 |
Posts /wp-admin/edit.php | 3.97 ▲0.62 | 64.73 ▲13.26 |
Add New Post /wp-admin/post-new.php | 6.44 ▲0.55 | 96.71 ▼5.87 |
Media Library /wp-admin/upload.php | 3.76 ▲0.53 | 43.80 ▲4.94 |
Add New Book /wp-admin/post-new.php?post_type=gs_bookshowcase | 3.96 | 57.49 |
GS Plugins Lite /wp-admin/edit.php?post_type=gs_bookshowcase&page=gs-books-plugins-lite | 4.13 | 645.96 |
Books Showcase /wp-admin/edit.php?post_type=gs_bookshowcase | 3.88 | 46.23 |
Help & Usage /wp-admin/edit.php?post_type=gs_bookshowcase&page=gs-books-plugins-help | 3.76 | 41.21 |
GS Plugins Pro /wp-admin/edit.php?post_type=gs_bookshowcase&page=gs-books-plugins-premium | 3.92 | 648.46 |
Bookshowcase Settings /wp-admin/edit.php?post_type=gs_bookshowcase&page=bookshowcase-settings | 3.76 | 40.63 |
Server storage [IO: ▲1.44MB] [DB: ▲0.04MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
gs_bookshowcase_style_settings |
can_compress_scripts |
widget_theysaidso_widget |
gs_bookshowcase_settings |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WordPress Book Plugin for Displaying Books in Grid, Flip, Slider, Popup Layout and more: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,136 ▲375 | 15.17 ▲0.80 | 8.30 ▲6.68 | 38.85 ▼1.56 |
Dashboard /wp-admin | 2,425 ▲245 | 6.51 ▲0.83 | 115.61 ▲20.87 | 40.94 ▼3.55 |
Posts /wp-admin/edit.php | 2,357 ▲254 | 3.86 ▲1.85 | 56.79 ▲19.74 | 38.31 ▼0.11 |
Add New Post /wp-admin/post-new.php | 1,605 ▲76 | 17.78 ▼0.08 | 661.96 ▲23.13 | 37.08 ▼14.53 |
Media Library /wp-admin/upload.php | 1,490 ▲90 | 4.63 ▲0.42 | 109.93 ▲1.30 | 45.90 ▲0.69 |
Add New Book /wp-admin/post-new.php?post_type=gs_bookshowcase | 2,748 | 8.08 | 188.20 | 74.75 |
GS Plugins Lite /wp-admin/edit.php?post_type=gs_bookshowcase&page=gs-books-plugins-lite | 2,757 | 3.38 | 50.84 | 119.50 |
Books Showcase /wp-admin/edit.php?post_type=gs_bookshowcase | 1,348 | 3.69 | 49.50 | 29.58 |
Help & Usage /wp-admin/edit.php?post_type=gs_bookshowcase&page=gs-books-plugins-help | 1,167 | 3.34 | 43.61 | 43.78 |
GS Plugins Pro /wp-admin/edit.php?post_type=gs_bookshowcase&page=gs-books-plugins-premium | 2,419 | 3.37 | 44.40 | 51.89 |
Bookshowcase Settings /wp-admin/edit.php?post_type=gs_bookshowcase&page=bookshowcase-settings | 2,002 | 6.52 | 137.53 | 56.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- gs_bookshowcase_settings
- widget_theysaidso_widget
- gs_bookshowcase_style_settings
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gs-books-showcase/gs-bookshowcase-files/includes/gs-bookshowcase-meta-fields.php:10
- > PHP Fatal error
Uncaught Error: Class 'gs_Bookshowcase_WeDevs_Settings_API' not found in wp-content/plugins/gs-books-showcase/gs-bookshowcase-files/admin/gs_bookshowcase_options_config.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gs-books-showcase/gs-bookshowcase-files/gs-bookshowcase-scripts.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gs-books-showcase/gs-bookshowcase-files/gs-plugins/gs-plugins-free.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gs-books-showcase/gs-bookshowcase-files/includes/gs-bookshowcase-column.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_id() in wp-content/plugins/gs-books-showcase/gs-bookshowcase-files/includes/templates/gs_bookshowcase_structure_1_square.php:4
- > PHP Notice
Undefined variable: output in wp-content/plugins/gs-books-showcase/gs-bookshowcase-files/includes/templates/gs_bookshowcase_structure_1_square.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/gs-books-showcase/gs-bookshowcase.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gs-books-showcase/gs-bookshowcase-files/gs-plugins/gs-plugins.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gs-books-showcase/gs-bookshowcase-files/gs-common-pages/gs-books-common-pages.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/edit.php?post_type=gs_bookshowcase&page=bookshowcase-settings
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/edit.php?post_type=gs_bookshowcase&page=bookshowcase-settings
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: book review plugin, book plugin, book showcase plugin, book review plugin wordpress
gs-books-showcase/gs-bookshowcase.php 77% from 13 tests
The principal PHP file in "WordPress Book Plugin for Displaying Books in Grid, Flip, Slider, Popup Layout and more" v. 1.3.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: Keep the plugin description shorter than 140 characters (currently 347 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gs-books-showcase.php" instead of "gs-bookshowcase.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin7,943 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 796 | 951 | 3,373 |
CSS | 7 | 169 | 34 | 3,253 |
SVG | 2 | 0 | 0 | 566 |
Sass | 1 | 101 | 6 | 521 |
JavaScript | 2 | 58 | 73 | 209 |
JSON | 1 | 0 | 0 | 21 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 30.11 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 149 | |
▷ Static methods | 3 | 2.01% |
▷ Public methods | 115 | 77.18% |
▷ Protected methods | 6 | 4.03% |
▷ Private methods | 28 | 18.79% |
Functions | 35 | |
▷ Named functions | 34 | 97.14% |
▷ Anonymous functions | 1 | 2.86% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
gs-bookshowcase-files/assets/img/no_img.png | 8.45KB | 3.71KB | ▼ 56.07% |
gs-bookshowcase-files/assets/img/icon-128x128.png | 11.88KB | 5.18KB | ▼ 56.38% |