93% advanced-testimonial-for-wp

Code Review | Advanced Testimonial For WP

WordPress plugin Advanced Testimonial For WP scored 93% 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: 5.9.2
  • 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,176 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼289.82ms] Passed 4 tests

A check 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.57 ▲0.0652.07 ▲1.47
Dashboard /wp-admin3.52 ▲0.1137.52 ▲4.39
Posts /wp-admin/edit.php3.74 ▲0.1041.72 ▲4.45
Add New Post /wp-admin/post-new.php6.95 ▼0.0295.46 ▼1,167.57
Media Library /wp-admin/upload.php3.37 ▲0.0826.90 ▲2.42
Add Testimonial /wp-admin/post-new.php?post_type=itt_testimonial_cp3.7243.89
Shortcode Generator /wp-admin/edit.php?post_type=itt_testimonial_cp&page=testimonial_shortcode3.7828.81
Categories /wp-admin/edit-tags.php?taxonomy=itt_testimonial_category&post_type=itt_testimonial_cp3.4029.64
Setting /wp-admin/edit.php?post_type=itt_testimonial_cp&page=testimonail_setting3.3728.12
All Testimonials /wp-admin/edit.php?post_type=itt_testimonial_cp3.5129.53

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 78 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced Testimonial For WP
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,233 ▲47918.34 ▲2.649.95 ▲4.041.99 ▼0.89
Dashboard /wp-admin3,186 ▲3258.63 ▲2.51145.84 ▲12.01155.44 ▼7.78
Posts /wp-admin/edit.php3,018 ▲3245.01 ▲1.7786.41 ▲21.53140.47 ▼1.65
Add New Post /wp-admin/post-new.php1,741 ▲10216.16 ▼3.07393.19 ▼23.90162.04 ▲19.10
Media Library /wp-admin/upload.php1,805 ▲1075.91 ▲0.39111.99 ▼40.94184.92 ▼9.42
Add Testimonial /wp-admin/post-new.php?post_type=itt_testimonial_cp2,6406.09100.53133.82
Shortcode Generator /wp-admin/edit.php?post_type=itt_testimonial_cp&page=testimonial_shortcode2,3835.0681.27127.40
Categories /wp-admin/edit-tags.php?taxonomy=itt_testimonial_category&post_type=itt_testimonial_cp1,9545.3281.34121.08
Setting /wp-admin/edit.php?post_type=itt_testimonial_cp&page=testimonail_setting1,5955.0373.93142.63
All Testimonials /wp-admin/edit.php?post_type=itt_testimonial_cp1,6985.7078.18115.23

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

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
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

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
    • > 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=5.9.2 1:31592 "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=1397402127:206:48)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.9.2:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.9.2:2:30340)" undefined
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/edit.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=5.9.2 1:31702 Uncaught TypeError: jQuery(...).live is not a function
    • > 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=5.9.2 1:31592 "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=1254152333:206:48)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.9.2:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.9.2:2:30340)" undefined
    • > 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=5.9.2 1:31592 "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=590247656:206:48)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.9.2:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.9.2:2:30340)" undefined
    • > 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=5.9.2 1:31592 "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=935065734:206:48)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.9.2:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.9.2:2:30340)" 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=5.9.2 1:31592 "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=1485981891:206:48)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.9.2:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.9.2:2:30340)" undefined

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === advanced-testimonial-for-wp === )
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
You can look at the official readme.txt

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
Please take the time to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: Even though not officially enforced, the main 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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected12,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

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.11MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/controls.png2.74KB1.42KB▼ 48.29%
assets/css/star.png2.66KB2.04KB▼ 23.39%
assets/images/admin_overlay_bg.png0.19KB0.09KB▼ 50.00%
assets/plugins/owlCarousel/owl-carousel/grabbing.png0.11KB0.14KB0.00%
assets/plugins/scroller/mCSB_buttons.png2.93KB0.99KB▼ 66.18%