Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.14MB] [CPU: ▼1.15ms] Passed 4 tests
Analyzing server-side resources used by Testimonial Slider
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 42.22 ▼0.09 |
Dashboard /wp-admin | 3.48 ▲0.18 | 49.53 ▲1.71 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 52.51 ▲8.48 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 88.29 ▼6.28 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 35.84 ▲0.06 |
Settings /wp-admin/edit.php?post_type=testimonial&page=testimonial_settings | 3.40 | 38.27 |
All Testimonial /wp-admin/edit.php?post_type=testimonial | 3.43 | 42.29 |
All Templates /wp-admin/edit.php?post_type=testimonial_template | 3.56 | 47.74 |
Add New /wp-admin/post-new.php?post_type=testimonial | 3.53 | 50.23 |
Server storage [IO: ▲3.62MB] [DB: ▲0.02MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 67 new files
Database: no new tables, 7 new options
New WordPress options |
---|
testimonial_plugin_info |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Testimonial Slider
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,021 ▲264 | 18.20 ▲3.83 | 1.74 ▼0.24 | 42.71 ▲0.84 |
Dashboard /wp-admin | 2,424 ▲236 | 8.73 ▲2.87 | 187.80 ▲72.23 | 42.14 ▼1.44 |
Posts /wp-admin/edit.php | 2,476 ▲387 | 6.00 ▲3.97 | 116.68 ▲78.34 | 35.17 ▼0.26 |
Add New Post /wp-admin/post-new.php | 1,566 ▲20 | 19.14 ▲0.79 | 722.45 ▲112.54 | 37.99 ▼28.68 |
Media Library /wp-admin/upload.php | 1,619 ▲231 | 6.45 ▲2.28 | 140.55 ▲43.60 | 45.25 ▼0.28 |
Settings /wp-admin/edit.php?post_type=testimonial&page=testimonial_settings | 1,382 | 6.03 | 117.69 | 39.41 |
All Testimonial /wp-admin/edit.php?post_type=testimonial | 1,440 | 5.89 | 68.44 | 27.50 |
All Templates /wp-admin/edit.php?post_type=testimonial_template | 2,614 | 5.99 | 69.64 | 28.95 |
Add New /wp-admin/post-new.php?post_type=testimonial | 3,560 | 6.84 | 121.41 | 45.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- testimonial_plugin_info
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=testimonial_template
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-codemirror,underscore,code-editor,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).Lazy is not a function" "TypeError: $(...).Lazy is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/testimonial/assets/settings-tabs/settings-tabs.js?ver=6.3.1:311:20)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-codemirror,underscore,code-editor,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-codemirror,underscore,code-editor,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=testimonial_template
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-codemirror,underscore,code-editor,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $(...).Lazy is not a function
- > GET request to /wp-admin/post-new.php?post_type=testimonial
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,underscore,wp-codemirror,code-editor,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).Lazy is not a function" "TypeError: $(...).Lazy is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/testimonial/assets/settings-tabs/settings-tabs.js?ver=6.3.1:311:20)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,underscore,wp-codemirror,code-editor,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,underscore,wp-codemirror,code-editor,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=testimonial
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,underscore,wp-codemirror,code-editor,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $(...).Lazy is not a function
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #10, #11, #3, #4, #9 in testimonial/assets to your readme.txt
testimonial/testimonial.php Passed 13 tests
The principal PHP file in "Testimonial Slider" v. 2.0.12 is loaded by WordPress automatically on each request
53 characters long description:
Display testimonial and reviews in a carousel slider.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected18,279 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 4 | 0 | 0 | 9,131 |
PHP | 18 | 2,624 | 159 | 5,244 |
CSS | 6 | 1,714 | 70 | 3,724 |
JavaScript | 2 | 113 | 30 | 180 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 111.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 641.00 |
Average method complexity | 14.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 48 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 56 | |
▷ Named functions | 56 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
19 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/images/navThemes5.png | 2.45KB | 1.26KB | ▼ 48.44% |
assets/admin/images/profile.png | 2.48KB | 1.89KB | ▼ 23.68% |
assets/admin/images/navThemes7.png | 1.27KB | 0.46KB | ▼ 64.07% |
assets/admin/images/dotsThemes2.png | 0.65KB | 0.20KB | ▼ 69.97% |
assets/admin/images/dotsThemes4.png | 0.66KB | 0.20KB | ▼ 68.95% |