Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.17MB] [CPU: ▼0.48ms] Passed 4 tests
An overview of server-side resources used by TH Reviews Bar
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 40.33 ▲2.63 |
Dashboard /wp-admin | 3.47 ▲0.16 | 46.62 ▲1.69 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 47.90 ▲0.58 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 89.82 ▼6.82 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 36.08 ▲2.64 |
Add New Review /wp-admin/post-new.php?post_type=thrb | 3.50 | 49.56 |
TH Reviews Options /wp-admin/options-general.php?page=thrb | 3.37 | 33.80 |
Help /wp-admin/edit.php?post_type=thrb&page=thrb_help | 3.36 | 30.76 |
All Reviews /wp-admin/edit.php?post_type=thrb | 3.46 | 50.91 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_thrbpanelwidget |
db_upgraded |
can_compress_scripts |
thrb_plugin_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TH Reviews Bar
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,863 ▲117 | 13.45 ▼0.92 | 1.83 ▲0.18 | 42.35 ▲3.16 |
Dashboard /wp-admin | 2,260 ▲75 | 4.99 ▼0.88 | 99.60 ▼4.97 | 39.05 ▼7.11 |
Posts /wp-admin/edit.php | 2,148 ▲80 | 2.33 ▲0.34 | 41.99 ▲5.47 | 33.20 ▼1.10 |
Add New Post /wp-admin/post-new.php | 1,563 ▲42 | 23.36 ▲0.09 | 656.50 ▼45.07 | 37.74 ▼22.56 |
Media Library /wp-admin/upload.php | 1,436 ▲45 | 4.55 ▲0.35 | 101.96 ▲4.03 | 44.65 ▲0.59 |
Add New Review /wp-admin/post-new.php?post_type=thrb | 2,239 | 7.61 | 196.92 | 75.36 |
TH Reviews Options /wp-admin/options-general.php?page=thrb | 1,034 | 2.41 | 42.18 | 35.88 |
Help /wp-admin/edit.php?post_type=thrb&page=thrb_help | 1,055 | 1.93 | 28.57 | 39.76 |
All Reviews /wp-admin/edit.php?post_type=thrb | 1,246 | 3.38 | 54.18 | 29.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_thrbpanelwidget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/th-reviews-bar/inc/thrb-shortcode.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/th-reviews-bar/inc/thrb-post-metabox.php:25
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/th-reviews-bar/inc/thrb-widget.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/th-reviews-bar/inc/thrb-types.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/th-reviews-bar/inc/thrb-setting.php:73
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/th-reviews-bar/inc/thrb-admin.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/th-reviews-bar/inc/thrb-user.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/th-reviews-bar/th-reviews-bar.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: rating, box, site, star, post...
th-reviews-bar/th-reviews-bar.php 92% from 13 tests
The primary PHP file in "TH Reviews Bar" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,040 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 188 | 489 | 704 |
PO File | 1 | 76 | 79 | 166 |
CSS | 2 | 25 | 13 | 136 |
JavaScript | 2 | 3 | 0 | 34 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 33 | |
▷ Named functions | 33 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/screenshot-4.png | 14.77KB | 8.13KB | ▼ 44.98% |