Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼12.77ms] Passed 4 tests
A check of server-side resources used by WP BookWidgets
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 33.55 ▼4.91 |
Dashboard /wp-admin | 3.36 ▲0.01 | 41.61 ▼22.40 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 46.04 ▼2.79 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 76.38 ▼20.98 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.67 ▲4.40 |
BookWidgets /wp-admin/options-general.php?page=bw-settings | 3.24 | 29.87 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WP BookWidgets
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.22 ▼1.14 | 4.75 ▲2.86 | 41.18 ▼4.24 |
Dashboard /wp-admin | 2,210 ▲22 | 5.86 ▲0.78 | 108.97 ▼8.05 | 43.94 ▼1.62 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.03 | 35.28 ▲0.79 | 32.97 ▼1.23 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 23.63 ▲0.21 | 675.61 ▼15.51 | 54.21 ▼4.96 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.22 ▲0.03 | 96.06 ▼2.63 | 40.04 ▼8.40 |
BookWidgets /wp-admin/options-general.php?page=bw-settings | 832 | 2.02 | 27.71 | 26.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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 take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_bookwidgets\\add_shortcode() in wp-content/plugins/wp-bookwidgets/wp-bookwidgets.php:134
- > 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)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: bookwidgets, education, widgets
wp-bookwidgets/wp-bookwidgets.php Passed 13 tests
The primary PHP file in "WP BookWidgets" version 0.8 is used by WordPress to initiate all plugin functionality
52 characters long description:
Integrate BookWidgets widgets in your WordPress site
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected238 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 42 | 44 | 213 |
CSS | 1 | 4 | 0 | 25 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.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 | 19 | |
▷ Named functions | 7 | 36.84% |
▷ Anonymous functions | 12 | 63.16% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin