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
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.83ms] Passed 4 tests
An overview of server-side resources used by LouderVoice Reviews
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 37.66 ▲3.00 |
Dashboard /wp-admin | 3.34 ▼0.01 | 44.31 ▼19.97 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.35 ▼0.69 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 93.84 ▼1.67 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.98 ▲3.88 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_ldv_average |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for LouderVoice Reviews
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.34 ▲0.16 | 1.62 ▲0.05 | 37.64 ▼0.09 |
Dashboard /wp-admin | 2,195 ▲14 | 5.63 ▼0.09 | 90.89 ▼8.54 | 40.81 ▼2.24 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.98 ▼0.05 | 42.78 ▲2.90 | 37.31 ▼1.56 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.06 ▼0.08 | 668.64 ▲12.01 | 66.81 ▲13.45 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.19 ▲0.03 | 110.10 ▲11.69 | 47.08 ▲5.49 |
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
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_recent-comments
- widget_ldv_average
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
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
Good news, no errors were detected
SRP 0% 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 take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/loudervoice/loudervoice.php
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'LDV_Plugin_Admin' not found in wp-content/plugins/loudervoice/admin/ldv-config.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/loudervoice/loudervoice-average-rating-widget.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/loudervoice/admin/ldv-post-meta.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/loudervoice/frontend/ldv-display-reviews.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/loudervoice/inc/ldv-ajax-functions.php:64
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/loudervoice/loudervoice-random-review-widget.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/loudervoice/plugin-update.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
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
5 plugin tags: hreview, loudervoice, reviews, microformats, rich-snippets
loudervoice/loudervoice-random-review-widget.php 92% from 13 tests
The main PHP script in "LouderVoice Reviews" version 3.00 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("loudervoice.php" instead of "loudervoice-random-review-widget.php")
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
No dangerous file extensions were detected1,586 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 292 | 324 | 1,355 |
PO File | 1 | 43 | 44 | 101 |
CSS | 2 | 17 | 4 | 63 |
JavaScript | 1 | 12 | 10 | 48 |
HTML | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.67 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
21 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
widgets/images/newstars-small1.0.png | 1.67KB | 1.53KB | ▼ 8.65% |
widgets/images/newstars4.5.png | 2.93KB | 1.90KB | ▼ 34.93% |
widgets/images/newstars2.0.png | 3.12KB | 1.90KB | ▼ 39.12% |
widgets/images/newstars4.0.png | 2.98KB | 1.90KB | ▼ 36.35% |
widgets/images/newstars3.0.png | 3.06KB | 1.90KB | ▼ 38.11% |