Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/libreli/admin/class-libreli-manage-page.php+77
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.53MB] [CPU: ▲0.18ms] Passed 4 tests
Server-side resources used by Libreli
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.00 ▲0.54 | 44.92 ▲1.36 |
Dashboard /wp-admin | 3.83 ▲0.53 | 49.32 ▲1.13 |
Posts /wp-admin/edit.php | 3.88 ▲0.53 | 52.08 ▲1.93 |
Add New Post /wp-admin/post-new.php | 6.50 ▲0.62 | 91.06 ▼3.71 |
Media Library /wp-admin/upload.php | 3.76 ▲0.53 | 37.69 ▲2.29 |
All Books /wp-admin/edit.php?post_type=lbrty_book | 3.80 | 36.24 |
Libreli Book Manager /wp-admin/edit.php?post_type=lbrty_book&page=lbrty_general_settings | 3.66 | 30.86 |
Add New Book /wp-admin/post-new.php?post_type=lbrty_book | 3.76 | 45.64 |
Server storage [IO: ▲0.19MB] [DB: ▲0.31MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
lbrty_settings_display_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
lbrty_settings_general_options |
lbrty_settings_advanced_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Libreli
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,955 ▲198 | 14.09 ▼0.29 | 5.80 ▲3.84 | 46.61 ▲5.96 |
Dashboard /wp-admin | 2,270 ▲85 | 5.13 ▼0.77 | 100.94 ▲1.13 | 39.37 ▼3.05 |
Posts /wp-admin/edit.php | 2,140 ▲51 | 2.33 ▲0.34 | 43.24 ▲1.69 | 37.91 ▲3.65 |
Add New Post /wp-admin/post-new.php | 6,243 ▲4,701 | 18.99 ▲0.79 | 883.81 ▲275.58 | 38.01 ▼22.67 |
Media Library /wp-admin/upload.php | 1,459 ▲68 | 4.33 ▲0.09 | 91.88 ▼6.74 | 41.41 ▼1.50 |
All Books /wp-admin/edit.php?post_type=lbrty_book | 1,101 | 2.43 | 34.01 | 29.70 |
Libreli Book Manager /wp-admin/edit.php?post_type=lbrty_book&page=lbrty_general_settings | 928 | 2.02 | 30.33 | 44.89 |
Add New Book /wp-admin/post-new.php?post_type=lbrty_book | 1,568 | 2.75 | 51.05 | 33.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=lbrty_book
- > Notice in wp-content/plugins/libreli/includes/class-libreli-post-metabox.php+355
Undefined index: post
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
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/libreli/admin/partials/libreli-admin-display.php
- > /wp-content/plugins/libreli/public/partials/libreli-public-display.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/libreli/includes/class-libreli-activator.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/libreli/includes/class-libreli-deactivator.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/libreli/blocks/lbrty-dropdown.php:56
- > 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, but this is not an exhaustive test
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
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== libreli ===
)
libreli/libreli.php Passed 13 tests
The entry point to "Libreli" version 0.0.8 is a PHP file that has certain tags in its header comment area
120 characters long description:
Libreli automatically generates and keeps an always up-to-date list of the most popular retail sites selling your books.
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 plugin3,184 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 1,160 | 1,855 | 2,526 |
CSS | 4 | 16 | 40 | 241 |
LESS | 1 | 68 | 31 | 230 |
JavaScript | 3 | 84 | 114 | 187 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 14.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 2 | 10.53% |
▷ Concrete classes | 17 | 89.47% |
▷ Final classes | 0 | 0.00% |
Methods | 148 | |
▷ Static methods | 19 | 12.84% |
▷ Public methods | 121 | 81.76% |
▷ Protected methods | 18 | 12.16% |
▷ Private methods | 9 | 6.08% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG files were detected