Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/fp-testimonials/fp_testimonials.php+112
Methods with the same name as their class will not be constructors in a future version of PHP; TestimonailWidget has a deprecated constructor
Server metrics [RAM: ▼1.77MB] [CPU: ▼56.96ms] Passed 4 tests
A check of server-side resources used by FP Testimonials
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.21 ▼1.25 | 6.30 ▼37.49 |
Dashboard /wp-admin | 2.23 ▼1.07 | 5.81 ▼49.87 |
Posts /wp-admin/edit.php | 2.23 ▼1.12 | 6.27 ▼51.28 |
Add New Post /wp-admin/post-new.php | 2.23 ▼3.65 | 7.14 ▼89.20 |
Media Library /wp-admin/upload.php | 2.23 ▼1.00 | 5.90 ▼35.84 |
FP Testimonials /wp-admin/edit.php?post_type=testimonial | 2.23 | 6.52 |
Add New /wp-admin/post-new.php?post_type=testimonial | 2.23 | 6.59 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_testimonailwidget |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for FP Testimonials
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,913 ▲127 | 13.49 ▼0.78 | 7.89 ▲5.51 | 40.79 ▼5.66 |
Dashboard /wp-admin | 2,229 ▲55 | 5.62 ▲0.09 | 89.13 ▼14.58 | 37.76 ▼4.44 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 1.98 ▲0.01 | 38.50 ▼1.25 | 34.62 ▼5.35 |
Add New Post /wp-admin/post-new.php | 1,558 ▲30 | 23.18 ▲0.22 | 613.06 ▼41.55 | 56.44 ▼0.15 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.21 ▼0.03 | 98.83 ▼12.06 | 45.94 ▼0.81 |
FP Testimonials /wp-admin/edit.php?post_type=testimonial | 1,129 | 1.96 | 33.05 | 28.44 |
Add New /wp-admin/post-new.php?post_type=testimonial | 2,217 | 7.68 | 168.60 | 62.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/fp-testimonials/fp_testimonials.php+112
Methods with the same name as their class will not be constructors in a future version of PHP; TestimonailWidget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- widget_testimonailwidget
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=testimonial
- > Deprecated in wp-content/plugins/fp-testimonials/fp_testimonials.php+112
Methods with the same name as their class will not be constructors in a future version of PHP; TestimonailWidget has a deprecated constructor
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=testimonial
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=testimonial
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the my_script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=testimonial
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the testi_css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=testimonial
- > Deprecated in wp-content/plugins/fp-testimonials/fp_testimonials.php+335
Function create_function() is deprecated
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=testimonial
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in TestimonailWidget is deprecated since version 4.3.0! Use __construct() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=testimonial
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
SRP 50% 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
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/fp-testimonials/fp_testimonials.php:12
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (View of Backend Testimonial area.), #2 (View Backend Widget Settings.), #3 (View Frontend Widget View.), #4 (View Frontend Testimonial Page with Pagination.)
fp-testimonials/fp_testimonials.php 85% from 13 tests
The main PHP file in "FP Testimonials" ver. 1.0.7 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("fp-testimonials.php" instead of "fp_testimonials.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 332 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
There were no executable files found in this plugin442 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 33 | 19 | 357 |
CSS | 1 | 2 | 4 | 84 |
JavaScript | 1 | 0 | 11 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 49.00 |
▷ Minimum class complexity | 49.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 13.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
9 PNG files occupy 0.14MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/right.png | 3.66KB | 0.29KB | ▼ 92.01% |
screenshot-3.png | 16.50KB | 6.96KB | ▼ 57.81% |
screenshot-1.png | 30.11KB | 11.60KB | ▼ 61.48% |
images/testimonial.png | 0.62KB | 0.65KB | 0.00% |
images/left.png | 3.00KB | 0.29KB | ▼ 90.38% |