84% genesis-bootstrap-carousel

Code Review | Genesis Bootstrap Carousel

WordPress plugin Genesis Bootstrap Carousel scored84%from 54 tests.

About plugin

  • Plugin page: genesis-bootstrap...
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5.1
  • WordPress version: 6.3.1
  • First release: Oct 7, 2012
  • Latest release: Feb 20, 2013
  • Number of updates: 12
  • Update frequency: every 11.5 days
  • Top authors: jtallant (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /13,407 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.12ms] Passed 4 tests

Server-side resources used by Genesis Bootstrap Carousel
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.44 ▼0.32
Dashboard /wp-admin3.31 ▲0.0043.28 ▲0.75
Posts /wp-admin/edit.php3.36 ▲0.0055.49 ▲13.45
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.48 ▼12.40
Media Library /wp-admin/upload.php3.23 ▲0.0035.89 ▲3.50

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Genesis Bootstrap Carousel
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.62 ▼0.754.65 ▲2.9843.35 ▼4.69
Dashboard /wp-admin2,203 ▲185.79 ▲0.7196.10 ▼1.7237.50 ▲0.05
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.1439.37 ▼2.5534.29 ▼0.40
Add New Post /wp-admin/post-new.php1,547 ▲518.31 ▲0.10591.76 ▼25.0765.47 ▲9.76
Media Library /wp-admin/upload.php1,388 ▼34.16 ▼0.0693.26 ▼12.2541.08 ▼3.19

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/genesis-bootstrap-carousel/admin.php:45
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/genesis-bootstrap-carousel/genesis-bootstrap-carousel.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Contributors: Contributors not specified
The official readme.txt might help

genesis-bootstrap-carousel/genesis-bootstrap-carousel.php Passed 13 tests

"Genesis Bootstrap Carousel" version 0.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
40 characters long description:
A responsive image carousel for Genesis.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected900 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP2206143601
JavaScript36252189
CSS2117110

PHP code Passed 2 tests

A brief analysis 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.16
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity5.80
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected