Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼2.51ms] Passed 4 tests
A check of server-side resources used by WP Testimonial
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.14 | 40.15 ▼4.75 |
Dashboard /wp-admin | 3.43 ▲0.13 | 48.24 ▼4.24 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 51.37 ▲1.91 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 98.91 ▼1.89 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 39.03 ▲0.85 |
Settings /wp-admin/edit.php?post_type=wpt_testimonial&page=wpt-testimonials-plugin | 3.32 | 35.07 |
WP Testimonials /wp-admin/edit.php?post_type=wpt_testimonial | 3.39 | 38.90 |
Add New /wp-admin/post-new.php?post_type=wpt_testimonial | 3.47 | 52.09 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_wp_testimonial_widget |
Browser metrics Passed 4 tests
WP Testimonial: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,948 ▲213 | 14.06 ▼0.61 | 5.52 ▲3.58 | 38.99 ▼6.62 |
Dashboard /wp-admin | 2,241 ▲53 | 4.88 ▼0.04 | 109.02 ▲9.12 | 38.69 ▼6.41 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.04 ▲0.03 | 40.34 ▲5.46 | 33.43 ▲0.13 |
Add New Post /wp-admin/post-new.php | 1,564 ▲31 | 23.32 ▼0.05 | 633.75 ▼48.88 | 53.83 ▼6.09 |
Media Library /wp-admin/upload.php | 1,427 ▲36 | 4.25 ▲0.10 | 99.45 ▼9.83 | 40.72 ▼5.39 |
Settings /wp-admin/edit.php?post_type=wpt_testimonial&page=wpt-testimonials-plugin | 1,169 | 1.73 | 25.70 | 36.01 |
WP Testimonials /wp-admin/edit.php?post_type=wpt_testimonial | 1,098 | 1.94 | 30.51 | 28.71 |
Add New /wp-admin/post-new.php?post_type=wpt_testimonial | 2,363 | 7.82 | 165.10 | 74.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_wp_testimonial_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-testimonial/lib/wpt-testimonial-wdget.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-testimonial/wp-testimonial.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-testimonial/lib/class-wpt-testimonial.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
6 plugin tags: testimonial slider, simple testimonials, testimonials widget, responsive testimonial rotator, testimonial...
wp-testimonial/wp-testimonial.php 92% from 13 tests
"WP Testimonial" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to 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 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,638 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 113 | 122 | 1,096 |
PHP | 4 | 124 | 143 | 470 |
CSS | 2 | 1 | 9 | 72 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 6 | |
▷ Static methods | 1 | 16.67% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/block.png | 17.35KB | 11.25KB | ▼ 35.14% |
images/laquo.png | 1.13KB | 0.29KB | ▼ 74.65% |
images/raquo.png | 1.11KB | 0.28KB | ▼ 74.50% |