83% appbuff-testimonial-for-elementor

Code Review | Testimonial for Elementor

WordPress plugin Testimonial for Elementor scored83%from 54 tests.

About plugin

  • Plugin page: appbuff-testimoni...
  • Plugin version: 0.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Dec 23, 2020
  • Latest release: Apr 12, 2023
  • Number of updates: 5
  • Update frequency: every 168.2 days
  • Top authors: appbuff (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,093 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.81ms] Passed 4 tests

This is a short check of server-side resources used by Testimonial for Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0448.22 ▲4.64
Dashboard /wp-admin3.34 ▼0.0149.26 ▼13.68
Posts /wp-admin/edit.php3.39 ▲0.0348.16 ▼1.02
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.09 ▼19.57
Media Library /wp-admin/upload.php3.26 ▲0.0339.31 ▲3.02

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Testimonial for Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲15113.40 ▼0.959.09 ▲7.3239.58 ▼3.23
Dashboard /wp-admin2,203 ▲235.55 ▼0.1386.20 ▼3.2542.31 ▼0.81
Posts /wp-admin/edit.php2,108 ▲82.10 ▲0.1438.68 ▲2.1135.89 ▼0.38
Add New Post /wp-admin/post-new.php1,539 ▲1323.15 ▼0.16680.91 ▼3.0461.20 ▲1.46
Media Library /wp-admin/upload.php1,411 ▲174.20 ▲0.0596.33 ▼1.7544.79 ▼0.86

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 were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/appbuff-testimonial-for-elementor/index.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Icons_Manager' not found in wp-content/plugins/appbuff-testimonial-for-elementor/include/class.appbuff-icon-manager.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 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
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Create Testimonial), #2 (Control Testimonial), #3 (Style Testimonial), #4 (Add Testimonial)
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

appbuff-testimonial-for-elementor/appbuff-testimonial-for-elementor.php 85% from 13 tests

The main file in "Testimonial for Elementor" v. 0.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
No dangerous file extensions were detected2,318 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP5180611,633
CSS21013594
JavaScript2101591

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity23.67
▷ Minimum class complexity8.00
▷ Maximum class complexity52.00
Average method complexity4.09
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods22
▷ Static methods418.18%
▷ Public methods1881.82%
▷ Protected methods29.09%
▷ Private methods29.09%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants777.78%
▷ Class constants222.22%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected