84% fds-slider

Code Review | it-progress slider

WordPress plugin it-progress slider scored84%from 54 tests.

About plugin

  • Plugin page: fds-slider
  • Plugin version: 0.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.8.2
  • WordPress version: 6.3.1
  • First release: Aug 8, 2017
  • Latest release: Sep 21, 2017
  • Number of updates: 14
  • Update frequency: every 4.4 days
  • Top authors: Dimon66620 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /657 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.01MB] [CPU: ▼7.61ms] Passed 4 tests

An overview of server-side resources used by it-progress slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.75 ▼1.13
Dashboard /wp-admin3.31 ▲0.0146.32 ▼0.47
Posts /wp-admin/edit.php3.36 ▲0.0145.52 ▼2.94
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.72 ▼19.48
Media Library /wp-admin/upload.php3.23 ▲0.0137.92 ▼6.90

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options
itppsc_base_img
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for it-progress slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲7413.34 ▼1.022.32 ▲0.3645.50 ▲3.91
Dashboard /wp-admin2,225 ▲344.82 ▼0.27101.23 ▲0.3143.20 ▲0.91
Posts /wp-admin/edit.php2,105 ▲132.16 ▲0.1635.54 ▼5.8833.27 ▼2.02
Add New Post /wp-admin/post-new.php1,550 ▼11823.48 ▲1.68666.74 ▼5.6954.08 ▲6.79
Media Library /wp-admin/upload.php1,407 ▲224.21 ▼0.03109.41 ▲11.2945.38 ▲1.73

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
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/fds-slider/admin/includes/FDS_List_Table.php on line 4
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/fds-slider/admin/includes/FDS_List_Table.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fds-slider/admin/admin.php:99
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/fds-slider/admin/includes/FDS_List_Table.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/fds-slider/it-progress_slider.php:33

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 93% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (screenshot-1.jpg), #2 (screenshot-2.jpg)
The official readme.txt is a good inspiration

fds-slider/it-progress_slider.php 92% from 13 tests

The principal PHP file in "it-progress slider" v. 0.2.2 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("fds-slider.php" instead of "it-progress_slider.php")

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 plugin695 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP75946423
CSS31413118
PO File23434111
JavaScript11043

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity4.33
▷ Minimum class complexity3.00
▷ Maximum class complexity5.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods1493.33%
▷ Protected methods16.67%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.07MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/next_2.png15.96KB0.21KB▼ 98.69%
assets/img/prev.png18.71KB0.84KB▼ 95.53%
assets/img/next.png18.70KB0.86KB▼ 95.40%
assets/img/prev_2.png16.08KB0.21KB▼ 98.70%