90% better-blockquotes

Code Review | Better Blockquotes

WordPress plugin Better Blockquotes scored 90% from 54 tests.

About plugin

  • Plugin page: better-blockquotes
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.4
  • WordPress version: 6.3.1
  • First release: Apr 10, 2016
  • Latest release: Mar 25, 2016
  • Number of updates: 2
  • Update frequency: every 8.0 days
  • Top authors: downstairsdev (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active / 7,346 total downloads

Benchmarks

Plugin footprint 83% from 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.01MB] [CPU: ▼1.57ms] Passed 4 tests

An overview of server-side resources used by Better Blockquotes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.45 ▼2.38
Dashboard /wp-admin3.31 ▲0.0146.05 ▼3.09
Posts /wp-admin/edit.php3.36 ▲0.0146.04 ▲3.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.76 ▼2.04
Media Library /wp-admin/upload.php3.24 ▲0.0135.61 ▲1.23

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Better Blockquotes: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.23 ▼1.361.71 ▼0.1142.47 ▲5.01
Dashboard /wp-admin2,209 ▲214.90 ▲0.02108.52 ▲0.9337.57 ▼4.64
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0345.13 ▲9.8541.53 ▲5.63
Add New Post /wp-admin/post-new.php1,517 ▼317.51 ▼5.75674.36 ▲31.8152.85 ▲0.86
Media Library /wp-admin/upload.php1,388 ▼34.27 ▲0.0497.24 ▼23.1341.46 ▼7.66

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 detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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: tinymce, blockquotes

better-blockquotes/better-blockquotes.php 92% from 13 tests

"Better Blockquotes" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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 detected125 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript115971
PHP1276054

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.57
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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 images were found in this plugin