84% ivycat-ajax-testimonials

Code Review | IvyCat AJAX Testimonials

WordPress plugin IvyCat AJAX Testimonials scored84%from 54 tests.

About plugin

  • Plugin page: ivycat-ajax-testi...
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Jun 23, 2012
  • Latest release: Jul 8, 2015
  • Number of updates: 37
  • Update frequency: every 30.0 days
  • Top authors: sewmyheadon (48.65%)ivycat (43.24%)dgilfoy (13.51%)

Code review

54 tests

User reviews

16 reviews

Install metrics

600+ active /19,011 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.17MB] [CPU: ▼3.93ms] Passed 4 tests

Server-side resources used by IvyCat AJAX Testimonials
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1948.04 ▲5.50
Dashboard /wp-admin3.47 ▲0.1752.28 ▼2.14
Posts /wp-admin/edit.php3.58 ▲0.2350.20 ▼3.20
Add New Post /wp-admin/post-new.php6.05 ▲0.16100.11 ▼8.75
Media Library /wp-admin/upload.php3.39 ▲0.1637.24 ▼1.63
Testimonial Groups /wp-admin/edit-tags.php?taxonomy=testimonial-group&post_type=testimonials3.3936.26
All Testimonials /wp-admin/edit.php?post_type=testimonials3.4349.48
Add New /wp-admin/post-new.php?post_type=testimonials3.5250.73

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_ivycattestimonialswidget
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for IvyCat AJAX Testimonials
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲6313.23 ▼1.332.15 ▲0.1442.78 ▼4.56
Dashboard /wp-admin2,234 ▲435.86 ▲0.82105.99 ▲0.0845.23 ▲2.17
Posts /wp-admin/edit.php2,120 ▲282.04 ▲0.0233.75 ▼2.4335.91 ▲3.57
Add New Post /wp-admin/post-new.php1,568 ▲4918.17 ▼4.91613.92 ▼81.8058.81 ▲1.27
Media Library /wp-admin/upload.php1,422 ▲344.20 ▼0.1298.83 ▼16.2444.04 ▼7.65
Testimonial Groups /wp-admin/edit-tags.php?taxonomy=testimonial-group&post_type=testimonials1,2962.1431.1829.44
All Testimonials /wp-admin/edit.php?post_type=testimonials1,0891.9432.1433.81
Add New /wp-admin/post-new.php?post_type=testimonials2,3777.75179.7663.02

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
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_ivycattestimonialswidget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following items
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_excerpt() in wp-content/plugins/ivycat-ajax-testimonials/testimonials-loop-template.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/ivycat-ajax-testimonials/lib/IvyCatTestimonialsPosts.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ivycat-ajax-testimonials/lib/IvyCatTestimonialsWidget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ivycat-ajax-testimonials/ivycat-ajax-testimonials.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: ajax, referral, recommendation, testimony, widget...

ivycat-ajax-testimonials/ivycat-ajax-testimonials.php Passed 13 tests

The main PHP script in "IvyCat AJAX Testimonials" version 1.5.1 is automatically included on every request by WordPress
45 characters long description:
Simply add dynamic testimonials to your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin619 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP47165536
JavaScript112383

PHP code Passed 2 tests

A brief analysis 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 code0.29
Average class complexity22.67
▷ Minimum class complexity19.00
▷ Maximum class complexity27.00
Average method complexity3.95
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods1881.82%
▷ Protected methods418.18%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin