84% simple-content-slider

Code Review | Simple Content Slider / Slideshow

WordPress plugin Simple Content Slider / Slideshow scored84%from 54 tests.

About plugin

  • Plugin page: simple-content-sl...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.3-4.5.3
  • WordPress version: 6.3.1
  • First release: Aug 10, 2013
  • Latest release: Jul 15, 2016
  • Number of updates: 4
  • Update frequency: every 268.5 days
  • Top authors: webarthur (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /12,468 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.89ms] Passed 4 tests

Analyzing server-side resources used by Simple Content Slider / Slideshow
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.51 ▼8.87
Dashboard /wp-admin3.33 ▲0.0348.72 ▼3.32
Posts /wp-admin/edit.php3.38 ▲0.0350.20 ▲1.34
Add New Post /wp-admin/post-new.php5.91 ▲0.0395.64 ▲6.69
Media Library /wp-admin/upload.php3.25 ▲0.0336.32 ▲3.28
Slideshow /wp-admin/edit.php?post_type=slides3.3036.24
Options /wp-admin/edit.php?post_type=slides&page=scontentslider_options3.2234.35
Add Slide /wp-admin/post-new.php?post_type=slides3.4049.32

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Simple Content Slider / Slideshow
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8813.64 ▼0.764.42 ▲2.5443.73 ▲4.27
Dashboard /wp-admin2,234 ▲465.89 ▲1.02107.23 ▼9.6341.25 ▼1.00
Posts /wp-admin/edit.php2,120 ▲312.05 ▲0.0039.75 ▼0.3134.63 ▼2.29
Add New Post /wp-admin/post-new.php1,540 ▲2617.67 ▼0.07649.48 ▼37.0157.80 ▲6.13
Media Library /wp-admin/upload.php1,422 ▲344.20 ▲0.0499.94 ▼2.1341.77 ▼4.96
Slideshow /wp-admin/edit.php?post_type=slides1,0841.9830.0130.32
Options /wp-admin/edit.php?post_type=slides&page=scontentslider_options1,0341.8826.3126.96
Add Slide /wp-admin/post-new.php?post_type=slides2,1677.59172.9564.25

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-content-slider/index.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: fade, presentation, slider, slidesjs, jquery slider...

simple-content-slider/index.php 92% from 13 tests

Analyzing the main PHP file in "Simple Content Slider / Slideshow" version 1.0.2
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("simple-content-slider.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin262 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15022252
CSS1009
JavaScript1061

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
arrows.png0.68KB0.38KB▼ 43.58%