73% arashtad-testimonials-slider

Code Review | Arashtad Testimonials Slider Plugin

WordPress plugin Arashtad Testimonials Slider Plugin scored 73% from 54 tests.

About plugin

  • Plugin page: arashtad-testimon...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8.2
  • WordPress version: 5.8.1
  • First release: Sep 29, 2017
  • Latest release: Sep 29, 2017
  • Number of updates: 8
  • Update frequency: every 35.1 days
  • Top authors: arashtad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 569 total downloads

Benchmarks

Plugin footprint 65% 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: ▼1.64MB] [CPU: ▼182.75ms] Passed 4 tests

Analyzing server-side resources used by Arashtad Testimonials Slider Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.99 ▼0.738.80 ▼12.42
Dashboard /wp-admin2.01 ▼1.0510.10 ▼34.04
Posts /wp-admin/edit.php2.01 ▼1.108.92 ▼34.33
Add New Post /wp-admin/post-new.php2.01 ▼3.4310.37 ▼638.17
Media Library /wp-admin/upload.php2.01 ▼0.9910.69 ▼24.44

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 1 new option
New WordPress options
widget_artestimonials_widget

Browser metrics Passed 4 tests

Arashtad Testimonials Slider Plugin: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,811 ▲21516.49 ▲0.4912.47 ▲1.5544.35 ▼1.12
Dashboard /wp-admin2,973 ▲425.92 ▼0.13136.10 ▼2.86109.10 ▼6.79
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0069.50 ▼2.5994.71 ▲4.02
Add New Post /wp-admin/post-new.php1,682 ▲18418.85 ▲0.03370.01 ▼12.61113.09 ▲8.83
Media Library /wp-admin/upload.php1,807 ▼35.02 ▼0.01147.36 ▲1.26119.01 ▲5.08

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/arashtad-testimonials-slider/arashtad-testimonials-slider.php+57
    Undefined variable: text_domain
  • Zombie WordPress options detected upon uninstall: 1 option
    • widget_artestimonials_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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/arashtad-testimonials-slider/arashtad-testimonials-slider.php

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 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (13 tag instead of maximum 10)
The official readme.txt might help

arashtad-testimonials-slider/arashtad-testimonials-slider.php 92% from 13 tests

The principal PHP file in "Arashtad Testimonials Slider Plugin" v. 1.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 203 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin2,532 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP1233441,640
PO File2311460613
CSS2819223
JavaScript1112155
HTML1001

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 212)
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity425.00
▷ Minimum class complexity425.00
▷ Maximum class complexity425.00
Average method complexity107.00
▷ Minimum method complexity2.00
▷ Maximum method complexity212.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin