84% dynamic-easy-slider

Code Review | Easy Dynamic Slider

WordPress plugin Easy Dynamic Slider scored84%from 54 tests.

About plugin

  • Plugin page: dynamic-easy-slider
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2+
  • WordPress version: 6.3.1
  • First release: Aug 7, 2017
  • Latest release: Aug 15, 2017
  • Number of updates: 18
  • Update frequency: every 0.5 days
  • Top authors: majadul (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /779 total downloads

Benchmarks

Plugin footprint 83% from 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.05MB] [CPU: ▼7.38ms] Passed 4 tests

This is a short check of server-side resources used by Easy Dynamic Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0538.07 ▼3.69
Dashboard /wp-admin3.36 ▲0.0550.07 ▼9.59
Posts /wp-admin/edit.php3.41 ▲0.0554.80 ▲6.15
Add New Post /wp-admin/post-new.php5.94 ▲0.0587.34 ▼16.03
Media Library /wp-admin/upload.php3.28 ▲0.0537.12 ▼0.20

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

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

Browser metrics Passed 4 tests

Easy Dynamic Slider: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲13913.53 ▼1.2110.81 ▲8.9347.07 ▲1.01
Dashboard /wp-admin2,206 ▲185.79 ▲0.90110.59 ▼3.7745.44 ▲2.92
Posts /wp-admin/edit.php2,098 ▲61.97 ▼0.0956.18 ▲16.4245.97 ▲8.26
Add New Post /wp-admin/post-new.php1,530 ▼223.16 ▲0.29686.00 ▼6.6883.30 ▲26.91
Media Library /wp-admin/upload.php1,385 ▼34.24 ▲0.08102.83 ▼6.6143.43 ▼3.16

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_easy_dynamic_slider
    • widget_recent-comments

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dynamic-easy-slider/slide_widget.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tested up to: Invalid version format
You can look at the official readme.txt

dynamic-easy-slider/slide_widget.php 92% from 13 tests

The main PHP script in "Easy Dynamic Slider" version 0.4 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dynamic-easy-slider.php" instead of "slide_widget.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
Good job! No executable or dangerous file extensions detected1,455 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript127141,102
CSS22619351
PHP2002

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity7.50
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
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
style/controls.png2.19KB0.95KB▼ 56.49%