Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.43MB] [CPU: ▼302.45ms] Passed 4 tests
Analyzing server-side resources used by Book BuyBack Prices
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.33 | 52.83 ▲1.34 |
Dashboard /wp-admin | 3.94 ▲0.53 | 37.13 ▲2.91 |
Posts /wp-admin/edit.php | 4.17 ▲0.53 | 41.14 ▲4.68 |
Add New Post /wp-admin/post-new.php | 7.40 ▲0.43 | 94.41 ▼1,218.25 |
Media Library /wp-admin/upload.php | 3.73 ▲0.44 | 30.16 ▲4.20 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 4.06 | 27.20 |
Server storage [IO: ▲3.32MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 193 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_debug_mode |
fs_accounts |
fs_active_plugins |
fs_gdpr |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Book BuyBack Prices
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,960 ▲238 | 16.73 ▲1.08 | 18.89 ▲13.60 | 2.48 ▼0.00 |
Dashboard /wp-admin | 2,939 ▲85 | 6.14 ▼0.03 | 126.42 ▼3.60 | 204.36 ▲38.39 |
Posts /wp-admin/edit.php | 2,739 ▲48 | 3.23 ▼0.00 | 64.95 ▲0.46 | 159.76 ▲20.60 |
Add New Post /wp-admin/post-new.php | 1,711 ▼41 | 20.95 ▼0.56 | 416.87 ▼25.88 | 190.01 ▲32.20 |
Media Library /wp-admin/upload.php | 1,743 ▲45 | 5.47 ▼0.02 | 150.79 ▲12.09 | 257.42 ▲63.25 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 1,453 | 2.50 | 54.01 | 116.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/book-buyback-prices/freemius/includes/class-freemius.php+8552
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 4 options
- fs_gdpr
- fs_debug_mode
- fs_active_plugins
- fs_accounts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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 fix the following items
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/book-buyback-prices/admin/settings.php
- > /wp-content/plugins/book-buyback-prices/admin/dashboard.php
- > /wp-content/plugins/book-buyback-prices/freemius/templates/ajax-loader.php
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/book-buyback-prices/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/book-buyback-prices/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/book-buyback-prices/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/book-buyback-prices/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/book-buyback-prices/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/book-buyback-prices/freemius/templates/partials/network-activation.php:6
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/book-buyback-prices/freemius/templates/account/partials/addon.php:9
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/book-buyback-prices/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Contributors: The plugin contributors field is not present
book-buyback-prices/book-buyback-prices.php Passed 13 tests
The entry point to "Book BuyBack Prices" version 1.0.9 is a PHP file that has certain tags in its header comment area
79 characters long description:
Show buyback (trade-in) prices for books. Shows results from multiple vendors.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin31,459 lines of code in 129 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 112 | 7,328 | 16,221 | 31,086 |
JavaScript | 4 | 50 | 89 | 297 |
CSS | 12 | 7 | 2 | 75 |
SVG | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,907)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 87.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,907.00 |
Average method complexity | 4.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 47 | |
▷ Abstract classes | 2 | 4.26% |
▷ Concrete classes | 45 | 95.74% |
▷ Final classes | 0 | 0.00% |
Methods | 1,141 | |
▷ Static methods | 179 | 15.69% |
▷ Public methods | 800 | 70.11% |
▷ Protected methods | 15 | 1.31% |
▷ Private methods | 326 | 28.57% |
Functions | 111 | |
▷ Named functions | 111 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 124 | |
▷ Global constants | 99 | 79.84% |
▷ Class constants | 25 | 20.16% |
▷ Public constants | 25 | 100.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
25 PNG files occupy 0.35MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/logos/logo-bookbyte.png | 18.77KB | 5.40KB | ▼ 71.24% |
img/logos/logo-bluerocketbooks.png | 14.02KB | 6.53KB | ▼ 53.42% |
img/logos/logo-empire-text.png | 16.84KB | 5.31KB | ▼ 68.43% |
img/logos/logo-ecampus.png | 26.03KB | 12.00KB | ▼ 53.90% |
img/logos/logo-textbookrush.png | 35.31KB | 10.99KB | ▼ 68.89% |