Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▲0.06ms] Passed 4 tests
Server-side resources used by GoodReviews
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 36.39 ▼3.47 |
Dashboard /wp-admin | 3.39 ▲0.08 | 48.31 ▼0.31 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 49.93 ▲5.22 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 95.38 ▲2.07 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.13 ▲1.96 |
GoodReviews /wp-admin/options-general.php?page=goodrev-options | 3.30 | 33.83 |
Usage /wp-admin/admin.php?page=goodrev-usages | 3.30 | 32.70 |
Tests /wp-admin/admin.php?page=goodrev-tests | 3.30 | 33.80 |
Performance /wp-admin/admin.php?page=goodrev-perform | 3.30 | 32.33 |
Server storage [IO: ▲0.81MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 10 new options
New WordPress options |
---|
goodrev-clearcache |
widget_recent-posts |
widget_recent-comments |
widget_goodreviews-buybook |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_goodreviews-bookinfo |
can_compress_scripts |
db_upgraded |
widget_goodreviews-reviews |
Browser metrics Passed 4 tests
GoodReviews: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲99 | 13.30 ▼1.10 | 1.63 ▼0.20 | 41.16 ▼2.69 |
Dashboard /wp-admin | 2,216 ▲28 | 4.85 ▼0.05 | 108.73 ▲2.65 | 42.92 ▲0.04 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▲0.00 | 41.01 ▲5.03 | 36.25 ▲1.01 |
Add New Post /wp-admin/post-new.php | 1,548 ▲28 | 18.48 ▼4.75 | 616.09 ▼46.63 | 55.54 ▲2.97 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.22 ▲0.05 | 97.90 ▼6.27 | 41.37 ▼2.99 |
GoodReviews /wp-admin/options-general.php?page=goodrev-options | 1,120 | 2.03 | 25.98 | 26.59 |
Usage /wp-admin/admin.php?page=goodrev-usages | 1,064 | 2.02 | 24.15 | 39.70 |
Tests /wp-admin/admin.php?page=goodrev-tests | 1,058 | 2.05 | 23.18 | 26.76 |
Performance /wp-admin/admin.php?page=goodrev-perform | 1,216 | 2.03 | 22.62 | 30.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_goodreviews-reviews
- widget_recent-posts
- can_compress_scripts
- widget_goodreviews-buybook
- widget_goodreviews-bookinfo
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
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/goodreviews/jhgrclasses.php:794
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/goodreviews/goodreviews.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (The Settings page), #2 (The plugin in action), #3 (The shortcode in a post)
goodreviews/goodreviews.php Passed 13 tests
"GoodReviews" version 2.2.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
87 characters long description:
Retrieves Goodreads.com reviews for books you choose to display on your Wordpress blog.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,914 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 176 | 111 | 1,352 |
CSS | 2 | 14 | 48 | 562 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 75 | 98.68% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.32% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.66MB with 0.43MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 262.91KB | 95.18KB | ▼ 63.80% |
screenshot-3.png | 107.68KB | 34.47KB | ▼ 67.99% |
screenshot-2.png | 302.16KB | 108.04KB | ▼ 64.24% |