78% cc-slider

Code Review | CC Slider

WordPress plugin CC Slider scored 78% from 54 tests.

About plugin

  • Plugin page: cc-slider
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.4
  • WordPress version: 5.8.1
  • First release: Apr 6, 2016
  • Latest release: Apr 7, 2016
  • Number of updates: 11
  • Update frequency: every 0.2 days
  • Top authors: cyclonetheme (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

10+ active / 1,769 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
Install script ran successfully

Server metrics [RAM: ▼0.85MB] [CPU: ▼176.90ms] Passed 4 tests

This is a short check of server-side resources used by CC Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.75 ▼0.0933.27 ▼1.06
Dashboard /wp-admin2.80 ▼0.2522.20 ▼24.95
Posts /wp-admin/edit.php2.80 ▼0.3118.19 ▼25.41
Add New Post /wp-admin/post-new.php2.80 ▼2.6319.80 ▼628.84
Media Library /wp-admin/upload.php2.80 ▼0.2124.71 ▼28.39
Add New /wp-admin/post-new.php?post_type=cc-slider2.8020.92
All Sliders /wp-admin/edit.php?post_type=cc-slider2.8023.35
CC Slider /wp-admin/options-general.php?page=cc-slider2.8017.99

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for CC Slider
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,876 ▲28016.52 ▲1.0613.17 ▲4.7055.71 ▲6.16
Dashboard /wp-admin3,040 ▲1066.55 ▲0.65140.73 ▼1.03110.53 ▼9.80
Posts /wp-admin/edit.php2,809 ▲702.99 ▲0.3067.01 ▲1.0298.96 ▲3.64
Add New Post /wp-admin/post-new.php1,717 ▲3419.03 ▲0.28393.25 ▲14.73107.45 ▼3.15
Media Library /wp-admin/upload.php1,818 ▲115.35 ▲0.33152.89 ▼39.76114.51 ▼26.36
Add New /wp-admin/post-new.php?post_type=cc-slider3,0279.15229.24144.37
All Sliders /wp-admin/edit.php?post_type=cc-slider1,4812.7060.6492.61
CC Slider /wp-admin/options-general.php?page=cc-slider2,2593.3192.0296.70

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5663
    add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=cc-slider
    • > User notice in wp-includes/functions.php+5663
    add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cc-slider/assets/php/dynamic.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Donate link: Invalid URI found ("")
The official readme.txt might help

cc-slider/ws-slider.php 85% from 13 tests

"CC Slider" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 181 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cc-slider.php" instead of "ws-slider.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 plugin6,588 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
CSS8615834,827
JavaScript3209181,338
PHP495125423

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity10.00
▷ Minimum class complexity9.00
▷ Maximum class complexity11.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
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
assets/images/arrows.png1.63KB0.51KB▼ 68.61%