74% recent-posts-flexslider

Code Review | Recent Posts FlexSlider

WordPress plugin Recent Posts FlexSlider scored74%from 54 tests.

About plugin

  • Plugin page: recent-posts-flex...
  • Plugin version: 2.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.8.0
  • WordPress version: 6.3.1
  • First release: Apr 1, 2013
  • Latest release: Jul 11, 2021
  • Number of updates: 43
  • Update frequency: every 70.3 days
  • Top authors: davidjlaietta (55.81%)wolfpaw (46.51%)

Code review

54 tests

User reviews

18 reviews

Install metrics

1,000+ active /70,656 total downloads

Benchmarks

Plugin footprint 65% 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: ▼6.27ms] Passed 4 tests

Analyzing server-side resources used by Recent Posts FlexSlider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0143.04 ▲3.60
Dashboard /wp-admin3.32 ▲0.0247.87 ▼3.67
Posts /wp-admin/edit.php3.37 ▲0.0146.08 ▼5.02
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.91 ▼15.03
Media Library /wp-admin/upload.php3.24 ▲0.0133.69 ▼1.35

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts-flexslider
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Recent Posts FlexSlider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.74 ▲0.471.72 ▲0.1544.62 ▲1.34
Dashboard /wp-admin2,198 ▲185.62 ▼0.0682.83 ▼7.4737.68 ▼4.86
Posts /wp-admin/edit.php2,097 ▼32.11 ▲0.1233.42 ▼2.3533.86 ▼8.31
Add New Post /wp-admin/post-new.php1,526 ▼023.69 ▲0.58690.95 ▲7.2456.44 ▲4.27
Media Library /wp-admin/upload.php1,400 ▼34.15 ▼0.1199.13 ▼1.6443.58 ▼3.29

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'Recent_Posts_FlexSlider' does not have a method 'deactivate'
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts-flexslider
    • widget_recent-comments
    • widget_recent-posts

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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 take a closer look at the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/recent-posts-flexslider/views/display.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/recent-posts-flexslider/views/admin.php:37
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/recent-posts-flexslider/recent-posts-flexslider.php:30

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 96% 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
2 plugin tags: slider, responsive

recent-posts-flexslider/recent-posts-flexslider.php 92% from 13 tests

Analyzing the main PHP file in "Recent Posts FlexSlider" version 2.4.1
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 206 characters long)

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
Good job! No executable or dangerous file extensions detected687 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP39688389
CSS1222278
SVG10019
JavaScript1041

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.18
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin