78% wp-easy-image-slider

Code Review | WP Easy Image Slider

WordPress plugin WP Easy Image Slider scored78%from 54 tests.

About plugin

  • Plugin page: wp-easy-image-slider
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.2
  • WordPress version: 6.3.1
  • First release: Jul 21, 2015
  • Latest release: Jul 21, 2015
  • Number of updates: 9
  • Update frequency: N/A
  • Top authors: Hemant Ahir (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,471 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.06MB] [CPU: ▲0.37ms] Passed 4 tests

An overview of server-side resources used by WP Easy Image Slider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.12 ▲3.41
Dashboard /wp-admin3.36 ▲0.0646.40 ▼3.20
Posts /wp-admin/edit.php3.41 ▲0.0545.54 ▼1.29
Add New Post /wp-admin/post-new.php5.96 ▲0.0895.44 ▲2.57
Media Library /wp-admin/upload.php3.28 ▲0.0536.65 ▲4.88
WP Image Slider /wp-admin/edit.php?post_type=slider3.3235.78
Add New Slider /wp-admin/post-new.php?post_type=slider3.3456.87

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WP Easy Image Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,940 ▲18313.62 ▼0.826.11 ▲3.7442.93 ▼4.32
Dashboard /wp-admin2,230 ▲385.76 ▲0.63100.54 ▼9.3139.63 ▼3.45
Posts /wp-admin/edit.php2,119 ▲301.97 ▼0.0240.31 ▲5.6737.16 ▲1.80
Add New Post /wp-admin/post-new.php1,562 ▲4218.52 ▼4.45600.66 ▼31.2856.24 ▲1.60
Media Library /wp-admin/upload.php1,418 ▲274.21 ▲0.0497.96 ▼4.2245.18 ▼2.06
WP Image Slider /wp-admin/edit.php?post_type=slider1,0971.9329.6930.43
Add New Slider /wp-admin/post-new.php?post_type=slider1,6573.6263.1133.18

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-easy-image-slider/easy_slider.php:17

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/post-new.php?post_type=slider
    • > Network (severe)
    wp-content/plugins/wp-easy-image-slider/hm_script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: image rotators, wp easy image slider, photo slider, image slider

wp-easy-image-slider/easy_slider.php 92% from 13 tests

The main PHP script in "WP Easy Image Slider" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-easy-image-slider.php" instead of "easy_slider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected288 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP15028212
JavaScript310648
CSS14928

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity4.20
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/pagination.png1.36KB0.58KB▼ 57.53%
images/image_uploading.png62.41KB25.33KB▼ 59.41%