83% elash-slider

Code Review | Elash Slider

WordPress plugin Elash Slider scored83%from 54 tests.

About plugin

  • Plugin page: elash-slider
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.9
  • WordPress version: 6.3.1
  • First release: Feb 23, 2022
  • Latest release: Feb 26, 2022
  • Number of updates: 6
  • Update frequency: every 1.5 days
  • Top authors: aymanelash (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,472 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼4.56ms] Passed 4 tests

An overview of server-side resources used by Elash Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0835.70 ▼5.07
Dashboard /wp-admin3.40 ▲0.0945.10 ▼1.78
Posts /wp-admin/edit.php3.45 ▲0.0950.91 ▲1.98
Add New Post /wp-admin/post-new.php5.99 ▲0.1185.27 ▼13.36
Media Library /wp-admin/upload.php3.32 ▲0.0933.42 ▲2.55
Elash Slider /wp-admin/edit.php?post_type=slide3.3637.26
Add New /wp-admin/post-new.php?post_type=slide3.3739.24

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Elash Slider
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,979 ▲23314.23 ▼0.165.79 ▲3.8245.24 ▼1.26
Dashboard /wp-admin2,268 ▲866.01 ▲0.1398.50 ▼9.0337.89 ▼1.80
Posts /wp-admin/edit.php2,156 ▲672.31 ▲0.2641.36 ▲6.0235.48 ▲1.02
Add New Post /wp-admin/post-new.php1,564 ▲2423.39 ▼0.01647.00 ▲23.5234.45 ▼16.03
Media Library /wp-admin/upload.php1,447 ▲594.42 ▲0.17100.32 ▲2.5741.70 ▼3.99
Elash Slider /wp-admin/edit.php?post_type=slide1,1142.2432.3027.92
Add New /wp-admin/post-new.php?post_type=slide1,6523.7373.5233.00

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/elash-slider/elashslider.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 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
2 plugin tags: slider, carousel

elash-slider/elashslider.php 77% from 13 tests

The main PHP file in "Elash Slider" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("elash-slider.php" instead of "elashslider.php")
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin516 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS3466292
PHP13924160
Markdown16020
XML20016
JavaScript30015
SVG11013

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.35
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin