90% multi-post-carousel

Code Review | Multi Post Carousel by Category

WordPress plugin Multi Post Carousel by Category scored90%from 54 tests.

About plugin

  • Plugin page: multi-post-carousel
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Jul 6, 2016
  • Latest release: Mar 31, 2021
  • Number of updates: 88
  • Update frequency: every 19.7 days
  • Top authors: gbsdeveloper (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

60+ active /3,221 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.02MB] [CPU: ▼4.42ms] Passed 4 tests

Analyzing server-side resources used by Multi Post Carousel by Category
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.44 ▲0.73
Dashboard /wp-admin3.33 ▲0.0348.90 ▼7.13
Posts /wp-admin/edit.php3.38 ▲0.0348.02 ▼2.94
Add New Post /wp-admin/post-new.php5.91 ▲0.0389.06 ▼8.35
Media Library /wp-admin/upload.php3.26 ▲0.0338.02 ▲1.56
Post Slides /wp-admin/options-general.php?page=post-slide3.2233.30

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
post_slides_option_name
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Multi Post Carousel by Category
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6914.71 ▲0.122.31 ▲0.8143.32 ▲2.43
Dashboard /wp-admin2,206 ▲295.62 ▲0.0395.48 ▲8.6641.64 ▼3.45
Posts /wp-admin/edit.php2,105 ▲51.99 ▼0.0235.07 ▼3.9332.40 ▼9.20
Add New Post /wp-admin/post-new.php1,533 ▲522.98 ▼0.08675.53 ▲16.3563.28 ▲1.43
Media Library /wp-admin/upload.php1,408 ▲84.10 ▼0.09110.45 ▼5.7549.70 ▲0.80
Post Slides /wp-admin/options-general.php?page=post-slide1,0051.8129.1329.15

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • post_slides_option_name

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: image carousel, carousel, images, multi post carousel, category...

multi-post-carousel/multi-post-carousel.php Passed 13 tests

The main file in "Multi Post Carousel by Category" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
92 characters long description:
WordPress multipost carousel to show post in the count of 4,8,12 and vice-versa in one slide

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,882 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript228211,093
PHP27826412
CSS22813377

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity57.00
▷ Minimum class complexity57.00
▷ Maximum class complexity57.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
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
img/controls.png2.19KB0.95KB▼ 56.49%