79% seo-slider

Code Review | SEO Slider

WordPress plugin SEO Slider scored79%from 54 tests.

About plugin

  • Plugin page: seo-slider
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.5
  • WordPress version: 6.3.1
  • First release: Dec 15, 2017
  • Latest release: Aug 24, 2020
  • Number of updates: 19
  • Update frequency: every 51.7 days
  • Top authors: seothemes (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

3,000+ active /33,633 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼5.16ms] Passed 4 tests

Server-side resources used by SEO Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0638.89 ▼5.91
Dashboard /wp-admin3.47 ▲0.1649.02 ▲0.27
Posts /wp-admin/edit.php3.52 ▲0.1649.10 ▼1.82
Add New Post /wp-admin/post-new.php6.07 ▲0.1888.37 ▼12.87
Media Library /wp-admin/upload.php3.39 ▲0.1637.84 ▼0.04
All Sliders /wp-admin/edit.php?post_type=slide3.4337.86
Add New /wp-admin/post-new.php?post_type=slide3.8058.27

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 107 new files
Database: no new tables, 7 new options
New WordPress options
widget_seo_slider_widget
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for SEO Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,967 ▲20613.90 ▼0.699.49 ▲7.8042.45 ▲1.34
Dashboard /wp-admin2,233 ▲555.61 ▼0.0690.37 ▼13.9937.96 ▼4.01
Posts /wp-admin/edit.php2,140 ▲402.05 ▲0.0438.53 ▼2.3032.85 ▼7.26
Add New Post /wp-admin/post-new.php1,556 ▲2823.29 ▲0.29678.82 ▼6.5965.85 ▲10.95
Media Library /wp-admin/upload.php1,441 ▲414.27 ▼0.04105.68 ▼2.6044.83 ▼3.86
All Sliders /wp-admin/edit.php?post_type=slide1,1111.9635.6530.78
Add New /wp-admin/post-new.php?post_type=slide2,8628.46182.4990.06

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: 7 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_seo_slider_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
  • 43× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_REST_Controller_Boxes' not found in wp-content/plugins/seo-slider/cmb2/includes/rest-api/CMB2_REST_Controller_Fields.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/seo-slider/cmb2/includes/types/CMB2_Type_Text_Date.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_hookup' not found in wp-content/plugins/seo-slider/cmb2/includes/CMB2_Options_Hookup.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/seo-slider/includes/shortcode.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/seo-slider/cmb2/includes/types/CMB2_Type_File.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/seo-slider/cmb2/includes/types/CMB2_Type_Select_Timezone.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/seo-slider/cmb2/includes/types/CMB2_Type_Taxonomy_Radio.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/seo-slider/includes/widget.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/seo-slider/cmb2/includes/CMB2_Field.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Radio' not found in wp-content/plugins/seo-slider/cmb2/includes/types/CMB2_Type_Multicheck.php:13

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=slide
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.defaultLabel is deprecated since version 5.5.0! Use wp.i18n instead.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=slide
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.pick is deprecated since version 5.5.0! Use wp.i18n instead.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=slide
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.clear is deprecated since version 5.5.0! Use wp.i18n instead.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=slide
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.clearAriaLabel is deprecated since version 5.5.0! Use wp.i18n instead.

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: slider

seo-slider/seo-slider.php Passed 13 tests

The principal PHP file in "SEO Slider" v. 1.1.0 is loaded by WordPress automatically on each request
99 characters long description:
A simple and lightweight, search engined optimized, accessible and mobile responsive slider plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected15,476 lines of code in 85 files:
LanguageFilesBlank linesComment linesLines of code
PHP612,0405,7196,823
CSS141,1771,1685,214
JavaScript81,1504573,391
Markdown19040
SVG1018

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity18.10
▷ Minimum class complexity1.00
▷ Maximum class complexity182.00
Average method complexity3.23
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes67
▷ Abstract classes811.94%
▷ Concrete classes5988.06%
▷ Final classes00.00%
Methods516
▷ Static methods8416.28%
▷ Public methods42582.36%
▷ Protected methods8817.05%
▷ Private methods30.58%
Functions36
▷ Named functions3597.22%
▷ Anonymous functions12.78%
Constants9
▷ Global constants333.33%
▷ Class constants666.67%
▷ Public constants6100.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
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
cmb2/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
cmb2/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
cmb2/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
cmb2/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%