Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.36MB] [CPU: ▲1.82ms] Passed 4 tests
An overview of server-side resources used by Testimonials Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 43.80 ▲0.89 |
Dashboard /wp-admin | 3.73 ▲0.43 | 77.20 ▲28.11 |
Posts /wp-admin/edit.php | 3.77 ▲0.41 | 51.51 ▲0.29 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.36 | 90.09 ▼1.62 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 42.23 ▲7.72 |
Add New /wp-admin/post-new.php?post_type=testimonials-widget | 4.02 | 62.74 |
Settings /wp-admin/edit.php?post_type=testimonials-widget&page=testimonialswidget_settings | 4.27 | 76.27 |
Clear Cache /wp-admin/edit.php?post_type=testimonials-widget&page=testimonials-widget-premium-cache | 4.09 | 53.68 |
Testimonials /wp-admin/edit.php?post_type=testimonials-widget | 4.25 | 47.64 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=testimonials-widget | 3.57 | 39.35 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=testimonials-widget | 3.57 | 50.73 |
Server storage [IO: ▲10.79MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 624 new files
Database: no new tables, 14 new options
New WordPress options |
---|
widget_tw_tag_cloud_widget |
category_children |
db_upgraded |
widget_twp_form_widget |
widget_tw_recent_testimonials_widget |
can_compress_scripts |
widget_tw_categories_widget |
testimonialswidget_settings |
widget_testimonials_widget |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Testimonials Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,860 ▲125 | 13.55 ▼0.82 | 1.85 ▼0.12 | 42.07 ▼5.02 |
Dashboard /wp-admin | 2,248 ▲57 | 4.82 ▼0.04 | 100.48 ▼18.87 | 45.41 ▼1.07 |
Posts /wp-admin/edit.php | 2,134 ▲48 | 2.02 ▼0.03 | 34.68 ▼3.61 | 35.44 ▲3.09 |
Add New Post /wp-admin/post-new.php | 1,551 ▲16 | 17.73 ▼5.22 | 578.98 ▼75.29 | 42.55 ▼10.14 |
Media Library /wp-admin/upload.php | 1,436 ▲51 | 4.18 ▼0.03 | 92.93 ▼8.51 | 42.62 ▼3.08 |
Add New /wp-admin/post-new.php?post_type=testimonials-widget | 2,891 | 8.07 | 200.22 | 78.95 |
Settings /wp-admin/edit.php?post_type=testimonials-widget&page=testimonialswidget_settings | 5,860 | 2.16 | 45.37 | 82.43 |
Clear Cache /wp-admin/edit.php?post_type=testimonials-widget&page=testimonials-widget-premium-cache | 798 | 2.02 | 28.20 | 28.88 |
Testimonials /wp-admin/edit.php?post_type=testimonials-widget | 1,210 | 1.98 | 35.67 | 32.25 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=testimonials-widget | 1,352 | 2.14 | 29.99 | 29.53 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=testimonials-widget | 1,485 | 2.14 | 28.48 | 32.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 14 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- category_children
- widget_tw_tag_cloud_widget
- widget_twp_form_widget
- widget_tw_archives_widget
- widget_tw_recent_testimonials_widget
- db_upgraded
- theysaidso_admin_options
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
The following issues need your attention
- 38× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/testimonials-widget/includes/libraries/testimonials-widget/templates/span-job-title.php
- > /wp-content/plugins/testimonials-widget/templates/single-excerpt.php
- > /wp-content/plugins/testimonials-widget/templates/testimonial-extra.php
- > /wp-content/plugins/testimonials-widget/includes/libraries/class-redrokk-metabox-class.php
- > /wp-content/plugins/testimonials-widget/includes/libraries/testimonials-widget/templates/testimonial-bottom.php
- > /wp-content/plugins/testimonials-widget/templates/testimonial-close.php
- > /wp-content/plugins/testimonials-widget/includes/libraries/testimonials-widget/templates/testimonial-extra.php
- > /wp-content/plugins/testimonials-widget/templates/span-join-location.php
- > /wp-content/plugins/testimonials-widget/includes/libraries/testimonials-widget/templates/span-join-title.php
- > /wp-content/plugins/testimonials-widget/templates/link-after.php
- 277× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/testimonials-widget/templates/testimonial-open.php on line 8
- > PHP Fatal error
require_once(): Failed opening required 'TWP_DIR_INCclass-testimonials-widget-premium-antispam-bee-base.php' (include_path='.:/usr/share/php') in wp-content/plugins/testimonials-widget/includes/class-testimonials-widget-premium-antispam-bee.php on line 21
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/testimonials-widget/includes/libraries/testimonials-widget/templates/span-location.php on line 4
- > PHP Warning
require_once(AIHR_DIR_INCclass-aihrus-widget.php): failed to open stream: No such file or directory in wp-content/plugins/testimonials-widget/includes/class-testimonials-widget-recent-testimonials-widget.php on line 21
- > PHP Fatal error
require_once(): Failed opening required 'AIHR_DIRaihrus-framework.php' (include_path='.:/usr/share/php') in wp-content/plugins/testimonials-widget/includes/requirements.php on line 21
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/testimonials-widget/includes/libraries/testimonials-widget/templates/testimonial-open.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/testimonials-widget/templates/testimonial-cite.php on line 12
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/testimonials-widget/templates/links-more.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'TW_DIR_LIBaihrus-framework/aihrus-framework.php' (include_path='.:/usr/share/php') in wp-content/plugins/testimonials-widget/includes/libraries/testimonials-widget/includes/requirements.php on line 21
- > PHP Fatal error
Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/testimonials-widget/includes/feed-rss2.php:9
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/edit.php?post_type=testimonials-widget&page=testimonialswidget_settings
- > Network (severe)
https://store.axelerant.com/wp-content/uploads/2015/02/IGP7228-2015-01-22-at-05-18-02.jpg - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
testimonials-widget/testimonials-widget.php 92% from 13 tests
The primary PHP file in "Testimonials Widget" version 4.0.4 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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 detected29,270 lines of code in 315 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 105 | 5,066 | 4,016 | 17,258 |
Markdown | 77 | 1,254 | 0 | 4,524 |
JavaScript | 22 | 390 | 1,438 | 3,267 |
Handlebars | 28 | 458 | 30 | 1,577 |
CSS | 10 | 104 | 62 | 770 |
PO File | 4 | 271 | 501 | 673 |
HTML | 53 | 118 | 12 | 655 |
LESS | 2 | 33 | 27 | 251 |
JSON | 10 | 4 | 0 | 245 |
XML | 4 | 0 | 0 | 50 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 37.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 242.00 |
Average method complexity | 3.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 7 | |
Traits | 0 | |
Classes | 67 | |
▷ Abstract classes | 12 | 17.91% |
▷ Concrete classes | 55 | 82.09% |
▷ Final classes | 1 | 1.82% |
Methods | 936 | |
▷ Static methods | 544 | 58.12% |
▷ Public methods | 824 | 88.03% |
▷ Protected methods | 94 | 10.04% |
▷ Private methods | 18 | 1.92% |
Functions | 86 | |
▷ Named functions | 82 | 95.35% |
▷ Anonymous functions | 4 | 4.65% |
Constants | 115 | |
▷ Global constants | 65 | 56.52% |
▷ Class constants | 50 | 43.48% |
▷ Public constants | 50 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
24 PNG files occupy 1.01MB with 0.58MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-7.png | 94.35KB | 26.68KB | ▼ 71.72% |
assets/screenshot-4.png | 66.72KB | 20.63KB | ▼ 69.08% |
assets/images/star-half.png | 0.65KB | 0.65KB | 0.00% |
assets/screenshot-6.png | 58.21KB | 17.68KB | ▼ 69.62% |
assets/screenshot-3.png | 116.24KB | 25.25KB | ▼ 78.28% |