Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼3.28ms] Passed 4 tests
A check of server-side resources used by Csh Testimonials
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 43.94 ▼2.75 |
Dashboard /wp-admin | 3.37 ▲0.06 | 44.95 ▼1.85 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 51.47 ▲2.88 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 87.40 ▼11.38 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 44.01 ▲11.42 |
Manual Shortcode /wp-admin/edit.php?post_type=csh_testimonial&page=csh-testimonials-setting | 3.28 | 35.15 |
Categories /wp-admin/edit-tags.php?taxonomy=cshtm_cat&post_type=csh_testimonial | 3.37 | 35.32 |
Add New /wp-admin/post-new.php?post_type=csh_testimonial | 3.44 | 50.94 |
All Testimonials /wp-admin/edit.php?post_type=csh_testimonial | 3.33 | 36.89 |
Server storage [IO: ▲0.10MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Csh Testimonials
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,181 ▲435 | 15.53 ▲1.17 | 27.99 ▲25.49 | 39.70 ▼3.89 |
Dashboard /wp-admin | 2,245 ▲57 | 5.87 ▼0.03 | 102.27 ▲2.99 | 37.17 ▼7.48 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 2.03 ▼0.03 | 39.32 ▼3.46 | 34.86 ▼2.66 |
Add New Post /wp-admin/post-new.php | 1,556 ▲20 | 19.47 ▼3.96 | 598.91 ▼9.23 | 33.35 ▼26.03 |
Media Library /wp-admin/upload.php | 1,418 ▲33 | 4.17 ▼0.03 | 90.84 ▼6.82 | 41.96 ▼0.19 |
Manual Shortcode /wp-admin/edit.php?post_type=csh_testimonial&page=csh-testimonials-setting | 1,153 | 3.38 | 42.02 | 32.67 |
Categories /wp-admin/edit-tags.php?taxonomy=cshtm_cat&post_type=csh_testimonial | 1,301 | 2.15 | 35.91 | 41.29 |
Add New /wp-admin/post-new.php?post_type=csh_testimonial | 2,347 | 7.61 | 182.80 | 71.87 |
All Testimonials /wp-admin/edit.php?post_type=csh_testimonial | 1,113 | 1.99 | 29.83 | 27.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/csh-testimonials/layouts/layout2/layout2.php
- > /wp-content/plugins/csh-testimonials/layouts/layout1/layout1.php
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined variable: l1_index in wp-content/plugins/csh-testimonials/layouts/layout1/layout1.php on line 4
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/csh-testimonials/layouts/layout2/layout2.php on line 8
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/csh-testimonials/layouts/layout1/layout1.php on line 8
- > PHP Notice
Undefined variable: all_posts in wp-content/plugins/csh-testimonials/layouts/layout1/layout1.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/csh-testimonials/includes/class-csh-testimonials.php:81
- > PHP Notice
Undefined variable: all_posts in wp-content/plugins/csh-testimonials/layouts/layout2/layout2.php on line 8
- > PHP Notice
Undefined variable: l2_index in wp-content/plugins/csh-testimonials/layouts/layout2/layout2.php on line 4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5 in csh-testimonials/assets to your readme.txt
csh-testimonials/csh-testimonials.php 92% from 13 tests
"Csh Testimonials" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- 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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected966 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 168 | 186 | 590 |
CSS | 4 | 56 | 5 | 292 |
JavaScript | 2 | 6 | 7 | 84 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 11.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 30 | 96.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.23% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/vc_icon.png | 16.78KB | 1.66KB | ▼ 90.10% |
assets/images/bar-button.png | 2.05KB | 1.26KB | ▼ 38.51% |