Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.26MB] [CPU: ▼22.43ms] Passed 4 tests
A check of server-side resources used by Bg Book Publisher
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 31.44 ▼5.24 |
Dashboard /wp-admin | 3.35 ▲0.00 | 42.51 ▼35.31 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 41.58 ▼4.45 |
Add New Post /wp-admin/post-new.php | 4.72 ▼1.16 | 49.49 ▼44.71 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 33.97 ▲3.32 |
Book Publisher /wp-admin/options-general.php?page=bg_bpub_slug | 3.32 | 33.14 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
bg_bpub_options |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Bg Book Publisher
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲88 | 13.29 ▼1.15 | 4.86 ▲3.22 | 40.90 ▼0.34 |
Dashboard /wp-admin | 2,212 ▲30 | 4.89 ▲0.03 | 109.27 ▲6.95 | 41.66 ▼0.16 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.01 ▼0.03 | 39.30 ▲1.83 | 36.49 ▲1.63 |
Add New Post /wp-admin/post-new.php | 6,271 ▲4,752 | 26.15 ▲3.10 | 927.03 ▲268.47 | 59.83 ▲3.23 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.38 ▲0.15 | 100.64 ▼0.42 | 44.05 ▼1.40 |
Book Publisher /wp-admin/options-general.php?page=bg_bpub_slug | 902 | 2.05 | 28.02 | 30.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
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
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/bg-book-publisher/bg_bpub.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_option() in wp-content/plugins/bg-book-publisher/inc/options.php:8
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: book, publisher, level, nextpage, table of contents...
bg-book-publisher/bg_bpub.php 85% from 13 tests
The principal PHP file in "Bg Book Publisher" v. 1.25 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bg-book-publisher.php" instead of "bg_bpub.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin615 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 122 | 162 | 417 |
CSS | 1 | 9 | 3 | 100 |
PO File | 1 | 23 | 43 | 74 |
JavaScript | 2 | 0 | 0 | 24 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
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 | 30 | |
▷ Named functions | 27 | 90.00% |
▷ Anonymous functions | 3 | 10.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin