83% edd-download-images-slider

Code Review | EDD Download Images Slider

WordPress plugin EDD Download Images Slider scored 83% from 54 tests.

About plugin

  • Plugin page: edd-download-imag...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.9.8
  • WordPress version: 5.9.2
  • First release: Sep 26, 2018
  • Latest release: Sep 30, 2018
  • Number of updates: 18
  • Update frequency: every 0.5 days
  • Top authors: tropicalista (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 881 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼0.22MB] [CPU: ▼314.76ms] Passed 4 tests

This is a short check of server-side resources used by EDD Download Images Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0459.58 ▲3.42
Dashboard /wp-admin3.45 ▲0.0439.60 ▼25.72
Posts /wp-admin/edit.php3.67 ▲0.0344.21 ▼0.23
Add New Post /wp-admin/post-new.php5.99 ▼0.9874.25 ▼1,233.68
Media Library /wp-admin/upload.php3.33 ▲0.0330.59 ▲0.58

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 1 new option
New WordPress options
recovery_mode_email_last_sent

Browser metrics Passed 4 tests

This is an overview of browser requirements for EDD Download Images Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲5114.66 ▼1.045.94 ▼0.963.34 ▲1.34
Dashboard /wp-admin2,895 ▲386.09 ▼0.04114.43 ▼36.01154.25 ▼56.41
Posts /wp-admin/edit.php2,694 ▲33.24 ▲0.0163.90 ▼3.25141.84 ▼4.98
Add New Post /wp-admin/post-new.php45 ▼1,7070.94 ▼20.340.04 ▼427.9847.47 ▼111.74
Media Library /wp-admin/upload.php1,701 ▲35.49 ▼0.03148.41 ▲0.97194.18 ▼18.94

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 1 option
    • recovery_mode_email_last_sent

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edd-download-images-slider/edd-download-slider.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: e-downloads, images slider, download images slider, edd, additional images slider...

edd-download-images-slider/edd-download-slider.php 69% from 13 tests

This is the main PHP file of "EDD Download Images Slider" version 1.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("edd-download-images-slider.php" instead of "edd-download-slider.php")
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin227 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP14564148
PO File2182763
JavaScript231615
CSS10111

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions12
▷ Named functions12100.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
There were not PNG files found in your plugin