Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼136.56ms] Passed 4 tests
A check of server-side resources used by Book Review
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.20 | 36.95 ▲7.27 |
Dashboard /wp-admin | 3.16 ▲0.11 | 47.30 ▼0.07 |
Posts /wp-admin/edit.php | 3.25 ▲0.14 | 41.59 ▼2.55 |
Add New Post /wp-admin/post-new.php | 5.56 ▲0.12 | 94.19 ▼550.90 |
Media Library /wp-admin/upload.php | 3.10 ▲0.09 | 39.63 ▲8.47 |
Book Review /wp-admin/options-general.php?page=book-review | 3.15 | 34.47 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 64 new files
Database: 2 new tables, 1 new option
New tables |
---|
wp_book_review_custom_link_urls |
wp_book_review_custom_links |
New WordPress options |
---|
book_review_version |
Browser metrics Passed 4 tests
Checking browser requirements for Book Review
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,710 ▲114 | 15.95 ▲0.10 | 9.62 ▲0.72 | 45.63 ▼2.01 |
Dashboard /wp-admin | 2,972 ▲38 | 5.89 ▼0.07 | 150.58 ▲5.08 | 103.70 ▼8.83 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.73 ▲0.01 | 63.68 ▼6.37 | 93.01 ▲10.31 |
Add New Post /wp-admin/post-new.php | 1,978 ▲480 | 21.66 ▲2.79 | 306.00 ▼94.24 | 124.08 ▲16.57 |
Media Library /wp-admin/upload.php | 1,815 ▲64 | 5.05 ▲0.07 | 147.51 ▼1.00 | 116.97 ▲3.57 |
Book Review /wp-admin/options-general.php?page=book-review | 1,944 | 4.57 | 113.05 | 86.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_book_review_custom_links
- wp_book_review_custom_link_urls
- This plugin did not uninstall successfully, leaving 1 option in the database
- book_review_version
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/book-review/admin/partials/book-review-admin-advanced.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/book-review/admin/partials/book-review-admin-tabs.php:18
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/book-review/public/partials/book-review-public.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/book-review/admin/partials/book-review-admin-images.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/book-review/admin/partials/book-review-admin-appearance.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/book-review/admin/partials/book-review-admin-links.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/book-review/admin/partials/book-review-admin-custom-fields.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/book-review/admin/partials/book-review-admin-meta-box.php:16
- > 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 86% from 29 tests
readme.txt 75% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add a description for screenshot #11 in book-review/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
- Plugin Name: You should set the name of your plugin on the first line (
=== book-review ===
) - Screenshots: Screenshot #10 (Google Search Result) image not found
book-review/book-review.php Passed 13 tests
The primary PHP file in "Book Review" version 2.3.9 is used by WordPress to initiate all plugin functionality
99 characters long description:
Add book information such as title, author, publisher and cover photo to enhance your review posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected7,137 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 15 | 1,662 | 1,861 | 4,299 |
PHP | 19 | 548 | 1,437 | 2,832 |
CSS | 4 | 0 | 4 | 4 |
JavaScript | 2 | 0 | 2 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 101.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 119 | |
▷ Static methods | 8 | 6.72% |
▷ Public methods | 89 | 74.79% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 30 | 25.21% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 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
7 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/two-star.png | 0.77KB | 0.69KB | ▼ 9.55% |
includes/images/goodreads.png | 1.22KB | 1.28KB | 0.00% |
includes/images/three-star.png | 0.89KB | 0.80KB | ▼ 10.49% |
includes/images/barnes-noble.png | 1.46KB | 1.49KB | 0.00% |
includes/images/one-star.png | 0.73KB | 0.67KB | ▼ 7.88% |