Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/idt-testimonial/idt-testimonial.php+51
Undefined index: page
Server metrics [RAM: ▼1.93MB] [CPU: ▼52.46ms] Passed 4 tests
A check of server-side resources used by IDT Testimonial
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 3.89 ▼39.00 |
Dashboard /wp-admin | 2.08 ▼1.22 | 6.03 ▼45.22 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 6.23 ▼40.66 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 6.35 ▼84.96 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.84 ▼27.13 |
Settings /wp-admin/admin.php?page=idt-options | 3.31 | 31.31 |
Add testimonial /wp-admin/admin.php?page=add_testimonial | 3.37 | 31.98 |
Testimonial /wp-admin/admin.php?page=idt-testimonial | 3.37 | 30.80 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 11 new options
New WordPress options |
---|
idt_testimonial_heading |
widget_recent-posts |
db_upgraded |
idt_show_title |
widget_theysaidso_widget |
idt_design_layout |
widget_recent-comments |
theysaidso_admin_options |
idt_testimonial_desc |
idt_display_image |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for IDT Testimonial
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,294 ▲559 | 16.37 ▲2.00 | 20.01 ▲18.18 | 37.73 ▼5.72 |
Dashboard /wp-admin | 2,372 ▲183 | 6.45 ▲0.52 | 122.33 ▲3.61 | 40.64 ▼7.83 |
Posts /wp-admin/edit.php | 2,284 ▲195 | 3.37 ▲1.34 | 55.19 ▲17.59 | 34.33 ▲0.87 |
Add New Post /wp-admin/post-new.php | 1,552 ▲33 | 18.39 ▼4.97 | 576.68 ▼45.74 | 32.30 ▼23.77 |
Media Library /wp-admin/upload.php | 1,426 ▲47 | 4.21 ▲0.03 | 78.94 ▼19.67 | 42.08 ▼1.54 |
Settings /wp-admin/admin.php?page=idt-options | 1,065 | 3.15 | 37.99 | 39.25 |
Add testimonial /wp-admin/admin.php?page=add_testimonial | 1,018 | 3.10 | 37.19 | 27.08 |
Testimonial /wp-admin/admin.php?page=idt-testimonial | 1,007 | 3.05 | 36.99 | 25.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/idt-testimonial/idt-testimonial.php+51
Undefined index: page
- This plugin did not uninstall successfully, leaving 11 options in the database
- idt_testimonial_desc
- idt_testimonial_heading
- widget_theysaidso_widget
- widget_recent-posts
- idt_show_title
- idt_design_layout
- widget_recent-comments
- db_upgraded
- idt_display_image
- can_compress_scripts
- ...
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 server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=idt-options
- > Notice in wp-content/plugins/idt-testimonial/inc/idt-admin-settings.php+40
Undefined index: idt_settings
- > GET request to /wp-admin/admin.php?page=idt-options
- > Warning in wp-content/plugins/idt-testimonial/inc/idt-admin-settings.php+128
Use of undefined constant on - assumed 'on' (this will throw an Error in a future version of PHP)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=idt-testimonial
- > Notice in wp-content/plugins/idt-testimonial/inc/idt-admin-display.php+45
Undefined index: idt_id
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=idt-testimonial
- > Notice in wp-content/plugins/idt-testimonial/inc/idt-admin-display.php+58
Undefined index: save_testimonial
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
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/idt-testimonial/inc/idt-admin-display.php
- > /wp-content/plugins/idt-testimonial/inc/idt-admin-settings.php
- > /wp-content/plugins/idt-testimonial/inc/idt-front-display.php
- > /wp-content/plugins/idt-testimonial/idt-testimonial.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=idt-testimonial
- > Javascript (severe) in unknown
/wp-content/plugins/idt-testimonial/assets/js/script.js?ver=6.3.1 3:33 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: testimonials, testimonial slider, reviews, quote, testimonial form...
idt-testimonial/idt-testimonial.php Passed 13 tests
"IDT Testimonial" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
62 characters long description:
Simple plugin to Show testimonial on pages, widgets and posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,760 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 139 | 128 | 934 |
PHP | 5 | 179 | 243 | 527 |
CSS | 2 | 67 | 26 | 280 |
SVG | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 51.72% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 48.28% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin