Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲1.80MB] [CPU: ▲12.95ms] Passed 4 tests
An overview of server-side resources used by Real Testimonials
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.30 ▲1.83 | 53.38 ▲12.90 |
Dashboard /wp-admin | 5.14 ▲1.83 | 57.38 ▲7.32 |
Posts /wp-admin/edit.php | 5.19 ▲1.83 | 63.34 ▲15.07 |
Add New Post /wp-admin/post-new.php | 7.67 ▲1.79 | 116.32 ▲21.18 |
Media Library /wp-admin/upload.php | 5.00 ▲1.77 | 49.49 ▲16.50 |
Help /wp-admin/edit.php?post_type=spt_testimonial&page=tfree_help | 5.00 | 47.21 |
Tools /wp-admin/edit.php?post_type=spt_testimonial&page=testimonial_tools | 5.01 | 70.17 |
Manage Views /wp-admin/edit.php?post_type=spt_shortcodes | 5.16 | 55.00 |
Settings /wp-admin/edit.php?post_type=spt_testimonial&page=spt_settings | 5.00 | 48.77 |
All Testimonials /wp-admin/edit.php?post_type=spt_testimonial | 5.16 | 51.79 |
Testimonial Forms /wp-admin/edit.php?post_type=spt_testimonial_form | 4.81 | 37.04 |
Add New /wp-admin/post-new.php?post_type=spt_testimonial | 5.20 | 70.55 |
Server storage [IO: ▲3.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 176 new files
Database: no new tables, 13 new options
New WordPress options |
---|
testimonial_first_version |
testimonial_db_version |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
testimonial_activation_date |
sp_testimonial_review_notice_dismiss |
widget_tfree_widget |
sp_testimonial_pro_options |
testimonial_version |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Real Testimonials
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲158 | 14.37 ▲0.11 | 1.71 ▼0.22 | 28.41 ▼16.30 |
Dashboard /wp-admin | 2,316 ▲138 | 5.59 ▼0.07 | 93.82 ▼17.50 | 40.50 ▼3.78 |
Posts /wp-admin/edit.php | 2,221 ▲121 | 2.05 ▲0.08 | 40.72 ▲4.50 | 36.26 ▲0.10 |
Add New Post /wp-admin/post-new.php | 6,255 ▲4,727 | 18.94 ▼4.07 | 885.83 ▲267.51 | 61.95 ▲8.11 |
Media Library /wp-admin/upload.php | 1,525 ▲125 | 4.21 ▼0.01 | 99.97 ▲2.95 | 43.52 ▲3.77 |
Help /wp-admin/edit.php?post_type=spt_testimonial&page=tfree_help | 2,001 | 11.36 | 319.43 | 110.83 |
Tools /wp-admin/edit.php?post_type=spt_testimonial&page=testimonial_tools | 1,242 | 3.95 | 60.04 | 80.13 |
Manage Views /wp-admin/edit.php?post_type=spt_shortcodes | 1,421 | 4.05 | 55.48 | 31.87 |
Settings /wp-admin/edit.php?post_type=spt_testimonial&page=spt_settings | 1,335 | 3.65 | 59.20 | 78.48 |
All Testimonials /wp-admin/edit.php?post_type=spt_testimonial | 1,417 | 3.67 | 57.41 | 29.43 |
Testimonial Forms /wp-admin/edit.php?post_type=spt_testimonial_form | 2,510 | 4.43 | 95.17 | 54.56 |
Add New /wp-admin/post-new.php?post_type=spt_testimonial | 2,593 | 8.20 | 188.88 | 89.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 13 options
- db_upgraded
- theysaidso_admin_options
- testimonial_activation_date
- sp_testimonial_review_notice_dismiss
- widget_recent-posts
- sp_testimonial_pro_options
- testimonial_first_version
- can_compress_scripts
- testimonial_version
- testimonial_db_version
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% 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
- 33× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: post_id in wp-content/plugins/testimonial-free/src/Frontend/Views/partials/dynamic-style.php on line 177
- > PHP Fatal error
Uncaught Error: Call to undefined function update_option() in wp-content/plugins/testimonial-free/src/Admin/updates/update-2.6.1.php:6
- > PHP Notice
Undefined variable: outline in wp-content/plugins/testimonial-free/src/Frontend/Views/partials/dynamic-style.php on line 28
- > PHP Notice
Trying to get property 'max_num_pages' of non-object in wp-content/plugins/testimonial-free/src/Frontend/Views/templates/pagination.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function update_option() in wp-content/plugins/testimonial-free/src/Admin/updates/update-2.5.5.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/testimonial-free/src/Frontend/Views/templates/testimonial/designation.php:14
- > PHP Notice
Undefined variable: post_id in wp-content/plugins/testimonial-free/src/Frontend/Views/partials/dynamic-style.php on line 27
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/testimonial-free/src/Frontend/Views/templates/theme/theme-one.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/testimonial-free/src/Frontend/Views/templates/grid.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/testimonial-free/src/Frontend/Views/templates/section-title.php:12
- > PHP Notice
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 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 20 tag instead of maximum 10
testimonial-free/testimonial-free.php 92% from 13 tests
The main PHP script in "Real Testimonials" version 2.6.8 is automatically included on every request by WordPress
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 158 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin19,741 lines of code in 156 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 92 | 1,930 | 3,460 | 9,328 |
CSS | 16 | 533 | 598 | 5,800 |
JavaScript | 8 | 833 | 350 | 3,540 |
SVG | 39 | 6 | 2 | 1,068 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 22.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 142.00 |
Average method complexity | 5.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 58 | |
▷ Abstract classes | 2 | 3.45% |
▷ Concrete classes | 56 | 96.55% |
▷ Final classes | 0 | 0.00% |
Methods | 270 | |
▷ Static methods | 48 | 17.78% |
▷ Public methods | 263 | 97.41% |
▷ Protected methods | 4 | 1.48% |
▷ Private methods | 3 | 1.11% |
Functions | 27 | |
▷ Named functions | 24 | 88.89% |
▷ Anonymous functions | 3 | 11.11% |
Constants | 7 | |
▷ Global constants | 7 | 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
4 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/Admin/assets/images/icon-256.png | 19.95KB | 4.31KB | ▼ 78.37% |
src/Admin/assets/images/ali_senejani.png | 12.61KB | 12.58KB | 0.22% |
src/Admin/Views/Framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
src/Admin/assets/images/sirpa.png | 10.72KB | 9.12KB | ▼ 14.98% |