68% simply-slider

Code Review | Simply Slider

WordPress plugin Simply Slider scored68%from 54 tests.

About plugin

  • Plugin page: simply-slider
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.1
  • WordPress version: 6.3.1
  • First release: Dec 23, 2014
  • Latest release: May 3, 2019
  • Number of updates: 6
  • Update frequency: every 265.8 days
  • Top authors: Themewerk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /996 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.65MB] [CPU: ▼30.67ms] Passed 4 tests

A check of server-side resources used by Simply Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1745.21 ▲6.24
Dashboard /wp-admin3.30 ▼0.0125.27 ▼23.87
Posts /wp-admin/edit.php3.30 ▼0.0627.72 ▼17.19
Add New Post /wp-admin/post-new.php3.30 ▼2.5927.84 ▼72.14
Media Library /wp-admin/upload.php3.30 ▲0.0726.06 ▼9.47
SimplySlider /wp-admin/options-general.php?page=simplyslide-options3.3026.81

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
simplyslide_page
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Simply Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,082 ▲33615.95 ▲1.366.47 ▲4.7841.16 ▼1.95
Dashboard /wp-admin2,375 ▲1906.78 ▲1.65119.77 ▲12.2137.44 ▼5.73
Posts /wp-admin/edit.php2,281 ▲1953.69 ▲1.6958.23 ▲21.8335.52 ▲4.93
Add New Post /wp-admin/post-new.php1,695 ▲16222.72 ▼0.64603.40 ▼76.7932.23 ▼26.09
Media Library /wp-admin/upload.php1,422 ▲344.43 ▲0.2782.27 ▼27.5644.14 ▼2.52
SimplySlider /wp-admin/options-general.php?page=simplyslide-options2,1124.0971.3732.07

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/simply-slider/class.simplyslide.php+623
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • simplyslide_page
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=simplyslide-options
    • > Deprecated in wp-content/plugins/simply-slider/class.simplyslide.php+623
    Function create_function() is deprecated
  • 15 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=simplyslide-options
    • > Notice in wp-content/plugins/simply-slider/fields/image.php+24
    Undefined variable: class

SRP 50% 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
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/simply-slider/class.simplyslide.php on line 854
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/simply-slider/class.simplyslide.php:857
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simply-slider/simplyslide.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'SimplySlide_Settings_Field' not found in wp-content/plugins/simply-slider/fields/text.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'SimplySlide_Settings_Field' not found in wp-content/plugins/simply-slider/fields/image.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (This is the Simply Slider Options Page.) image missing
You can look at the official readme.txt

simply-slider/simplyslide.php 92% from 13 tests

The principal PHP file in "Simply Slider" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simply-slider.php" instead of "simplyslide.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected2,288 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP484251,143
JavaScript48173661
CSS1318484

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.21
Average class complexity8.14
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity1.68
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods74
▷ Static methods11.35%
▷ Public methods7398.65%
▷ Protected methods00.00%
▷ Private methods11.35%
Functions3
▷ Named functions3100.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
3 PNG files occupy 0.29MB with 0.16MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/arrowdown64.png1.46KB0.69KB▼ 53.11%
images/sprite.png57.14KB23.19KB▼ 59.41%
screenshot.png234.47KB103.77KB▼ 55.74%