83% advanced-testimonial-for-wp

Code Review | Advanced Testimonial For WP

WordPress plugin Advanced Testimonial For WP scored83%from 54 tests.

About plugin

  • Plugin page: advanced-testimon...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.7
  • WordPress version: 6.3.1
  • First release: Aug 1, 2016
  • Latest release: Aug 4, 2016
  • Number of updates: 8
  • Update frequency: every 16.3 days
  • Top authors: ithemelandco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,385 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.18MB] [CPU: ▼1.92ms] Passed 4 tests

An overview of server-side resources used by Advanced Testimonial For WP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1744.12 ▲0.31
Dashboard /wp-admin3.52 ▲0.1754.49 ▼7.23
Posts /wp-admin/edit.php3.63 ▲0.2761.48 ▲11.92
Add New Post /wp-admin/post-new.php6.09 ▲0.2092.18 ▼6.19
Media Library /wp-admin/upload.php3.41 ▲0.1843.64 ▲5.43
Setting /wp-admin/edit.php?post_type=itt_testimonial_cp&page=testimonail_setting3.4148.40
Categories /wp-admin/edit-tags.php?taxonomy=itt_testimonial_category&post_type=itt_testimonial_cp3.4341.18
All Testimonials /wp-admin/edit.php?post_type=itt_testimonial_cp3.4846.37
Shortcode Generator /wp-admin/edit.php?post_type=itt_testimonial_cp&page=testimonial_shortcode3.5838.63
Add Testimonial /wp-admin/post-new.php?post_type=itt_testimonial_cp3.5251.53

Server storage [IO: ▲1.29MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 78 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Testimonial For WP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,123 ▲36214.89 ▲0.546.93 ▲5.1343.07 ▲1.25
Dashboard /wp-admin2,420 ▲2496.42 ▲0.76120.97 ▲28.9539.66 ▼5.24
Posts /wp-admin/edit.php2,348 ▲2483.58 ▲1.5752.51 ▲15.0331.37 ▼6.03
Add New Post /wp-admin/post-new.php1,599 ▲7323.34 ▲0.14681.48 ▲13.8338.12 ▼12.52
Media Library /wp-admin/upload.php1,482 ▲884.40 ▲0.1389.78 ▼9.2243.44 ▼1.17
Setting /wp-admin/edit.php?post_type=itt_testimonial_cp&page=testimonail_setting1,2093.4449.4335.20
Categories /wp-admin/edit-tags.php?taxonomy=itt_testimonial_category&post_type=itt_testimonial_cp1,5243.4442.7330.93
All Testimonials /wp-admin/edit.php?post_type=itt_testimonial_cp1,3153.5851.1826.85
Shortcode Generator /wp-admin/edit.php?post_type=itt_testimonial_cp&page=testimonial_shortcode1,8843.2952.9629.51
Add Testimonial /wp-admin/post-new.php?post_type=itt_testimonial_cp1,9893.9370.2635.86

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

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
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/edit.php?post_type=itt_testimonial_cp&page=testimonail_setting
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/advanced-testimonial-for-wp/assets/js/back-end/custom-js.js?ver=1983210252:206:48)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,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,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=itt_testimonial_cp
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function
    • > GET request to /wp-admin/edit-tags.php?taxonomy=itt_testimonial_category&post_type=itt_testimonial_cp
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/advanced-testimonial-for-wp/assets/js/back-end/custom-js.js?ver=478823605:206:48)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,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,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/edit.php?post_type=itt_testimonial_cp
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/advanced-testimonial-for-wp/assets/js/back-end/custom-js.js?ver=1902131056:206:48)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,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,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/edit.php?post_type=itt_testimonial_cp&page=testimonial_shortcode
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/advanced-testimonial-for-wp/assets/js/back-end/custom-js.js?ver=872558642:206:48)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,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,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/post-new.php?post_type=itt_testimonial_cp
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/advanced-testimonial-for-wp/assets/js/back-end/custom-js.js?ver=728878625:206:48)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,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,moxiejs,plupload&ver=6.3.1:2:27292)" undefined

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === advanced-testimonial-for-wp === )
The official readme.txt might help

advanced-testimonial-for-wp/main.php 85% from 13 tests

The primary PHP file in "Advanced Testimonial For WP" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: The principal plugin file should be the same as the plugin slug ("advanced-testimonial-for-wp.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin12,753 lines of code in 51 files:
LanguageFilesBlank linesComment linesLines of code
CSS151,4192355,949
JavaScript114563542,927
PHP155451501,868
PO File26571,0251,378
SVG300422
JSON300108
Markdown2360101

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity9.50
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/star.png2.66KB2.04KB▼ 23.39%
assets/plugins/owlCarousel/owl-carousel/slider-controls.png3.35KB0.64KB▼ 80.77%
assets/images/next.png48.93KB0.25KB▼ 99.48%
assets/images/controls.png2.74KB1.42KB▼ 48.29%
assets/css/back-end/chosen/chosen-sprite@2x.png0.85KB0.83KB▼ 3.10%