78% codex-testimonials-addons-for-elementor

Code Review | Codex Testimonials addons for elementor

WordPress plugin Codex Testimonials addons for elementor scored78%from 54 tests.

About plugin

  • Plugin page: codex-testimonial...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: Mar 24, 2022
  • Latest release: Mar 24, 2022
  • Number of updates: 10
  • Update frequency: N/A
  • Top authors: rabiulalam01833 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /233 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.39ms] Passed 4 tests

A check of server-side resources used by Codex Testimonials addons for elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0344.88 ▲2.06
Dashboard /wp-admin3.34 ▲0.0343.82 ▼5.35
Posts /wp-admin/edit.php3.39 ▲0.0346.37 ▼4.15
Add New Post /wp-admin/post-new.php5.92 ▲0.03115.16 ▲12.93
Media Library /wp-admin/upload.php3.26 ▲0.0333.82 ▲1.87

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Codex Testimonials addons for elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲10813.21 ▼1.372.03 ▼0.1339.67 ▼10.77
Dashboard /wp-admin2,224 ▲334.86 ▼0.02110.29 ▲4.8043.49 ▲3.88
Posts /wp-admin/edit.php2,106 ▲172.05 ▲0.0439.66 ▼1.5736.62 ▲0.60
Add New Post /wp-admin/post-new.php1,527 ▼617.70 ▼5.35604.92 ▼22.7358.56 ▲8.52
Media Library /wp-admin/upload.php1,409 ▲244.20 ▲0.0098.27 ▼2.0644.34 ▼0.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 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 0% 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
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/codex-testimonials-addons-for-elementor/widgets/testimonial-slider/slider-style-2.php
    • > /wp-content/plugins/codex-testimonials-addons-for-elementor/widgets/testimonial-slider/slider-style-1.php
  • 26× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/codex-testimonials-addons-for-elementor/widgets/testimonial-grid.php:9
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/codex-testimonials-addons-for-elementor/widgets/testimonial-slider/slider-style-2.php on line 34
    • > PHP Notice
      Undefined variable: slide_nav in wp-content/plugins/codex-testimonials-addons-for-elementor/widgets/testimonial-slider/slider-style-1.php on line 12
    • > PHP Notice
      Undefined variable: slide_autoplay in wp-content/plugins/codex-testimonials-addons-for-elementor/widgets/testimonial-slider/slider-style-1.php on line 8
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/codex-testimonials-addons-for-elementor/widgets/testimonial-slider.php:9
    • > PHP Notice
      Undefined variable: testimonial_slider in wp-content/plugins/codex-testimonials-addons-for-elementor/widgets/testimonial-slider/slider-style-1.php on line 34
    • > PHP Notice
      Undefined variable: item_number in wp-content/plugins/codex-testimonials-addons-for-elementor/widgets/testimonial-slider/slider-style-2.php on line 14
    • > PHP Notice
      Undefined variable: slide_animate_out in wp-content/plugins/codex-testimonials-addons-for-elementor/widgets/testimonial-slider/slider-style-1.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/codex-testimonials-addons-for-elementor/widgets/testimonial-basic/basic-style-3.php:9
    • > PHP Notice
      Undefined variable: item_number in wp-content/plugins/codex-testimonials-addons-for-elementor/widgets/testimonial-slider/slider-style-2.php on line 24

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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention: Please take inspiration from this readme.txt

codex-testimonials-addons-for-elementor/codex-testimonial.php 85% from 13 tests

This is the main PHP file of "Codex Testimonials addons for elementor" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • 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
  • Main file name: The principal plugin file should be the same as the plugin slug ("codex-testimonials-addons-for-elementor.php" instead of "codex-testimonial.php")

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 plugin10,391 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
SVG30129,026
PHP103293171,048
CSS56619245
Markdown131068
JavaScript2154

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity6.33
▷ Minimum class complexity5.00
▷ Maximum class complexity8.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods24
▷ Static methods14.17%
▷ Public methods2083.33%
▷ Protected methods416.67%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin