89% carousel-post-slider

Code Review | Advanced Carousel Post Slider

WordPress plugin Advanced Carousel Post Slider scored89%from 54 tests.

About plugin

  • Plugin page: carousel-post-slider
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.2
  • WordPress version: 6.3.1
  • First release: Aug 25, 2019
  • Latest release: Aug 25, 2019
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: hossain88 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /867 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼2.68ms] Passed 4 tests

An overview of server-side resources used by Advanced Carousel Post Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2138.89 ▼3.81
Dashboard /wp-admin3.51 ▲0.2052.17 ▼3.39
Posts /wp-admin/edit.php3.56 ▲0.2052.19 ▼2.42
Add New Post /wp-admin/post-new.php6.09 ▲0.21102.39 ▲1.28
Media Library /wp-admin/upload.php3.43 ▲0.2038.78 ▼1.09
All Post Slider /wp-admin/edit.php?post_type=advncps3.4738.64
Add Post Slider /wp-admin/post-new.php?post_type=advncps3.4851.35

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced Carousel Post Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,996 ▲23514.00 ▼0.295.80 ▲4.0244.54 ▼1.99
Dashboard /wp-admin2,272 ▲694.98 ▲0.0998.53 ▼17.4840.56 ▼1.17
Posts /wp-admin/edit.php2,154 ▲542.29 ▲0.3238.92 ▲1.8235.62 ▲1.45
Add New Post /wp-admin/post-new.php1,577 ▲2318.40 ▼0.12614.82 ▼52.8034.43 ▼16.56
Media Library /wp-admin/upload.php1,454 ▲544.35 ▲0.11101.56 ▼9.8243.78 ▼3.45
All Post Slider /wp-admin/edit.php?post_type=advncps1,1402.1932.8733.06
Add Post Slider /wp-admin/post-new.php?post_type=advncps3,0592.8163.2237.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
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 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: carousel slider, slider, post slider, minimal slider, carousel...

carousel-post-slider/advanced-carousel-post-slider.php 85% from 13 tests

The entry point to "Advanced Carousel Post Slider" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 220 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("carousel-post-slider.php" instead of "advanced-carousel-post-slider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected10,482 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript49568493,270
CSS5486473,246
SVG1002,671
PHP8224651,295

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin