94% wn-webpage-slider-for-elementor

Code Review | WN Webpage Slider for Elementor

WordPress plugin WN Webpage Slider for Elementor scored 94% from 53 tests.

About plugin

  • Plugin page: wn-webpage-slider...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.5.1
  • WordPress version: 5.8.1
  • First release: Aug 15, 2020
  • Latest release: Sep 19, 2020
  • Number of updates: 7
  • Update frequency: every 5.0 days
  • Top authors: yaidier (100%)

Code review

53 tests

User reviews

4 reviews

Install metrics

200+ active / 1,344 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼257.48ms] Passed 4 tests

This is a short check of server-side resources used by WN Webpage Slider for Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1240.49 ▲19.89
Dashboard /wp-admin3.07 ▲0.0150.47 ▲3.35
Posts /wp-admin/edit.php3.12 ▲0.0145.70 ▲2.93
Add New Post /wp-admin/post-new.php5.43 ▲0.0093.48 ▼1,027.38
Media Library /wp-admin/upload.php3.01 ▲0.0032.73 ▼8.83

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WN Webpage Slider for Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,673 ▲9215.90 ▲0.398.19 ▼0.0851.25 ▲5.14
Dashboard /wp-admin2,933 ▲805.87 ▲0.06133.67 ▲2.20100.19 ▲0.35
Posts /wp-admin/edit.php2,706 ▼02.69 ▼0.1362.76 ▼5.7794.39 ▲6.11
Add New Post /wp-admin/post-new.php1,481 ▼018.52 ▲0.31356.05 ▼3.7098.20 ▼8.81
Media Library /wp-admin/upload.php1,787 ▲124.99 ▼0.04148.44 ▼1.25114.64 ▼5.91

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wn-webpage-slider-for-elementor/assets/elementor-widget/my-widgets.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/wn-webpage-slider-for-elementor/assets/elementor-widget/wn_webpge_slider_elementor.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed: The official readme.txt might help

wn-webpage-slider-for-elementor/wn-webpage-slider-for-elementor.php 92% from 13 tests

Analyzing the main PHP file in "WN Webpage Slider for Elementor" version 1.0
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 378 characters long)

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 plugin551 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP417740536
CSS10012
SVG1003

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.04
Average class complexity1.33
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.07
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods1173.33%
▷ Protected methods426.67%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/top-bar.png0.92KB0.77KB▼ 16.37%