100% wp-bootstrap-comments

Code Review | WP Bootstrap Comments

WordPress plugin WP Bootstrap Comments scored 100% from 54 tests.

About plugin

  • Plugin page: wp-bootstrap-comm...
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.4.1
  • WordPress version: 5.8.1
  • First release: Jan 22, 2016
  • Latest release: Jan 22, 2016
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: dbmartin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 1,229 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼140.86ms] Passed 4 tests

An overview of server-side resources used by WP Bootstrap Comments
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1535.76 ▲13.33
Dashboard /wp-admin3.09 ▲0.0455.68 ▲6.94
Posts /wp-admin/edit.php3.14 ▲0.0350.74 ▲0.98
Add New Post /wp-admin/post-new.php5.45 ▲0.0197.98 ▼569.89
Media Library /wp-admin/upload.php3.03 ▲0.0333.07 ▼1.47

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for WP Bootstrap Comments
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,702 ▲10615.98 ▲0.2610.26 ▲0.5249.50 ▲1.70
Dashboard /wp-admin2,966 ▲325.89 ▼0.13162.92 ▲9.82109.20 ▲1.30
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0174.19 ▲1.1486.76 ▼6.38
Add New Post /wp-admin/post-new.php1,683 ▼018.74 ▼0.05386.59 ▼11.96107.63 ▼4.83
Media Library /wp-admin/upload.php1,807 ▼35.01 ▼0.01175.73 ▲9.73118.16 ▼2.36

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: comments, bootstrap

wp-bootstrap-comments/wp-bootstrap-comments.php Passed 13 tests

The primary PHP file in "WP Bootstrap Comments" version 0.1.0 is used by WordPress to initiate all plugin functionality
72 characters long description:
Easily build valid Bootstrap v3 comment lists. Includes nested comments.

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
Good job! No executable or dangerous file extensions detected206 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP153134167
Markdown114039

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity3.88
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods225.00%
▷ Protected methods675.00%
▷ Private methods00.00%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin