84% agnosia-bootstrap-carousel

Code Review | Agnosia Bootstrap Carousel by AuSoft

WordPress plugin Agnosia Bootstrap Carousel by AuSoft scored 84% from 54 tests.

About plugin

  • Plugin page: agnosia-bootstrap...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0.1
  • WordPress version: 6.3.1
  • First release: May 25, 2013
  • Latest release: Dec 7, 2014
  • Number of updates: 38
  • Update frequency: every 24.9 days
  • Top authors: andrezrv (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

200+ active / 18,978 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.07ms] Passed 4 tests

An overview of server-side resources used by Agnosia Bootstrap Carousel by AuSoft
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0638.56 ▼2.75
Dashboard /wp-admin3.36 ▲0.0546.43 ▼5.27
Posts /wp-admin/edit.php3.47 ▲0.1248.05 ▲1.59
Add New Post /wp-admin/post-new.php5.94 ▲0.0597.10 ▲8.69
Media Library /wp-admin/upload.php3.28 ▲0.0534.62 ▼1.85

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Agnosia Bootstrap Carousel by AuSoft
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.66 ▼1.141.74 ▼0.3238.30 ▼7.03
Dashboard /wp-admin2,200 ▲155.83 ▼0.05107.58 ▼1.2640.07 ▼0.76
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0141.53 ▲1.1935.11 ▼1.63
Add New Post /wp-admin/post-new.php1,514 ▼1917.68 ▼5.62679.91 ▲76.2153.46 ▲4.90
Media Library /wp-admin/upload.php1,391 ▲34.23 ▲0.04101.54 ▼3.2944.85 ▲0.69

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/agnosia-bootstrap-carousel/agnosia-bootstrap-carousel-loader.class.php:14

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: slider, bootstrap, responsive, images, carousel

agnosia-bootstrap-carousel/agnosia-bootstrap-carousel.php 92% from 13 tests

This is the main PHP file of "Agnosia Bootstrap Carousel by AuSoft" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 570 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin365 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP434193286
Markdown129079

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity20.00
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods626.09%
▷ Protected methods00.00%
▷ Private methods1773.91%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin