84% genesis-responsive-slider

Code Review | Genesis Responsive Slider

WordPress plugin Genesis Responsive Slider scored84%from 54 tests.

About plugin

  • Plugin page: genesis-responsiv...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-6.3
  • WordPress version: 6.3.1
  • First release: Mar 13, 2012
  • Latest release: Aug 7, 2023
  • Number of updates: 27
  • Update frequency: every 157.6 days
  • Top authors: nathanrice (48.15%)studiopress (37.04%)wpmuguru (18.52%)Nick_theGeek (7.41%)

Code review

54 tests

User reviews

31 reviews

Install metrics

30,000+ active /587,165 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.14MB] [CPU: ▼8.69ms] Passed 4 tests

An overview of server-side resources used by Genesis Responsive Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0735.81 ▼13.17
Dashboard /wp-admin3.48 ▲0.1742.89 ▼9.00
Posts /wp-admin/edit.php3.59 ▲0.2349.44 ▲3.67
Add New Post /wp-admin/post-new.php6.06 ▲0.1779.86 ▼13.70
Media Library /wp-admin/upload.php3.40 ▲0.1734.21 ▲1.11

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Genesis Responsive Slider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.34 ▼1.261.60 ▼0.2939.84 ▼5.52
Dashboard /wp-admin2,206 ▲154.86 ▼1.05108.85 ▲8.1343.20 ▲2.88
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0739.67 ▲1.8934.03 ▲2.96
Add New Post /wp-admin/post-new.php1,533 ▲923.53 ▲0.13666.17 ▲21.3761.84 ▲10.01
Media Library /wp-admin/upload.php1,391 ▼04.28 ▲0.0495.76 ▼0.7242.51 ▼0.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

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

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 fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/genesis-responsive-slider/includes/class-genesis-responsive-slider-widget.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: genesis, slideshow, studiopress, slider, genesiswp...

genesis-responsive-slider/genesis-responsive-slider.php Passed 13 tests

The main file in "Genesis Responsive Slider" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
55 characters long description:
A responsive featured slider for the Genesis Framework.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected2,693 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JSON3001,155
PHP4187192634
JavaScript379105533
CSS13624185
PO File17176165
YAML13019
Markdown1002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity15.33
▷ Minimum class complexity7.00
▷ Maximum class complexity24.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods29
▷ Static methods2482.76%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/bg_direction_nav.png2.19KB1.87KB▼ 14.45%
assets/images/bg_control_nav.png0.48KB0.33KB▼ 32.53%