Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/simple-wp-testimonials/widgets.php+8
Methods with the same name as their class will not be constructors in a future version of PHP; Testimonials_Widget has a deprecated constructor
Server metrics [RAM: ▼1.83MB] [CPU: ▼55.44ms] Passed 4 tests
Analyzing server-side resources used by Simple WP Testimonials
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.16 ▼1.31 | 5.23 ▼35.74 |
Dashboard /wp-admin | 2.18 ▼1.13 | 6.64 ▼42.92 |
Posts /wp-admin/edit.php | 2.18 ▼1.18 | 7.15 ▼46.32 |
Add New Post /wp-admin/post-new.php | 2.18 ▼3.71 | 6.91 ▼96.76 |
Media Library /wp-admin/upload.php | 2.18 ▼1.05 | 6.68 ▼27.67 |
Testimonials /wp-admin/edit.php?post_type=testimonial-post | 2.18 | 6.52 |
Add New /wp-admin/post-new.php?post_type=testimonial-post | 2.18 | 7.07 |
Server storage [IO: ▲0.75MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_testimonial-widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Simple WP Testimonials: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲65 | 13.24 ▼1.32 | 2.26 ▼0.02 | 42.82 ▼3.88 |
Dashboard /wp-admin | 2,232 ▲44 | 5.81 ▲0.96 | 98.45 ▼8.34 | 42.27 ▼1.89 |
Posts /wp-admin/edit.php | 2,118 ▲26 | 2.01 ▼0.01 | 39.88 ▼1.13 | 35.47 ▼4.51 |
Add New Post /wp-admin/post-new.php | 1,558 ▲21 | 23.30 ▲0.11 | 583.74 ▼72.26 | 50.48 ▼6.46 |
Media Library /wp-admin/upload.php | 1,420 ▲32 | 4.25 ▲0.03 | 94.59 ▼3.63 | 41.43 ▼2.23 |
Testimonials /wp-admin/edit.php?post_type=testimonial-post | 1,100 | 1.94 | 30.85 | 28.72 |
Add New /wp-admin/post-new.php?post_type=testimonial-post | 2,510 | 7.65 | 188.78 | 74.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/simple-wp-testimonials/widgets.php+8
Methods with the same name as their class will not be constructors in a future version of PHP; Testimonials_Widget has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- db_upgraded
- widget_testimonial-widget
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=testimonial-post
- > Deprecated in wp-content/plugins/simple-wp-testimonials/widgets.php+8
Methods with the same name as their class will not be constructors in a future version of PHP; Testimonials_Widget has a deprecated constructor
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=testimonial-post
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in Testimonials_Widget is deprecated since version 4.3.0! Use __construct() instead.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 4× 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/simple-wp-testimonials/admin-functions.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-wp-testimonials/shortcode.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-wp-testimonials/widgets.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-wp-testimonials/index.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (Add the Testimonials Page.), #2 (Admin List of Testimonials.), #3 (Frontend Testimonials List.), #4 (Widgets Manage.), #5 (Testimonial Slider in Sidebar.)
simple-wp-testimonials/index.php 92% from 13 tests
"Simple WP Testimonials" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("simple-wp-testimonials.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin903 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 187 | 141 | 619 |
JavaScript | 2 | 37 | 18 | 175 |
CSS | 1 | 19 | 5 | 109 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 21.33 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 4.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 4 | 20.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.71MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/slidebox_next_hover.png | 0.22KB | 0.13KB | ▼ 40.44% |
screenshot-2.png | 46.31KB | 19.48KB | ▼ 57.94% |
images/slidebox_previous_hover.png | 0.17KB | 0.10KB | ▼ 38.24% |
screenshot-4.png | 11.16KB | 5.34KB | ▼ 52.17% |
screenshot-1.png | 38.71KB | 21.61KB | ▼ 44.16% |