78% awesome-wp-slider

Code Review | Awesome Wordpress Slider

WordPress plugin Awesome Wordpress Slider scored78%from 54 tests.

About plugin

  • Plugin page: awesome-wp-slider
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.9.8
  • WordPress version: 6.3.1
  • First release: Sep 9, 2018
  • Latest release: Sep 9, 2018
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: jewel1994 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /739 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.67MB] [CPU: ▲8.80ms] Passed 4 tests

A check of server-side resources used by Awesome Wordpress Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.14 ▲0.6851.41 ▲8.89
Dashboard /wp-admin3.99 ▲0.6953.61 ▲3.64
Posts /wp-admin/edit.php4.03 ▲0.6859.35 ▲10.97
Add New Post /wp-admin/post-new.php6.56 ▲0.6899.20 ▲11.70
Media Library /wp-admin/upload.php3.88 ▲0.6548.31 ▲16.17
Slides /wp-admin/edit.php?post_type=slide3.9547.70
Add New /wp-admin/post-new.php?post_type=slide3.9951.52

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 90 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Awesome Wordpress Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,132 ▲37115.65 ▲1.097.20 ▲5.6047.37 ▼0.69
Dashboard /wp-admin2,442 ▲2626.73 ▲1.10112.51 ▲25.0839.85 ▼2.54
Posts /wp-admin/edit.php2,373 ▲2733.86 ▲1.8960.00 ▲23.8935.48 ▼4.57
Add New Post /wp-admin/post-new.php1,785 ▲25022.97 ▲4.83571.41 ▼80.4727.87 ▼46.46
Media Library /wp-admin/upload.php1,513 ▲1104.75 ▲0.5686.94 ▼10.2142.66 ▼1.58
Slides /wp-admin/edit.php?post_type=slide1,3373.5548.1026.77
Add New /wp-admin/post-new.php?post_type=slide3,0047.94204.3275.32

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

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
    • > GET request to /wp-admin/post-new.php?post_type=slide
    • > Notice in wp-content/plugins/awesome-wp-slider/inc/cs-framework/classes/metabox.class.php+70
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/awesome-wp-slider/theme-shortcodes/theme-slide.php
    • > /wp-content/plugins/awesome-wp-slider/inc/slider-toolkit-post-type.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: owl-carousel slider, wordpress slider, slider, slider carousel, owl-carousel

awesome-wp-slider/awesome-wordpress-slider.php 85% from 13 tests

The principal PHP file in "Awesome Wordpress Slider" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("awesome-wp-slider.php" instead of "awesome-wordpress-slider.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 256 characters long)

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
Everything looks great! No dangerous files found in this plugin32,599 lines of code in 80 files:
LanguageFilesBlank linesComment linesLines of code
JSON20012,929
CSS10603827,090
PHP511,4831,2015,428
JavaScript111,0687974,545
Sass531801,952
SVG100655

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity13.50
▷ Minimum class complexity1.00
▷ Maximum class complexity87.00
Average method complexity4.96
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes32
▷ Abstract classes26.25%
▷ Concrete classes3093.75%
▷ Final classes00.00%
Methods101
▷ Static methods54.95%
▷ Public methods101100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions54
▷ Named functions54100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/cs-framework/assets/images/checkerboard.png2.29KB2.54KB0.00%
inc/cs-framework/assets/images/chosen-sprite@2x.png0.85KB0.83KB▼ 3.10%
inc/cs-framework/assets/images/chosen-sprite.png0.63KB0.88KB0.00%