10% wp-easy-slider

Code Review | WP-Easy Slider

WordPress plugin WP-Easy Slider scored10%from 54 tests.

About plugin

  • Plugin page: wp-easy-slider
  • Plugin version: 0.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.3.1
  • WordPress version: 6.3.1
  • First release: Jan 3, 2012
  • Latest release: Jan 20, 2012
  • Number of updates: 21
  • Update frequency: every 0.9 days
  • Top authors: jordisalord (95.24%)graficlab (9.52%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /10,088 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/wp-easy-slider/wp-easy-slider.php+17
    Methods with the same name as their class will not be constructors in a future version of PHP; EasySlider has a deprecated constructor

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

Analyzing server-side resources used by WP-Easy Slider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0444.62 ▲4.83
Dashboard /wp-admin3.31 ▲0.0157.93 ▼21.32
Posts /wp-admin/edit.php3.36 ▲0.0157.18 ▼2.99
Add New Post /wp-admin/post-new.php5.89 ▲0.0195.18 ▼14.36
Media Library /wp-admin/upload.php3.23 ▲0.0139.63 ▼5.92

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

WP-Easy Slider: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,889 ▲14313.75 ▼0.847.02 ▲5.2152.70 ▲12.86
Dashboard /wp-admin2,207 ▲194.85 ▼1.01113.27 ▼29.8944.23 ▼4.25
Posts /wp-admin/edit.php2,096 ▲12.05 ▲0.0040.71 ▼15.3337.54 ▼5.93
Add New Post /wp-admin/post-new.php1,532 ▲422.81 ▼0.24646.82 ▼35.2666.40 ▲9.82
Media Library /wp-admin/upload.php1,389 ▲14.24 ▲0.02110.55 ▲6.3848.10 ▼4.17
WP Easy Slider /wp-admin/wp-easy-slider.php260.440.1014.05

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-easy-slider/html/wp-admin-sidebar.php
    • > /wp-content/plugins/wp-easy-slider/html/wp-admin.php
    • > /wp-content/plugins/wp-easy-slider/html/wp-admin-form.php
    • > /wp-content/plugins/wp-easy-slider/html/wp-footer.php
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      constant(): Couldn't find constant WES_URL in wp-content/plugins/wp-easy-slider/html/wp-admin-sidebar.php on line 7
    • > PHP Warning
      constant(): Couldn't find constant WES_URL in wp-content/plugins/wp-easy-slider/html/wp-admin-form.php on line 7
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-easy-slider/wp-easy-slider.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_admin_url() in wp-content/plugins/wp-easy-slider/wp-easy-slider.php:15
    • > PHP Warning
      constant(): Couldn't find constant WES_URL in wp-content/plugins/wp-easy-slider/html/wp-footer.php on line 7
    • > PHP Warning
      constant(): Couldn't find constant WES_URL in wp-content/plugins/wp-easy-slider/html/wp-admin.php on line 9

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/wp-easy-slider.php
    • > Network (severe)
    wp-admin/wp-easy-slider.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (The WP Easy Slider) image required
You can look at the official readme.txt

wp-easy-slider/wp-easy-slider.php Passed 13 tests

The entry point to "WP-Easy Slider" version 0.2.2 is a PHP file that has certain tags in its header comment area
53 characters long description:
An easy slider for WordPress built-in image galleries

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin507 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP54939262
JavaScript14014245

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png5.36KB0.80KB▼ 85.06%