79% slidee

Code Review | Slidee - Simple and fast SEO friendly slider

WordPress plugin Slidee - Simple and fast SEO friendly slider scored79%from 54 tests.

About plugin

  • Plugin page: slidee
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.0.0
  • WordPress version: 6.3.1
  • First release: Nov 8, 2018
  • Latest release: Dec 26, 2018
  • Number of updates: 5
  • Update frequency: every 9.8 days
  • Top authors: kirillbdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /545 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼0.53ms] Passed 4 tests

Server-side resources used by Slidee - Simple and fast SEO friendly slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.30 ▼2.20
Dashboard /wp-admin3.43 ▲0.0854.09 ▼2.16
Posts /wp-admin/edit.php3.51 ▲0.1553.69 ▲9.85
Add New Post /wp-admin/post-new.php5.97 ▲0.0884.08 ▼0.05
Media Library /wp-admin/upload.php3.31 ▲0.0934.93 ▲2.27
Add slider /wp-admin/post-new.php?post_type=slidee_slider3.3945.08
Slidee /wp-admin/edit.php?post_type=slidee_slider3.3839.51

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Slidee - Simple and fast SEO friendly slider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,019 ▲25816.21 ▲1.862.24 ▲0.5743.53 ▲1.82
Dashboard /wp-admin2,390 ▲2107.11 ▲1.51134.26 ▲42.8038.75 ▼2.80
Posts /wp-admin/edit.php2,473 ▲3734.75 ▲2.7467.98 ▲35.4139.05 ▲0.95
Add New Post /wp-admin/post-new.php1,565 ▲3723.39 ▲0.39667.04 ▼7.9037.16 ▼18.78
Media Library /wp-admin/upload.php1,614 ▲2175.15 ▲0.9792.34 ▼7.5041.44 ▼5.76
Add slider /wp-admin/post-new.php?post_type=slidee_slider2,2727.27156.5670.08
Slidee /wp-admin/edit.php?post_type=slidee_slider1,4374.7453.0626.40

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/slidee/views/settings.php
    • > /wp-content/plugins/slidee/views/slider.php
  • 56× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slidee/inc/initializer.php:13
    • > PHP Notice
      Undefined variable: slidee in wp-content/plugins/slidee/views/settings.php on line 42
    • > PHP Notice
      Trying to get property 'settings' of non-object in wp-content/plugins/slidee/views/slider.php on line 69
    • > PHP Notice
      Undefined variable: slidee in wp-content/plugins/slidee/views/settings.php on line 20
    • > PHP Notice
      Undefined variable: slidee in wp-content/plugins/slidee/views/settings.php on line 51
    • > PHP Notice
      Undefined variable: slidee in wp-content/plugins/slidee/views/settings.php on line 34
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/slidee/views/settings.php on line 20
    • > PHP Notice
      Trying to get property 'id' of non-object in wp-content/plugins/slidee/views/slider.php on line 68
    • > PHP Notice
      Trying to get property 'settings' of non-object in wp-content/plugins/slidee/views/settings.php on line 58
    • > PHP Notice
      Trying to get property 'settings' of non-object in wp-content/plugins/slidee/views/settings.php on line 51

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: flexible-slider, lightweight slider, slidee, animate slider, fast slider...

slidee/slidee.php Passed 13 tests

The main file in "Slidee - Simple and fast SEO friendly slider" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
57 characters long description:
Fast and minimalistic SEO friendly slider with pure code.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected532 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP87712432
SVG20296
CSS2002
JavaScript2002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity2.67
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods550.00%
▷ Protected methods00.00%
▷ Private methods550.00%
Functions10
▷ Named functions550.00%
▷ Anonymous functions550.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected