89% wp-jds-testimonials

Code Review | WP JDs Testimonials

WordPress plugin WP JDs Testimonials scored89%from 54 tests.

About plugin

  • Plugin page: wp-jds-testimonials
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.0
  • WordPress version: 6.3.1
  • First release: May 24, 2016
  • Latest release: Jan 26, 2019
  • Number of updates: 8
  • Update frequency: every 122.1 days
  • Top authors: JayDeep Nimavat (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /577 total downloads

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.05MB] [CPU: ▲0.39ms] Passed 4 tests

An overview of server-side resources used by WP JDs Testimonials
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0642.89 ▼1.18
Dashboard /wp-admin3.35 ▲0.0548.66 ▼0.14
Posts /wp-admin/edit.php3.41 ▲0.0554.23 ▲3.77
Add New Post /wp-admin/post-new.php5.94 ▲0.05101.48 ▲5.25
Media Library /wp-admin/upload.php3.28 ▲0.0537.20 ▼0.90
Add New /wp-admin/post-new.php?post_type=wpjdstm_testimonials3.3951.43
All Testimonials /wp-admin/edit.php?post_type=wpjdstm_testimonials3.3239.54

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP JDs Testimonials
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲8413.20 ▼1.184.55 ▲2.8038.48 ▼11.46
Dashboard /wp-admin2,236 ▲454.85 ▼0.15110.66 ▲5.7441.39 ▼1.11
Posts /wp-admin/edit.php2,116 ▲271.97 ▼0.0341.83 ▲2.6835.86 ▼0.91
Add New Post /wp-admin/post-new.php1,561 ▲2623.22 ▲0.15675.15 ▼34.7750.88 ▼3.55
Media Library /wp-admin/upload.php1,418 ▲274.25 ▲0.00102.65 ▼1.3954.11 ▲8.68
Add New /wp-admin/post-new.php?post_type=wpjdstm_testimonials2,2647.64173.2765.64
All Testimonials /wp-admin/edit.php?post_type=wpjdstm_testimonials1,0801.9830.4131.22

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: testimonial backend, wordpress testimonials, testimonials, wordpress testimonial plugin, testimonial

wp-jds-testimonials/wp-jdstm-testimonials.php 69% from 13 tests

Analyzing the main PHP file in "WP JDs Testimonials" version 1.0.1
You should first fix the following items:
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages")
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-jds-testimonials.php" instead of "wp-jdstm-testimonials.php")
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected183 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP551151183

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin