84% ultimate-testimonials

Code Review | Ultimate Testimonials

WordPress plugin Ultimate Testimonials scored 84% from 54 tests.

About plugin

  • Plugin page: ultimate-testimon...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.2
  • WordPress version: 6.3.1
  • First release: Feb 10, 2017
  • Latest release: Feb 21, 2017
  • Number of updates: 16
  • Update frequency: every 7.7 days
  • Top authors: dgwyer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 941 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼1.80ms] Passed 4 tests

Analyzing server-side resources used by Ultimate Testimonials
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0941.61 ▼1.94
Dashboard /wp-admin3.39 ▲0.0948.49 ▼0.19
Posts /wp-admin/edit.php3.44 ▲0.0948.95 ▲0.25
Add New Post /wp-admin/post-new.php5.97 ▲0.0985.76 ▼5.33
Media Library /wp-admin/upload.php3.31 ▲0.0935.09 ▲1.61
Add New /wp-admin/post-new.php?post_type=wpgo_testimonial3.4853.95
Settings /wp-admin/edit.php?post_type=wpgo_testimonial&page=wpgo-testimonial-settings-page3.2832.26
Testimonial Groups /wp-admin/edit-tags.php?taxonomy=wpgo_testimonial_group&post_type=wpgo_testimonial3.3133.76
All Testimonials /wp-admin/edit.php?post_type=wpgo_testimonial3.3636.64

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_wpgo_tml_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Ultimate Testimonials
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲10513.41 ▼0.621.62 ▼0.1544.70 ▼6.85
Dashboard /wp-admin2,244 ▲565.85 ▲0.9196.26 ▼12.0537.88 ▲0.78
Posts /wp-admin/edit.php2,123 ▲342.02 ▼0.0235.78 ▼0.1431.16 ▼6.16
Add New Post /wp-admin/post-new.php1,569 ▲3523.13 ▲0.08681.36 ▲10.0052.64 ▼0.40
Media Library /wp-admin/upload.php1,417 ▲264.25 ▲0.0695.25 ▼7.8340.54 ▼7.85
Add New /wp-admin/post-new.php?post_type=wpgo_testimonial2,9257.86179.8473.26
Settings /wp-admin/edit.php?post_type=wpgo_testimonial&page=wpgo-testimonial-settings-page8182.0325.0029.39
Testimonial Groups /wp-admin/edit-tags.php?taxonomy=wpgo_testimonial_group&post_type=wpgo_testimonial1,3302.1426.1728.04
All Testimonials /wp-admin/edit.php?post_type=wpgo_testimonial1,2071.9632.0931.73

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_wpgo_tml_widget
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

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

SRP 50% from 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
Please fix the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/ultimate-testimonials/lib/classes/templates/testimonial-post-templates.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ultimate-testimonials/wpgo-ultimate-testimonials.php:152
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ultimate-testimonials/lib/classes/widgets/widget-tml.php:7

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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
No tags were found

ultimate-testimonials/wpgo-ultimate-testimonials.php 92% from 13 tests

Analyzing the main PHP file in "Ultimate Testimonials" version 0.2
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ultimate-testimonials.php" instead of "wpgo-ultimate-testimonials.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,637 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP94385751,434
CSS45766201
JavaScript17132

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity16.33
▷ Minimum class complexity3.00
▷ Maximum class complexity37.00
Average method complexity2.59
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods87
▷ Static methods1820.69%
▷ Public methods7990.80%
▷ Protected methods00.00%
▷ Private methods89.20%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin