83% featured-articles-lite

Code Review | FA Lite - WP responsive slider plugin

WordPress plugin FA Lite - WP responsive slider plugin scored 83% from 54 tests.

About plugin

  • Plugin page: featured-articles...
  • Plugin version: 3.1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 25, 2010
  • Latest release: Sep 29, 2023
  • Number of updates: 226
  • Update frequency: every 20.9 days
  • Top authors: constantin.boiangiu (99.12%)codeflavors (1.33%)

Code review

54 tests

User reviews

12 reviews

Install metrics

1,000+ active / 167,217 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.64MB] [CPU: ▲4.91ms] Passed 4 tests

Analyzing server-side resources used by FA Lite - WP responsive slider plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.3339.92 ▲0.61
Dashboard /wp-admin4.05 ▲0.7552.40 ▲6.74
Posts /wp-admin/edit.php4.10 ▲0.7553.56 ▲7.46
Add New Post /wp-admin/post-new.php6.72 ▲0.84103.98 ▲6.56
Media Library /wp-admin/upload.php3.97 ▲0.7441.00 ▲5.71
Custom slides PRO /wp-admin/edit.php?post_type=fa_slider&page=custom_slides_list3.8735.02
Settings /wp-admin/edit.php?post_type=fa_slider&page=fapro_settings3.9335.27
Dynamic areas PRO /wp-admin/edit.php?post_type=fa_slider&page=fapro_hooks3.8738.30
Add new /wp-admin/post-new.php?post_type=fa_slider4.3850.78
Themes PRO /wp-admin/edit.php?post_type=fa_slider&page=fapro_themes3.8734.82
Sliders /wp-admin/edit.php?post_type=fa_slider4.0139.54
Slide groups PRO /wp-admin/edit.php?post_type=fa_slider&page=custom_slide_groups3.8733.62
/wp-admin/admin.php?page=fa-mixed-content-modal4.1243.14
/wp-admin/admin.php?page=fa-tax-modal3.9742.36
New slide PRO /wp-admin/edit.php?post_type=fa_slider&page=custom_slide_add3.8732.65

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 109 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
category_children
widget_fa-slideshow-widget
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
fa_plugin_options
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for FA Lite - WP responsive slider plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,868 ▲13313.21 ▼1.171.65 ▼0.0640.07 ▼6.12
Dashboard /wp-admin2,274 ▲864.92 ▼0.16104.78 ▼11.6969.85 ▲24.86
Posts /wp-admin/edit.php2,157 ▲711.99 ▼0.0237.87 ▲2.2333.73 ▲0.09
Add New Post /wp-admin/post-new.php6,984 ▲5,44626.58 ▲3.40971.67 ▲325.9084.57 ▲33.29
Media Library /wp-admin/upload.php1,453 ▲714.21 ▲0.0395.45 ▼4.4772.55 ▲29.18
Custom slides PRO /wp-admin/edit.php?post_type=fa_slider&page=custom_slides_list8372.2225.5131.76
Settings /wp-admin/edit.php?post_type=fa_slider&page=fapro_settings1,5102.0241.3648.46
Dynamic areas PRO /wp-admin/edit.php?post_type=fa_slider&page=fapro_hooks8542.0326.0527.09
Add new /wp-admin/post-new.php?post_type=fa_slider3,6723.2672.1894.44
Themes PRO /wp-admin/edit.php?post_type=fa_slider&page=fapro_themes8332.0627.2627.40
Sliders /wp-admin/edit.php?post_type=fa_slider1,1551.9833.3930.34
Slide groups PRO /wp-admin/edit.php?post_type=fa_slider&page=custom_slide_groups8352.0325.3625.41
/wp-admin/admin.php?page=fa-mixed-content-modal1,0382.1925.1423.65
/wp-admin/admin.php?page=fa-tax-modal9272.0825.4421.10
New slide PRO /wp-admin/edit.php?post_type=fa_slider&page=custom_slide_add8512.0223.2624.54

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
  • The uninstall procedure has failed, leaving 9 options in the database
    • can_compress_scripts
    • widget_fa-slideshow-widget
    • fa_plugin_options
    • theysaidso_admin_options
    • category_children
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

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)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 31× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/featured-articles-lite/includes/libs/class-fa-widgets.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function fa_get_path() in wp-content/plugins/featured-articles-lite/includes/admin/libs/class-fa-admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_slider_theme_options() in wp-content/plugins/featured-articles-lite/themes/simple/display.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/featured-articles-lite/index.php:33
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/featured-articles-lite/views/metabox-slider-theme.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/featured-articles-lite/views/metabox-slider-code.php:9
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/featured-articles-lite/views/metabox-slider-theme.php on line 3
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/featured-articles-lite/views/metabox-slider-content.php on line 3
    • > 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/featured-articles-lite/includes/admin/libs/class-fa-taxonomies-list-table.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/featured-articles-lite/views/metabox-slide-settings.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: wordpress slider, responsive slider, wordpress slider plugin, custom post slider

featured-articles-lite/index.php 77% from 13 tests

The main file in "FA Lite - WP responsive slider plugin" v. 3.1.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("featured-articles-lite.php" instead of "index.php")
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin12,207 lines of code in 84 files:
LanguageFilesBlank linesComment linesLines of code
PHP351,1212,3507,566
JavaScript275936413,105
CSS221001281,536

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity41.87
▷ Minimum class complexity6.00
▷ Maximum class complexity137.00
Average method complexity4.76
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods163
▷ Static methods00.00%
▷ Public methods14287.12%
▷ Protected methods00.00%
▷ Private methods2112.88%
Functions128
▷ Named functions128100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
11 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
themes/nivo_slider/images/bar/bullets.png1.25KB1.08KB▼ 13.74%
assets/admin/js/tinymce/fa_slider/ico.png0.71KB0.65KB▼ 8.38%
assets/admin/images/icon.png0.71KB0.65KB▼ 8.38%
themes/nivo_slider/images/default/arrows.png0.80KB0.51KB▼ 36.53%
themes/nivo_slider/images/dark/arrows.png3.02KB0.38KB▼ 87.27%