89% post-slider-for-elementor

Code Review | Post slider elementor addons

WordPress plugin Post slider elementor addons scored 89% from 54 tests.

About plugin

  • Plugin page: post-slider-for-e...
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8
  • WordPress version: 6.3.1
  • First release: Sep 2, 2020
  • Latest release: Dec 3, 2021
  • Number of updates: 10
  • Update frequency: every 45.7 days
  • Top authors: solverwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active / 2,587 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Post slider elementor addons
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.61 ▼2.14
Dashboard /wp-admin3.34 ▲0.0350.22 ▼2.32
Posts /wp-admin/edit.php3.39 ▲0.0348.47 ▼0.67
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.17 ▼10.61
Media Library /wp-admin/upload.php3.26 ▲0.0334.91 ▲0.01

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Post slider elementor addons
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲19113.63 ▼0.788.31 ▲6.5044.37 ▲0.89
Dashboard /wp-admin2,221 ▲364.84 ▼1.05109.84 ▼10.7640.73 ▼4.34
Posts /wp-admin/edit.php2,109 ▲232.03 ▲0.0040.67 ▲1.3537.48 ▲4.37
Add New Post /wp-admin/post-new.php1,533 ▲1917.87 ▲0.21681.17 ▼4.5456.40 ▼11.26
Media Library /wp-admin/upload.php1,406 ▲214.19 ▲0.08101.13 ▼1.3144.33 ▼0.60

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (/assets/screenshot-1.png), #2 (/assets/screenshot-2.png), #3 (/assets/screenshot-3.png), #4 (/assets/screenshot-4.png), #5 (/assets/screenshot-5.png), #6 (/assets/screenshot-7.png)
The official readme.txt is a good inspiration

post-slider-for-elementor/elementor-post-slider.php 85% from 13 tests

This is the main PHP file of "Post slider elementor addons" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("post-slider-for-elementor.php" instead of "elementor-post-slider.php")
  • 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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin848 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4150157415
JavaScript1503297
CSS1131136

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity7.50
▷ Minimum class complexity6.00
▷ Maximum class complexity9.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods13
▷ Static methods17.69%
▷ Public methods1184.62%
▷ Protected methods215.38%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants770.00%
▷ Class constants330.00%
▷ Public constants3100.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
8 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/image/left.png0.74KB0.47KB▼ 36.23%
assets/css/image/slide_desc.png0.53KB0.43KB▼ 18.53%
assets/css/image/right.png0.75KB0.47KB▼ 37.61%
assets/css/image/play.png0.86KB0.61KB▼ 29.45%
assets/css/image/next.png0.75KB0.47KB▼ 37.61%