83% easy-client-testimonial

Code Review | Easy Client Testimonial

WordPress plugin Easy Client Testimonial scored83%from 54 tests.

About plugin

  • Plugin page: easy-client-testi...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8
  • WordPress version: 6.3.1
  • First release: Oct 26, 2021
  • Latest release: Oct 27, 2021
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: mmh4560 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /275 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲1.63MB] [CPU: ▲8.49ms] Passed 4 tests

An overview of server-side resources used by Easy Client Testimonial
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.88 ▲1.4251.85 ▲4.84
Dashboard /wp-admin5.01 ▲1.7160.36 ▲7.59
Posts /wp-admin/edit.php5.04 ▲1.6864.86 ▲13.40
Add New Post /wp-admin/post-new.php7.61 ▲1.72107.40 ▲8.12
Media Library /wp-admin/upload.php4.94 ▲1.7157.37 ▲19.87
Add New /wp-admin/post-new.php?post_type=nice_testi_all_post5.4065.79
All Testimonial /wp-admin/edit.php?post_type=nice_testi_all_post4.9852.16
Settings /wp-admin/edit.php?post_type=nice_testi_all_post&page=nice_testi_options7.1052.64

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 157 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
_nice_testi_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Client Testimonial
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,969 ▲20813.88 ▼0.768.19 ▲6.4038.49 ▼8.15
Dashboard /wp-admin2,249 ▲725.68 ▲0.1091.43 ▼0.8738.17 ▼7.42
Posts /wp-admin/edit.php2,151 ▲482.05 ▲0.0441.80 ▲2.4237.14 ▼0.05
Add New Post /wp-admin/post-new.php1,562 ▲3422.92 ▼0.27695.11 ▲15.7656.83 ▼2.34
Media Library /wp-admin/upload.php1,448 ▲514.33 ▲0.11100.14 ▼2.5245.28 ▲2.28
Add New /wp-admin/post-new.php?post_type=nice_testi_all_post2,3577.83179.7369.31
All Testimonial /wp-admin/edit.php?post_type=nice_testi_all_post1,1151.9837.8631.45
Settings /wp-admin/edit.php?post_type=nice_testi_all_post&page=nice_testi_options1,4433.8857.9444.62

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_recent-posts
    • _nice_testi_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 40× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/easy-client-testimonial/assets/cmb2/includes/types/CMB2_Type_Oembed.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/easy-client-testimonial/assets/cmb2/includes/types/CMB2_Type_Radio.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/easy-client-testimonial/assets/cmb2/includes/types/CMB2_Type_Textarea.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/easy-client-testimonial/assets/cmb2/includes/types/CMB2_Type_Picker_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/easy-client-testimonial/assets/cmb2/includes/types/CMB2_Type_File.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/easy-client-testimonial/assets/cmb2/includes/types/CMB2_Type_Taxonomy_Select.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-client-testimonial/assets/cmb2/includes/helper-functions.php:131
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/easy-client-testimonial/assets/cmb2/includes/types/CMB2_Type_Text_Date.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/easy-client-testimonial/assets/cmb2/includes/CMB2_Field.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/easy-client-testimonial/assets/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention: The official readme.txt is a good inspiration

easy-client-testimonial/testimonial.php 69% from 13 tests

"Easy Client Testimonial" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("easy-client-testimonial.php" instead of "testimonial.php")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Requires PHP: Required version does not match the one declared in readme.txt ("7.0.0" instead of "7.2")
  • Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "5.2")

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
There were no executable files found in this plugin13,915 lines of code in 136 files:
LanguageFilesBlank linesComment linesLines of code
PHP1163,7726,86212,280
JavaScript113625971,487
CSS9210148

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity20.06
▷ Minimum class complexity1.00
▷ Maximum class complexity188.00
Average method complexity4.19
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes119
▷ Abstract classes119.24%
▷ Concrete classes10890.76%
▷ Final classes00.00%
Methods715
▷ Static methods11916.64%
▷ Public methods62387.13%
▷ Protected methods8912.45%
▷ Private methods30.42%
Functions45
▷ Named functions45100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants333.33%
▷ Class constants666.67%
▷ Public constants6100.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
14 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/cmb2/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
assets/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%
assets/cmb2/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
assets/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
assets/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%