Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/book-widget/book_widget.php+172
Function create_function() is deprecated
Server metrics [RAM: ▼1.89MB] [CPU: ▼53.47ms] Passed 4 tests
This is a short check of server-side resources used by Book Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 4.29 ▼35.11 |
Dashboard /wp-admin | 2.12 ▼1.18 | 5.46 ▼45.71 |
Posts /wp-admin/edit.php | 2.13 ▼1.23 | 7.97 ▼41.65 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.77 | 8.26 ▼91.42 |
Media Library /wp-admin/upload.php | 2.13 ▼1.11 | 5.25 ▼30.71 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_book_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Book Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,964 ▲218 | 14.95 ▲0.64 | 1.94 ▲0.30 | 39.31 ▼12.16 |
Dashboard /wp-admin | 2,348 ▲160 | 6.52 ▲1.64 | 132.01 ▲14.10 | 41.18 ▼4.44 |
Posts /wp-admin/edit.php | 2,262 ▲176 | 3.41 ▲1.38 | 52.07 ▲13.04 | 33.84 ▲0.22 |
Add New Post /wp-admin/post-new.php | 1,516 ▼26 | 17.61 ▼0.75 | 624.83 ▲11.38 | 37.09 ▼18.86 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.14 ▼0.01 | 80.42 ▼19.92 | 43.32 ▼1.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/book-widget/book_widget.php+172
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- widget_book_widget
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/book-widget/book_widget.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: google play books, nook, affiliate links, widget, kobo...
book-widget/book_widget.php 92% from 13 tests
The main PHP script in "Book Widget" version 1.1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("book-widget.php" instead of "book_widget.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 plugin154 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 14 | 28 | 132 |
JavaScript | 1 | 5 | 2 | 22 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 7.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/btn_kobo.png | 0.43KB | 0.40KB | ▼ 5.72% |
img/btn_ibooks.png | 1.13KB | 1.05KB | ▼ 7.16% |
img/btn_nook.png | 0.41KB | 0.38KB | ▼ 5.74% |
img/btn_gplaybooks.png | 0.95KB | 0.99KB | 0.00% |
img/btn_amazon.png | 0.70KB | 0.66KB | ▼ 5.87% |