72% singsys-responsive-slider

Code Review | Singsys -Responsive Slider

WordPress plugin Singsys -Responsive Slider scored72%from 54 tests.

About plugin

  • Plugin page: singsys-responsiv...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2
  • WordPress version: 6.3.1
  • First release: Jul 27, 2015
  • Latest release: Oct 30, 2015
  • Number of updates: 13
  • Update frequency: every 7.5 days
  • Top authors: Singsys (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10+ active /1,050 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼13.85ms] Passed 4 tests

Server-side resources used by Singsys -Responsive Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0645.49 ▼3.78
Dashboard /wp-admin3.36 ▲0.0259.68 ▼32.95
Posts /wp-admin/edit.php3.48 ▲0.1261.84 ▲3.90
Add New Post /wp-admin/post-new.php5.95 ▲0.0691.40 ▼16.78
Media Library /wp-admin/upload.php3.29 ▲0.0638.09 ▼1.88
Add Slider /wp-admin/admin.php?page=singsys_new_slider3.3436.56
Singsys Slider /wp-admin/admin.php?page=singsys_slider3.2538.26

Server storage [IO: ▲0.67MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
  • There were 2 files (0.00KB) illegally modified outside of "wp-content/plugins/singsys-responsive-slider/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/singsys-responsive-slider/screenshots/Singsys Responsive Slider \342\200\271 Spacious \342\200\224 WordPress 2015-07-24 11-08-37.png"
    • (new file) "wp-content/plugins/singsys-responsive-slider/screenshots/Add Or Update Slider \342\200\271 Spacious \342\200\224 WordPress 2015-07-24 11-09-24.png"
Filesystem: 18 new files
Database: 2 new tables, 7 new options
New tables
wp_singsys_items
wp_singsys_slider
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
singsys_slide_version
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Singsys -Responsive Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲14513.41 ▼0.979.34 ▲7.8142.08 ▲1.32
Dashboard /wp-admin2,221 ▲445.64 ▼0.0389.29 ▼4.0138.61 ▼0.04
Posts /wp-admin/edit.php2,123 ▲231.96 ▼0.0434.41 ▼2.5837.54 ▲3.36
Add New Post /wp-admin/post-new.php1,553 ▲1718.37 ▲0.15643.89 ▲3.9268.90 ▲6.44
Media Library /wp-admin/upload.php1,426 ▲264.18 ▲0.01101.06 ▼0.0644.99 ▼0.63
Add Slider /wp-admin/admin.php?page=singsys_new_slider1,4773.0146.9050.32
Singsys Slider /wp-admin/admin.php?page=singsys_slider8332.0323.8424.97

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=singsys_new_slider
    • > Warning in wp-content/plugins/singsys-responsive-slider/page/new.php+4
    Use of undefined constant id - assumed 'id' (this will throw an Error in a future version of PHP)
  • 25 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=singsys_new_slider
    • > Notice in wp-content/plugins/singsys-responsive-slider/page/new.php+224
    Undefined variable: slider_option

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/singsys-responsive-slider/page/new.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/singsys-responsive-slider/index.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/singsys-responsive-slider/page/index.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=singsys_new_slider
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/singsys-responsive-slider/script/media.js:68:27)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/admin.php?page=singsys_new_slider
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: free slider, responsive slider, slider

singsys-responsive-slider/index.php 92% from 13 tests

The main file in "Singsys -Responsive Slider" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("singsys-responsive-slider.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,285 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3237271,400
PHP69049532
CSS42331353

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity17.00
▷ Minimum class complexity1.00
▷ Maximum class complexity33.00
Average method complexity4.56
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.31MB with 0.11MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
owl/grabbing.png0.11KB0.14KB0.00%
img/close.png1.00KB0.87KB▼ 13.31%
screenshots/Add Or Update Slider ‹ Spacious — WordPress 2015-07-24 11-09-24.png258.31KB80.52KB▼ 68.83%
screenshots/Singsys Responsive Slider ‹ Spacious — WordPress 2015-07-24 11-08-37.png53.95KB20.10KB▼ 62.74%