10% simple-seo-slideshow

Code Review | Simple SEO Slideshow

WordPress plugin Simple SEO Slideshow scored10%from 54 tests.

About plugin

  • Plugin page: simple-seo-slideshow
  • Plugin version: 1.2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.6
  • WordPress version: 6.3.1
  • First release: Aug 15, 2012
  • Latest release: Aug 16, 2013
  • Number of updates: 37
  • Update frequency: every 9.9 days
  • Top authors: spyrosvl (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active /7,746 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/simple-seo-slideshow/simpleslideshow.php+421
    Function create_function() is deprecated

Server metrics [RAM: ▼1.97MB] [CPU: ▼55.62ms] Passed 4 tests

An overview of server-side resources used by Simple SEO Slideshow
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.443.88 ▼47.14
Dashboard /wp-admin2.05 ▼1.305.46 ▼53.18
Posts /wp-admin/edit.php2.05 ▼1.314.97 ▼37.43
Add New Post /wp-admin/post-new.php2.05 ▼3.844.90 ▼84.71
Media Library /wp-admin/upload.php2.05 ▼1.185.69 ▼30.78

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
widget_simpleslideshowwidget
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Simple SEO Slideshow
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲17013.66 ▼0.717.23 ▲4.1540.20 ▼21.98
Dashboard /wp-admin2,210 ▲224.88 ▲0.02114.09 ▲0.2043.43 ▼0.44
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0037.52 ▲1.6334.85 ▼0.58
Add New Post /wp-admin/post-new.php1,518 ▼122.94 ▼0.19675.01 ▲35.0857.44 ▲7.38
Media Library /wp-admin/upload.php1,395 ▲104.24 ▲0.0999.53 ▼2.2641.50 ▼1.97

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/simple-seo-slideshow/simpleslideshow.php+421
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_simpleslideshowwidget
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-seo-slideshow/simpleslideshow.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (Widget admin screenshot.), #2 (tinyMCE editor plugin for easily inserting slideshow shortcode.), #3 (How it may look like in the frontend.)
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === simple-seo-slideshow === )
You can look at the official readme.txt

simple-seo-slideshow/simpleslideshow.php 92% from 13 tests

The main file in "Simple SEO Slideshow" v. 1.2.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("simple-seo-slideshow.php" instead of "simpleslideshow.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected677 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP17124329
JavaScript3398190
HTML120127
CSS15031

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity55.00
▷ Minimum class complexity55.00
▷ Maximum class complexity55.00
Average method complexity11.80
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/arrows.png2.71KB1.71KB▼ 36.87%
screenshot-1.png7.15KB6.27KB▼ 12.32%
screenshot-2.png7.56KB6.58KB▼ 12.95%
js/mceicon.png1.08KB0.16KB▼ 85.46%
images/slidedot.png0.97KB0.15KB▼ 84.78%