Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▲0.16ms] Passed 4 tests
This is a short check of server-side resources used by Viavi WP Testimonials
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.09 ▼0.66 |
Dashboard /wp-admin | 3.35 ▲0.05 | 49.46 ▲1.74 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 52.42 ▲5.19 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 96.96 ▲0.15 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.37 ▼0.60 |
Testimonial Help /wp-admin/edit.php?post_type=testimonial&page=testimonial_help | 3.29 | 36.15 |
Add New /wp-admin/post-new.php?post_type=testimonial | 3.11 | 41.60 |
WP Testimonials /wp-admin/edit.php?post_type=testimonial | 3.32 | 40.67 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Viavi WP Testimonials
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,065 ▲330 | 15.24 ▲0.87 | 5.85 ▲4.23 | 42.71 ▼3.30 |
Dashboard /wp-admin | 2,384 ▲202 | 6.44 ▲0.60 | 128.47 ▲24.52 | 76.85 ▲32.00 |
Posts /wp-admin/edit.php | 2,290 ▲204 | 3.40 ▲1.42 | 50.20 ▲14.26 | 69.11 ▲33.72 |
Add New Post /wp-admin/post-new.php | 1,566 ▲33 | 23.39 ▲0.38 | 642.88 ▼32.93 | 37.67 ▼14.29 |
Media Library /wp-admin/upload.php | 1,429 ▲41 | 4.06 ▼0.16 | 82.48 ▼19.96 | 81.65 ▲38.69 |
Testimonial Help /wp-admin/edit.php?post_type=testimonial&page=testimonial_help | 1,315 | 3.38 | 50.53 | 102.43 |
Add New /wp-admin/post-new.php?post_type=testimonial | 2,234 | 7.65 | 162.15 | 116.29 |
WP Testimonials /wp-admin/edit.php?post_type=testimonial | 1,254 | 3.40 | 45.61 | 68.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=testimonial
- > Notice in wp-content/plugins/viavi-wp-testimonials/cpt.php+59
Undefined index: WordPress_Testimonials_metabox_nonce
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 30× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/viavi-wp-testimonials/WordPress_Testimonials-Help.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/viavi-wp-testimonials/view/slider/slider-one.php:7
- > PHP Notice
Undefined variable: colors_theme in wp-content/plugins/viavi-wp-testimonials/view/tp_table.php on line 2
- > PHP Notice
Undefined variable: colors_theme in wp-content/plugins/viavi-wp-testimonials/view/list-three.php on line 2
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/viavi-wp-testimonials/view/list-one.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/viavi-wp-testimonials/cpt.php:43
- > PHP Notice
Undefined variable: colors_theme in wp-content/plugins/viavi-wp-testimonials/view/slider/slider-one.php on line 3
- > PHP Notice
Undefined variable: colors_theme in wp-content/plugins/viavi-wp-testimonials/view/list-one.php on line 2
- > PHP Notice
Undefined variable: WordPress_Testimonials in wp-content/plugins/viavi-wp-testimonials/view/list-three.php on line 4
- > PHP Notice
Undefined variable: colors_theme in wp-content/plugins/viavi-wp-testimonials/view/list-two.php on line 2
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Add new testimonials), #2 (Testimonials Help), #3 (Testimonial Style 1), #4 (Testimonial Style 2), #5 (Testimonial Style 3)
viavi-wp-testimonials/WordPress_Testimonials.php 92% from 13 tests
The main file in "Viavi WP Testimonials" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("viavi-wp-testimonials.php" instead of "WordPress_Testimonials.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,740 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 141 | 108 | 1,095 |
PHP | 11 | 120 | 36 | 572 |
JavaScript | 2 | 26 | 12 | 73 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
15 PNG files occupy 0.51MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/WordPress_Testimonials-icon02.png | 0.39KB | 0.62KB | 0.00% |
images/client.png | 0.63KB | 0.58KB | ▼ 8.26% |
images/ANDROID-BANNER.png | 203.49KB | 65.07KB | ▼ 68.03% |
images/arrow-right.png | 1.24KB | 0.37KB | ▼ 70.43% |
images/arrow-left.png | 1.24KB | 0.37KB | ▼ 69.75% |