Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.16MB] [CPU: ▼2.71ms] Passed 4 tests
An overview of server-side resources used by Testimonials WP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 42.31 ▲1.52 |
Dashboard /wp-admin | 3.47 ▲0.17 | 49.28 ▼7.01 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 52.16 ▼4.28 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 97.16 ▲1.73 |
Media Library /wp-admin/upload.php | 3.39 ▲0.17 | 40.80 ▼1.05 |
Server storage [IO: ▲1.69MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 30 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_testimonials_wp |
New WordPress options |
---|
twp_display_settings |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
twp_settings |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Testimonials WP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,946 ▲185 | 14.00 ▼0.40 | 5.92 ▲4.19 | 39.95 ▼2.58 |
Dashboard /wp-admin | 2,237 ▲34 | 5.88 ▲0.07 | 100.43 ▼10.82 | 38.16 ▼7.03 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.06 ▼0.00 | 38.31 ▼0.69 | 36.49 ▼4.64 |
Add New Post /wp-admin/post-new.php | 1,558 ▲27 | 23.40 ▲0.25 | 643.96 ▲6.54 | 57.18 ▲7.91 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.18 ▲0.03 | 158.47 ▲41.91 | 59.07 ▲10.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_testimonials_wp
- This plugin does not fully uninstall, leaving 8 options in the database
- db_upgraded
- twp_display_settings
- twp_settings
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/testimonials-wp/php_libraries/twp_tables_class.php on line 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/testimonials-wp/php_libraries/twp_tables_class.php on line 5
- > 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/testimonials-wp/php_libraries/twp_tables_class.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/testimonials-wp/options.php:781
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
5 plugin tags: user reviews, wordpress testimonials, testimonials, customer reviews, reviews
testimonials-wp/testimonials-wp.php Passed 13 tests
The entry point to "Testimonials WP" version 1.0.0 is a PHP file that has certain tags in its header comment area
130 characters long description:
Customizable plugin that creates and displays your testimonials with shortcodes. Create the testimonials as an Admin or as a User.
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
Good job! No executable or dangerous file extensions detected3,218 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 150 | 17 | 1,460 |
Sass | 2 | 28 | 0 | 741 |
CSS | 2 | 189 | 2 | 737 |
JavaScript | 2 | 30 | 0 | 280 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 51 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 45 | 88.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 11.76% |
Functions | 22 | |
▷ Named functions | 22 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.44MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 9.65KB | 3.17KB | ▼ 67.15% |
assets/screenshot-5.png | 21.24KB | 8.73KB | ▼ 58.90% |
images/default-profile.png | 6.23KB | 1.52KB | ▼ 75.54% |
assets/banner-772x250.png | 13.81KB | 4.39KB | ▼ 68.20% |
assets/screenshot-7.png | 149.91KB | 57.59KB | ▼ 61.58% |