Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼1.79MB] [CPU: ▼58.90ms] Passed 4 tests
A check of server-side resources used by Testimonials Pro
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.20 ▼1.27 | 5.71 ▼37.35 |
Dashboard /wp-admin | 2.22 ▼1.09 | 6.94 ▼46.30 |
Posts /wp-admin/edit.php | 2.22 ▼1.14 | 7.71 ▼51.31 |
Add New Post /wp-admin/post-new.php | 2.22 ▼3.67 | 6.29 ▼100.62 |
Media Library /wp-admin/upload.php | 2.22 ▼1.01 | 7.15 ▼30.61 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 10 new files
Database: 1 new table, 11 new options
New tables |
---|
wp_testimonials_pro |
New WordPress options |
---|
TP_category |
TP_MoreText |
can_compress_scripts |
TP_MoreLink |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
TP_name |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Testimonials Pro
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.14 ▼0.23 | 2.23 ▲0.55 | 43.04 ▼3.20 |
Dashboard /wp-admin | 2,206 ▲32 | 5.55 ▼0.10 | 86.17 ▼7.84 | 38.92 ▼8.11 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.01 ▼0.00 | 38.73 ▼2.14 | 34.85 ▼2.09 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 23.54 ▲0.43 | 664.11 ▲39.73 | 56.48 ▲8.87 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.15 ▼0.06 | 93.56 ▼12.86 | 46.76 ▲1.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% 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
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5453
Function register_sidebar_widget is deprecated since version 2.8.0! Use wp_register_sidebar_widget() instead.
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_testimonials_pro
- This plugin does not fully uninstall, leaving 11 options in the database
- widget_recent-comments
- TP_MoreText
- TP_TextLength
- TP_name
- can_compress_scripts
- widget_theysaidso_widget
- TP_category
- theysaidso_admin_options
- db_upgraded
- TP_MoreLink
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% 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
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/testimonials-pro/testimonials-pro.php:502
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/testimonials-pro/testimonials-pro.php on line 19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (The sidebar widget.), #2 (The widget back-end.)
testimonials-pro/testimonials-pro.php Passed 13 tests
This is the main PHP file of "Testimonials Pro" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
68 characters long description:
Display testimonials on your website in various ways and dimensions.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected516 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 79 | 13 | 435 |
JavaScript | 2 | 12 | 0 | 81 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
tp-arrow.png | 1.20KB | 0.39KB | ▼ 67.80% |
screenshot-2.png | 19.75KB | 6.74KB | ▼ 65.89% |
screenshot-1.png | 19.21KB | 6.14KB | ▼ 68.06% |
navigation-20px.png | 3.40KB | 0.88KB | ▼ 74.23% |