Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▼136.90ms] Passed 4 tests
Server-side resources used by Our Testimonials Showcase
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▲0.13 | 42.43 ▲7.86 |
Dashboard /wp-admin | 3.20 ▲0.15 | 51.17 ▲9.78 |
Posts /wp-admin/edit.php | 3.30 ▲0.20 | 53.22 ▲7.18 |
Add New Post /wp-admin/post-new.php | 5.56 ▲0.13 | 94.74 ▼570.02 |
Media Library /wp-admin/upload.php | 3.14 ▲0.14 | 39.08 ▲7.39 |
All Testimonials /wp-admin/edit.php?post_type=testimonial | 3.17 | 41.24 |
Add New /wp-admin/post-new.php?post_type=testimonial | 3.26 | 58.52 |
Settings /wp-admin/edit.php?post_type=testimonial&page=smartcat_testimonials_settings | 3.19 | 37.82 |
Re-Order Testimonials /wp-admin/edit.php?post_type=testimonial&page=smartcat_testimonials_reorder | 3.13 | 36.17 |
Groups /wp-admin/edit-tags.php?taxonomy=testimonial_position&post_type=testimonial | 3.14 | 37.05 |
Documentation /wp-admin/edit.php?post_type=testimonial&page=smartcat_testimonials_documentation | 3.14 | 34.54 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 1 new option
New WordPress options |
---|
smartcat_testimonials_options |
Browser metrics Passed 4 tests
A check of browser resources used by Our Testimonials Showcase
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,865 ▲269 | 16.46 ▲0.82 | 11.24 ▲1.21 | 50.69 ▲2.71 |
Dashboard /wp-admin | 3,028 ▲94 | 6.04 ▲0.11 | 136.36 ▼6.57 | 107.74 ▼2.71 |
Posts /wp-admin/edit.php | 2,803 ▲64 | 2.73 ▲0.04 | 63.96 ▼0.85 | 85.74 ▼6.46 |
Add New Post /wp-admin/post-new.php | 1,730 ▲58 | 15.74 ▼3.01 | 379.47 ▲34.85 | 112.07 ▼3.91 |
Media Library /wp-admin/upload.php | 1,868 ▲58 | 5.05 ▲0.02 | 146.97 ▼1.39 | 119.02 ▲1.49 |
All Testimonials /wp-admin/edit.php?post_type=testimonial | 1,460 | 2.67 | 73.28 | 76.58 |
Add New /wp-admin/post-new.php?post_type=testimonial | 3,247 | 8.98 | 210.34 | 151.34 |
Settings /wp-admin/edit.php?post_type=testimonial&page=smartcat_testimonials_settings | 2,054 | 2.44 | 60.79 | 98.40 |
Re-Order Testimonials /wp-admin/edit.php?post_type=testimonial&page=smartcat_testimonials_reorder | 1,188 | 2.54 | 55.88 | 79.91 |
Groups /wp-admin/edit-tags.php?taxonomy=testimonial_position&post_type=testimonial | 1,807 | 2.67 | 56.73 | 82.26 |
Documentation /wp-admin/edit.php?post_type=testimonial&page=smartcat_testimonials_documentation | 1,608 | 2.38 | 58.56 | 130.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 1 option in the database
- smartcat_testimonials_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/edit.php?post_type=testimonial&page=smartcat_testimonials_settings
- > Notice in wp-content/plugins/testimonials-reviews-showcase/admin/options.php+243
Undefined variable: admin_email
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/testimonials-reviews-showcase/admin/documentation.php
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/testimonials-reviews-showcase/admin/setting.php:89
- > PHP Warning
Use of undefined constant SMARTCAT_TESTIMONIALS_URL - assumed 'SMARTCAT_TESTIMONIALS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/testimonials-reviews-showcase/admin/documentation.php on line 293
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/testimonials-reviews-showcase/admin/setting.php:89
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/testimonials-reviews-showcase/admin/setting.php:89
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/testimonials-reviews-showcase/inc/template/stacked_list.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/testimonials-reviews-showcase/admin/setting.php:89
- > PHP Warning
Use of undefined constant SMARTCAT_TESTIMONIALS_URL - assumed 'SMARTCAT_TESTIMONIALS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/testimonials-reviews-showcase/admin/documentation.php on line 180
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/testimonials-reviews-showcase/inc/template/conversation_list.php:8
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/testimonials-reviews-showcase/inc/template/centered_list.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/testimonials-reviews-showcase/inc/class/class.smartcat-testimonials.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (List Bubbles Demo), #2 (List Centered Demo), #3 (Frontend submission form ( Pro Version )), #4 (Grid ( Pro Version )), #5 (Centered Slider)
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
testimonials-reviews-showcase/our_testimonials_showcase.php 85% from 13 tests
"Our Testimonials Showcase" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("testimonials-reviews-showcase.php" instead of "our_testimonials_showcase.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected3,116 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 302 | 65 | 1,259 |
JavaScript | 4 | 172 | 45 | 945 |
CSS | 4 | 111 | 68 | 792 |
PO File | 1 | 43 | 43 | 102 |
SVG | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 1.89 |
▷ 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 | 28 | |
▷ Static methods | 3 | 10.71% |
▷ Public methods | 26 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 7.14% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/img/smartcat_icon.png | 9.31KB | 4.05KB | ▼ 56.46% |
inc/script/jscolor/hv.png | 2.80KB | 7.32KB | 0.00% |
inc/img/icon.png | 0.67KB | 0.79KB | 0.00% |
inc/img/check.png | 0.35KB | 0.31KB | ▼ 9.86% |
inc/img/more.png | 3.45KB | 0.63KB | ▼ 81.87% |