10% easy-slider-revolution

Code Review | Easy Slider Revolution

WordPress plugin Easy Slider Revolution scored10%from 54 tests.

About plugin

  • Plugin page: easy-slider-revol...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.2
  • WordPress version: 6.3.1
  • First release: Jan 4, 2023
  • Latest release: Aug 14, 2023
  • Number of updates: 25
  • Update frequency: every 8.9 days
  • Top authors: tridenttechnolabs (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

2,000+ active /14,493 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin did not install without errors
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

Server metrics [RAM: ▲0.62MB] [CPU: ▼1.04ms] Passed 4 tests

Server-side resources used by Easy Slider Revolution
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.00 ▲0.5443.66 ▼3.56
Dashboard /wp-admin3.96 ▲0.6649.24 ▼0.89
Posts /wp-admin/edit.php3.99 ▲0.6348.95 ▲1.91
Add New Post /wp-admin/post-new.php6.55 ▲0.6682.99 ▼1.60
Media Library /wp-admin/upload.php3.89 ▲0.6639.62 ▲7.55
Easy Slider /wp-admin/edit.php?post_type=es_slider3.9346.49
Re-Order Slides /wp-admin/edit.php?post_type=sa_slider&page=reorderslides3.5428.71
Add New Slider /wp-admin/post-new.php?post_type=es_slider4.0354.18

Server storage [IO: ▲0.84MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Slider Revolution
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,860 ▲11413.20 ▼1.381.87 ▼0.0041.16 ▼1.25
Dashboard /wp-admin2,241 ▲534.85 ▼0.97105.46 ▼2.9338.28 ▼6.26
Posts /wp-admin/edit.php2,121 ▲322.03 ▲0.0434.31 ▼3.2634.82 ▼0.39
Add New Post /wp-admin/post-new.php1,559 ▲1723.67 ▲5.21652.95 ▲4.0753.44 ▼9.26
Media Library /wp-admin/upload.php1,423 ▲354.24 ▲0.04103.62 ▲5.0442.33 ▲0.06
Easy Slider /wp-admin/edit.php?post_type=es_slider1,8323.7257.8928.96
Re-Order Slides /wp-admin/edit.php?post_type=sa_slider&page=reorderslides280.440.083.76
Add New Slider /wp-admin/post-new.php?post_type=es_slider5,66011.62259.5577.99

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/easy-slider-revolution/front/easy-slider-frontend.php:13

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/edit.php?post_type=sa_slider&page=reorderslides
    • > Network (severe)
    wp-admin/edit.php?post_type=sa_slider&page=reorderslides - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
8 plugin tags: slider revolution, content with button slider, customized button, image slider, easy slider...

easy-slider-revolution/easy_slider_revolution.php 92% from 13 tests

"Easy Slider Revolution" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("easy-slider-revolution.php" instead of "easy_slider_revolution.php")

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
There were no executable files found in this plugin12,092 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
CSS141,1101576,599
JavaScript124354912,800
PHP32573252,639
SVG10054

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
15 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/black_lightbox_video.png1.96KB1.02KB▼ 47.91%
images/lightbox_zoom.png0.97KB1.15KB0.00%
images/icon_copy.png0.30KB0.25KB▼ 16.08%
images/Trident-logo.png7.77KB3.29KB▼ 57.66%
images/icon_next.png0.25KB0.23KB▼ 8.43%