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: ▲2.73MB] [CPU: ▲15.77ms] Passed 4 tests
A check of server-side resources used by Recencio Book Reviews
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.99 ▲2.52 | 65.93 ▲20.66 |
Dashboard /wp-admin | 6.16 ▲2.81 | 74.83 ▲8.26 |
Posts /wp-admin/edit.php | 6.19 ▲2.83 | 80.93 ▲29.43 |
Add New Post /wp-admin/post-new.php | 8.96 ▲3.07 | 108.56 ▲10.83 |
Media Library /wp-admin/upload.php | 5.99 ▲2.76 | 65.58 ▲23.31 |
Authors /wp-admin/edit-tags.php?taxonomy=rcno_author&post_type=rcno_review | 6.00 | 59.54 |
Genres /wp-admin/edit-tags.php?taxonomy=rcno_genre&post_type=rcno_review | 5.99 | 55.21 |
New Review /wp-admin/post-new.php?post_type=rcno_review | 6.28 | 90.73 |
All Reviews /wp-admin/edit.php?post_type=rcno_review | 6.18 | 68.95 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=rcno_review | 6.00 | 59.78 |
Extensions /wp-admin/edit.php?post_type=rcno_review&page=rcno_extensions | 6.00 | 61.39 |
Series /wp-admin/edit-tags.php?taxonomy=rcno_series&post_type=rcno_review | 5.99 | 59.41 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=rcno_review | 6.07 | 66.91 |
Settings /wp-admin/edit.php?post_type=rcno_review&page=recencio-book-reviews | 6.05 | 62.61 |
Publishers /wp-admin/edit-tags.php?taxonomy=rcno_publisher&post_type=rcno_review | 5.99 | 56.40 |
Server storage [IO: ▲3.21MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 218 new files
Database: no new tables, 15 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_rcno-reviews-book-slider |
can_compress_scripts |
category_children |
widget_rcno-reviews-book-grid |
widget_rcno-reviews-recent-reviews |
widget_rcno-reviews-tag-cloud |
widget_theysaidso_widget |
widget_rcno-reviews-taxonomy-list |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Recencio Book Reviews
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,536 ▲775 | 15.91 ▲1.53 | 6.05 ▲4.21 | 43.30 ▼0.22 |
Dashboard /wp-admin | 2,840 ▲663 | 6.99 ▲1.36 | 135.59 ▲37.45 | 41.01 ▼0.32 |
Posts /wp-admin/edit.php | 2,484 ▲384 | 2.41 ▲0.45 | 44.54 ▲7.62 | 34.89 ▼0.85 |
Add New Post /wp-admin/post-new.php | 1,867 ▲330 | 23.33 ▲5.07 | 690.38 ▲46.44 | 36.86 ▼29.46 |
Media Library /wp-admin/upload.php | 1,656 ▲262 | 4.26 ▲0.06 | 84.69 ▼15.12 | 42.17 ▼1.27 |
Authors /wp-admin/edit-tags.php?taxonomy=rcno_author&post_type=rcno_review | 1,653 | 2.03 | 42.98 | 31.63 |
Genres /wp-admin/edit-tags.php?taxonomy=rcno_genre&post_type=rcno_review | 1,640 | 2.00 | 31.50 | 30.89 |
New Review /wp-admin/post-new.php?post_type=rcno_review | 4,435 | 9.92 | 274.32 | 91.73 |
All Reviews /wp-admin/edit.php?post_type=rcno_review | 1,725 | 5.19 | 88.87 | 32.78 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=rcno_review | 1,700 | 1.97 | 31.83 | 32.01 |
Extensions /wp-admin/edit.php?post_type=rcno_review&page=rcno_extensions | 1,416 | 4.89 | 51.99 | 73.23 |
Series /wp-admin/edit-tags.php?taxonomy=rcno_series&post_type=rcno_review | 1,640 | 1.91 | 30.93 | 30.65 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=rcno_review | 1,836 | 1.98 | 34.30 | 32.65 |
Settings /wp-admin/edit.php?post_type=rcno_review&page=recencio-book-reviews | 1,435 | 4.79 | 54.89 | 31.65 |
Publishers /wp-admin/edit-tags.php?taxonomy=rcno_publisher&post_type=rcno_review | 1,634 | 1.99 | 32.85 | 29.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 15 options
- widget_recent-posts
- category_children
- widget_recent-comments
- widget_rcno-reviews-book-grid
- theysaidso_admin_options
- widget_rcno-reviews-currently-reading
- widget_rcno-reviews-tag-cloud
- widget_rcno-reviews-book-slider
- rcno_reviews_settings
- db_upgraded
- ...
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
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/recencio-book-reviews/public/partials/rcno-reviews-public-display.php
- 91× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Rcno_Template_Tags' not found in wp-content/plugins/recencio-book-reviews/extensions/rcno-social-media-sharing/includes/all-buttons.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/recencio-book-reviews/admin/views/rcno-reviews-modal.php:16
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/recencio-book-reviews/public/widgets/class-rcno-reviews-book-grid.php:19
- > PHP Fatal error
Uncaught Error: Class 'Rcno_Template_Tags' not found in wp-content/plugins/recencio-book-reviews/public/templates/rcno_default/reviews_index.php:6
- > PHP Warning
Use of undefined constant RCNO_PLUGIN_PATH - assumed 'RCNO_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/recencio-book-reviews/includes/class-rcno-reviews-shortcodes.php on line 26
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post() in wp-content/plugins/recencio-book-reviews/public/templates/rcno_metamor/review.php:16
- > PHP Warning
include(RCNO_PLUGIN_PATHpublic/shortcodes/class-rcno-table-shortcode.php): failed to open stream: No such file or directory in wp-content/plugins/recencio-book-reviews/includes/class-rcno-reviews-shortcodes.php on line 30
- > PHP Notice
Undefined variable: options in wp-content/plugins/recencio-book-reviews/public/shortcodes/layouts/rcno-isotope-html.php on line 40
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post() in wp-content/plugins/recencio-book-reviews/public/templates/rcno_metamor/excerpt.php:13
- > PHP Notice
Undefined variable: taxonomy in wp-content/plugins/recencio-book-reviews/admin/views/rcno-author-taxonomy-metabox.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 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
4 plugin tags: reviews, book ratings, book reviews, book library
recencio-book-reviews/recencio-book-reviews.php Passed 13 tests
"Recencio Book Reviews" version 1.66.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
122 characters long description:
A powerful and very flexible tool to manage your blog’s book review collection. Designed with the book reviewer in mind.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin36,067 lines of code in 167 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 111 | 3,441 | 7,410 | 13,710 |
JavaScript | 27 | 1,486 | 1,611 | 10,686 |
PO File | 6 | 2,982 | 4,225 | 7,526 |
CSS | 21 | 731 | 73 | 3,929 |
SVG | 2 | 1 | 1 | 216 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 153)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 26.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 286.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 153.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 59 | |
▷ Abstract classes | 1 | 1.69% |
▷ Concrete classes | 58 | 98.31% |
▷ Final classes | 0 | 0.00% |
Methods | 572 | |
▷ Static methods | 17 | 2.97% |
▷ Public methods | 504 | 88.11% |
▷ Protected methods | 11 | 1.92% |
▷ Private methods | 57 | 9.97% |
Functions | 51 | |
▷ Named functions | 29 | 56.86% |
▷ Anonymous functions | 22 | 43.14% |
Constants | 31 | |
▷ Global constants | 14 | 45.16% |
▷ Class constants | 17 | 54.84% |
▷ Public constants | 17 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
17 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/templates/rcno_basic/screenshot.png | 1.85KB | 0.74KB | ▼ 60.14% |
admin/images/logo-30-color.png | 0.81KB | 0.54KB | ▼ 33.78% |
public/templates/rcno_inverse/screenshot.png | 4.12KB | 0.66KB | ▼ 84.03% |
extensions/rcno-posts-to-reviews/assets/images/_rcno-posts-to-reviews.png | 2.93KB | 2.89KB | ▼ 1.33% |
public/templates/rcno_metamor/screenshot.png | 1.16KB | 0.83KB | ▼ 28.10% |