Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/wp-testimonial-widget/testimonial_widget.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; SWP_Testimonial_Widget has a deprecated constructor
Server metrics [RAM: ▼1.69MB] [CPU: ▼53.77ms] Passed 4 tests
Analyzing server-side resources used by WP Testimonial Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.30 ▼1.17 | 7.20 ▼31.48 |
Dashboard /wp-admin | 2.32 ▼0.99 | 7.78 ▼46.85 |
Posts /wp-admin/edit.php | 2.32 ▼1.04 | 7.13 ▼43.80 |
Add New Post /wp-admin/post-new.php | 2.32 ▼3.57 | 7.02 ▼92.94 |
Media Library /wp-admin/upload.php | 2.32 ▼0.91 | 7.55 ▼28.39 |
Categories /wp-admin/admin.php?page=testimonail_category | 2.32 | 8.59 |
Help /wp-admin/admin.php?page=help | 2.32 | 8.19 |
Re Order /wp-admin/admin.php?page=re-order | 2.32 | 6.11 |
Testimonials /wp-admin/admin.php?page=testimonial | 2.32 | 6.67 |
Settings /wp-admin/admin.php?page=setting | 2.32 | 6.38 |
Server storage [IO: ▲0.75MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 42 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_swp_testimonial |
wp_swp_category |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_swp_testimonial_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Testimonial Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,088 ▲342 | 15.83 ▲1.22 | 5.47 ▲3.83 | 37.83 ▼0.02 |
Dashboard /wp-admin | 2,392 ▲210 | 7.15 ▲1.28 | 132.57 ▲27.71 | 95.76 ▲51.88 |
Posts /wp-admin/edit.php | 2,315 ▲226 | 3.76 ▲1.71 | 52.70 ▲16.07 | 66.78 ▲32.39 |
Add New Post /wp-admin/post-new.php | 1,573 ▲59 | 23.65 ▲6.08 | 652.13 ▼31.32 | 174.26 ▲121.01 |
Media Library /wp-admin/upload.php | 1,455 ▲64 | 4.98 ▲0.74 | 85.31 ▼10.61 | 87.08 ▲44.29 |
Categories /wp-admin/admin.php?page=testimonail_category | 1,251 | 3.88 | 51.46 | 70.47 |
Help /wp-admin/admin.php?page=help | 1,213 | 3.79 | 44.83 | 66.83 |
Re Order /wp-admin/admin.php?page=re-order | 1,020 | 3.83 | 47.45 | 49.30 |
Testimonials /wp-admin/admin.php?page=testimonial | 1,389 | 4.05 | 49.38 | 72.30 |
Settings /wp-admin/admin.php?page=setting | 1,016 | 3.80 | 43.84 | 73.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/wp-testimonial-widget/testimonial_widget.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; SWP_Testimonial_Widget has a deprecated constructor
- Zombie tables detected upon uninstall: 2 tables
- wp_swp_testimonial
- wp_swp_category
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_swp_testimonial_widget
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% 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)
Smoke test failed, please fix the following
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=setting
- > Deprecated in wp-content/plugins/wp-testimonial-widget/testimonial_widget.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; SWP_Testimonial_Widget has a deprecated constructor
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=setting
- > Deprecated in wp-content/plugins/wp-testimonial-widget/functions.php+93
Function create_function() is deprecated
- > GET request to /wp-admin/admin.php?page=testimonail_category
- > Warning in wp-content/plugins/wp-testimonial-widget/category.php+229
Use of undefined constant CHILD_IMG - assumed 'CHILD_IMG' (this will throw an Error in a future version of PHP)
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-testimonial-widget/add_testimonial.php
- 15× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-testimonial-widget/setting.php:6
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-testimonial-widget/functions.php on line 2
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/wp-testimonial-widget/re-order.php:4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wp-testimonial-widget/category.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/wp-testimonial-widget/help.php:3
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-testimonial-widget/add_testimonial.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-testimonial-widget/add-shortcode.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-testimonial-widget/testimonial_widget.php:5
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-testimonial-widget/category.php on line 4
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-testimonial-widget/re-order.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Manage testimonials), #2 (Widget options), #3 (Re order testimonial page), #4 (Help)
wp-testimonial-widget/swp-testimonial.php 92% from 13 tests
The main PHP file in "WP Testimonial Widget" ver. 3.0 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: It is recommended to name the main PHP file as the plugin slug ("wp-testimonial-widget.php" instead of "swp-testimonial.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected4,079 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 211 | 223 | 1,842 |
JavaScript | 9 | 239 | 207 | 1,470 |
CSS | 7 | 88 | 51 | 767 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 35.33 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 4.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.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 | 30 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 30 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 31 | |
▷ Named functions | 31 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
14 PNG files occupy 0.26MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/quote-after.png | 1.07KB | 0.22KB | ▼ 79.21% |
images/testimonial.png | 8.54KB | 2.96KB | ▼ 65.34% |
images/quote-before.png | 1.08KB | 0.24KB | ▼ 77.72% |
images/icon.png | 1.58KB | 0.74KB | ▼ 53.16% |
(invalid) images/profile.png | 3.26KB | 0.00KB | ▼ 100.00% |