Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > User notice in wp-includes/functions.php+5905
Function add_shortcode was called incorrectly. Invalid shortcode name: view data. Do not use spaces or reserved characters: & / < > [ ] = Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.)
Server metrics [RAM: ▼1.93MB] [CPU: ▼55.80ms] Passed 4 tests
A check of server-side resources used by Advanced Testimonial Generator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 4.35 ▼36.30 |
Dashboard /wp-admin | 2.07 ▼1.23 | 5.28 ▼44.10 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 6.96 ▼43.21 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 6.04 ▼99.60 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.28 ▼30.17 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 22 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_testimonial |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
jal_db_version |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Advanced Testimonial Generator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,936 ▲190 | 14.04 ▼0.31 | 6.30 ▲4.63 | 43.39 ▲4.37 |
Dashboard /wp-admin | 2,223 ▲38 | 5.83 ▼0.03 | 108.21 ▲8.48 | 39.32 ▼2.84 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.05 ▲0.03 | 39.87 ▲0.05 | 31.81 ▼4.62 |
Add New Post /wp-admin/post-new.php | 1,550 ▲31 | 21.10 ▼2.10 | 616.60 ▼72.57 | 49.27 ▼1.48 |
Media Library /wp-admin/upload.php | 1,402 ▲14 | 4.21 ▼0.02 | 97.65 ▼1.44 | 43.76 ▲0.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function add_shortcode was called incorrectly. Invalid shortcode name: view data. Do not use spaces or reserved characters: & / < > [ ] = Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.)
- The uninstall procedure failed, leaving 1 table in the database
- wp_testimonial
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- jal_db_version
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-testimonial-generator/testimonial-generator/index.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-testimonial-generator/testimonial-generator/frontend_view.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-testimonial-generator/index.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/advanced-testimonial-generator/testimonial-generator/view_testimonial.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/advanced-testimonial-generator/view_testimonial.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-testimonial-generator/frontend_view.php:44
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 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
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (The Settings Page.), #2 (Demo Page.)
- Contributors: Plugin contributors field is missing
- Requires at least: Version not formatted correctly
advanced-testimonial-generator/index.php 92% from 13 tests
The primary PHP file in "Advanced Testimonial Generator" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advanced-testimonial-generator.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,261 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 292 | 515 | 639 |
CSS | 2 | 43 | 17 | 466 |
PHP | 4 | 78 | 15 | 156 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
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 | 20 | |
▷ Named functions | 20 | 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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.18MB with 0.12MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 20.41KB | 10.92KB | ▼ 46.52% |
screenshot-2.png | 166.36KB | 24.15KB | ▼ 85.49% |