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: ▼0.24MB] [CPU: ▼23.35ms] Passed 4 tests
Analyzing server-side resources used by Advanced WP Testimonial
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▼0.52 | 18.53 ▼23.68 |
Dashboard /wp-admin | 3.26 ▼0.09 | 30.63 ▼33.92 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 36.43 ▼7.81 |
Add New Post /wp-admin/post-new.php | 5.55 ▼0.34 | 73.34 ▼27.89 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 29.86 ▼7.90 |
Add Testimonials /wp-admin/post-new.php?post_type=awt_testimonial | 3.24 | 33.02 |
Testimonials /wp-admin/edit.php?post_type=awt_testimonial | 3.39 | 36.56 |
Settings /wp-admin/edit.php?post_type=awt_testimonial&page=awt_settings | 3.31 | 31.00 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_awt_testimonial_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Advanced WP Testimonial: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲88 | 13.26 ▼1.34 | 1.66 ▼0.15 | 39.70 ▼3.09 |
Dashboard /wp-admin | 2,237 ▲46 | 4.82 ▼0.99 | 105.44 ▼9.48 | 41.47 ▼6.02 |
Posts /wp-admin/edit.php | 2,120 ▲34 | 2.05 ▲0.06 | 39.76 ▲3.23 | 34.19 ▲1.78 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 17.60 ▼3.42 | 642.84 ▼140.87 | 54.17 ▼24.23 |
Media Library /wp-admin/upload.php | 1,419 ▲34 | 4.24 ▲0.14 | 104.57 ▼6.91 | 45.30 ▼3.77 |
Add Testimonials /wp-admin/post-new.php?post_type=awt_testimonial | 2,307 | 7.71 | 174.84 | 67.95 |
Testimonials /wp-admin/edit.php?post_type=awt_testimonial | 1,086 | 2.04 | 31.95 | 29.61 |
Settings /wp-admin/edit.php?post_type=awt_testimonial&page=awt_settings | 997 | 2.08 | 27.59 | 42.55 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_awt_testimonial_widget
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/post-new.php?post_type=awt_testimonial
- > Notice in wp-content/plugins/advanced-wp-testimonial/init.php+89
Undefined index: awt_client_name
- > GET request to /wp-admin/post-new.php?post_type=awt_testimonial
- > Notice in wp-content/plugins/advanced-wp-testimonial/init.php+90
Undefined index: awt_client_siteurl
- > GET request to /wp-admin/post-new.php?post_type=awt_testimonial
- > Notice in wp-content/plugins/advanced-wp-testimonial/html/client_meta_box.php+4
Undefined index: post
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/advanced-wp-testimonial/template/widget-awt_testimonial.php
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/advanced-wp-testimonial/template/single-awt_testimonial.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/advanced-wp-testimonial/widgets/testimonial_widget.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/advanced-wp-testimonial/widgets/testimonial_widget.php:3
- > PHP Notice
Trying to get property 'before_widget' of non-object in wp-content/plugins/advanced-wp-testimonial/template/widget-awt_testimonial.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/advanced-wp-testimonial/template/archive-awt_testimonial.php:2
- > PHP Notice
Trying to get property 'posts' of non-object in wp-content/plugins/advanced-wp-testimonial/template/widget-awt_testimonial.php on line 18
- > PHP Notice
Trying to get property 'after_widget' of non-object in wp-content/plugins/advanced-wp-testimonial/template/widget-awt_testimonial.php on line 53
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/advanced-wp-testimonial/template/widget-awt_testimonial.php on line 18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (General Settings Screen For the Plugin Options), #2 (list of All the Testimonials), #3 (Add New Testimonial)
advanced-wp-testimonial/init.php 92% from 13 tests
This is the main PHP file of "Advanced WP Testimonial" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("advanced-wp-testimonial.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin721 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 90 | 33 | 699 |
JavaScript | 1 | 5 | 0 | 22 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.57MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 197.49KB | 62.62KB | ▼ 68.29% |
img/twitter.png | 3.46KB | 2.07KB | ▼ 40.11% |
img/facebook.png | 4.16KB | 2.32KB | ▼ 44.35% |
screenshot-1.png | 177.87KB | 52.71KB | ▼ 70.37% |
img/wordpress.png | 4.79KB | 2.37KB | ▼ 50.49% |