83% bootstrap-tutorials

Code Review | Bootstrap Tutorials

WordPress plugin Bootstrap Tutorials scored83%from 54 tests.

About plugin

  • Plugin page: bootstrap-tutorials
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.2.2
  • WordPress version: 6.3.1
  • First release: Aug 1, 2015
  • Latest release: Nov 5, 2015
  • Number of updates: 20
  • Update frequency: every 5.0 days
  • Top authors: madiriaashish (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /996 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
Install script ran successfully

Server metrics [RAM: ▲0.49MB] [CPU: ▼4.95ms] Passed 4 tests

Analyzing server-side resources used by Bootstrap Tutorials
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.95 ▲0.4952.39 ▲12.93
Dashboard /wp-admin3.79 ▲0.4950.65 ▼5.55
Posts /wp-admin/edit.php3.84 ▲0.4954.21 ▼2.36
Add New Post /wp-admin/post-new.php6.37 ▲0.4990.47 ▼15.39
Media Library /wp-admin/upload.php3.72 ▲0.4941.52 ▲3.52

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bootstrap Tutorials
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.26 ▼0.041.72 ▲0.1042.38 ▼2.49
Dashboard /wp-admin2,208 ▲315.58 ▲0.0285.21 ▼12.0238.70 ▼1.28
Posts /wp-admin/edit.php2,098 ▲12.08 ▲0.0535.48 ▼0.4338.77 ▲2.32
Add New Post /wp-admin/post-new.php1,558 ▲3223.22 ▲5.74656.30 ▼41.6666.07 ▲12.23
Media Library /wp-admin/upload.php1,413 ▲194.17 ▼0.28101.96 ▲3.5747.70 ▲3.08

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× 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/bootstrap-tutorials/bootstrap_tutorials.php:6257

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: Add descriptions for screenshots #1, #2 in bootstrap-tutorials/assets to your readme.txt
  • Tags: You are using too many tags: 24 tag instead of maximum 10
You can take inspiration from this readme.txt

bootstrap-tutorials/bootstrap_tutorials.php 92% from 13 tests

"Bootstrap Tutorials" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("bootstrap-tutorials.php" instead of "bootstrap_tutorials.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected5,928 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP155785,694
SVG100229
JavaScript2174
CSS1151

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin