Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼0.50ms] Passed 4 tests
Server-side resources used by FG Testimonials
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 44.46 ▼2.37 |
Dashboard /wp-admin | 3.46 ▲0.16 | 52.84 ▲1.86 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 49.58 ▼3.03 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 97.67 ▲1.53 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 41.58 ▲2.61 |
Add New /wp-admin/post-new.php?post_type=fgts_post_type | 3.51 | 53.67 |
Settings /wp-admin/edit.php?post_type=fgts_post_type&page=fgts_testimonial_setting_page | 3.36 | 51.31 |
Categories /wp-admin/edit-tags.php?taxonomy=fgts-category&post_type=fgts_post_type | 3.38 | 37.86 |
All /wp-admin/edit.php?post_type=fgts_post_type | 3.43 | 40.12 |
Server storage [IO: ▲1.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 18 new options
New WordPress options |
---|
fgts_numofslide_tablet |
fgts_numofslide_mobile |
widget_theysaidso_widget |
fgts_numof_smartspeed |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
fgts_loop_set |
theysaidso_admin_options |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by FG Testimonials
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲83 | 14.43 ▼0.00 | 4.00 ▲2.28 | 76.78 ▲33.81 |
Dashboard /wp-admin | 2,235 ▲58 | 5.62 ▲0.06 | 98.25 ▲2.05 | 43.38 ▼4.97 |
Posts /wp-admin/edit.php | 2,137 ▲37 | 2.01 ▼0.02 | 35.81 ▲2.21 | 35.81 ▼1.16 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 20.97 ▼2.16 | 657.98 ▲23.80 | 68.50 ▲16.88 |
Media Library /wp-admin/upload.php | 1,440 ▲37 | 4.20 ▲0.03 | 110.29 ▲4.61 | 46.48 ▼1.34 |
Add New /wp-admin/post-new.php?post_type=fgts_post_type | 2,348 | 7.69 | 174.71 | 68.67 |
Settings /wp-admin/edit.php?post_type=fgts_post_type&page=fgts_testimonial_setting_page | 953 | 2.04 | 25.62 | 27.51 |
Categories /wp-admin/edit-tags.php?taxonomy=fgts-category&post_type=fgts_post_type | 1,308 | 2.12 | 25.87 | 30.51 |
All /wp-admin/edit.php?post_type=fgts_post_type | 1,118 | 1.98 | 30.25 | 31.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 18 options in the database
- widget_recent-posts
- widget_recent-comments
- fgts_designation_chkbx
- fgts_autoplayhover
- widget_theysaidso_widget
- fgts_img_chkbx
- theysaidso_admin_options
- fgts_control_dots
- fgts_loop_set
- fgts_numof_smartspeed
- ...
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fg-testimonials/include/fg-setting/fg-settings.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fg-testimonials/include/fg-testimonial-meta.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/fg-testimonials/fg-testimonial.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/fg-testimonials/include/fg-testimonial-shortcode.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
7 plugin tags: fg testimonials, testimonial slider, carousel client, client carousel, testimonials...
fg-testimonials/fg-testimonial.php 92% from 13 tests
The main PHP file in "FG Testimonials" ver. 1.5.7 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fg-testimonials.php" instead of "fg-testimonial.php")
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
Success! There were no dangerous files found in this plugin3,280 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
PHP | 5 | 120 | 42 | 431 |
CSS | 5 | 6 | 14 | 150 |
JavaScript | 2 | 4 | 10 | 28 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 34 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/right-arrow.png | 4.23KB | 2.05KB | ▼ 51.56% |
images/default.png | 8.92KB | 7.13KB | ▼ 20.08% |
images/left-arrow.png | 4.17KB | 2.10KB | ▼ 49.68% |