84% corner-bracket-lover

Code Review | Corner Bracket Lover

WordPress plugin Corner Bracket Lover scored84%from 54 tests.

About plugin

  • Plugin page: corner-bracket-lover
  • Plugin version: 1.2.10
  • PHP version: 7.4.16
  • WordPress compatibility: 1.5-5.8
  • WordPress version: 6.3.1
  • First release: Dec 13, 2012
  • Latest release: Aug 11, 2021
  • Number of updates: 47
  • Update frequency: every 67.3 days
  • Top authors: Sparanoid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,330 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
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Corner Bracket Lover
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.09 ▼3.29
Dashboard /wp-admin3.32 ▼0.0251.73 ▼15.18
Posts /wp-admin/edit.php3.37 ▲0.0149.36 ▲0.89
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.72 ▼12.33
Media Library /wp-admin/upload.php3.24 ▲0.0136.98 ▲1.35
Corner Bracket Lover /wp-admin/options-general.php?page=corner-bracket-lover3.2136.37

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
cbl_options
widget_recent-posts
can_compress_scripts
sparanoid_plugin_error
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Corner Bracket Lover: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.23 ▼1.361.79 ▼0.0444.04 ▼1.39
Dashboard /wp-admin2,225 ▲225.84 ▲0.87117.45 ▲6.0044.09 ▼1.31
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0239.35 ▲3.4833.89 ▼3.79
Add New Post /wp-admin/post-new.php1,557 ▲2623.07 ▼0.15662.08 ▼27.5566.96 ▲12.87
Media Library /wp-admin/upload.php1,404 ▲74.22 ▼0.0297.85 ▼5.4845.80 ▼0.38
Corner Bracket Lover /wp-admin/options-general.php?page=corner-bracket-lover9112.0522.6627.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • sparanoid_plugin_error
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

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)
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/corner-bracket-lover/corner-bracket-lover.php:33

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

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
Please take inspiration from this readme.txt

corner-bracket-lover/corner-bracket-lover.php Passed 13 tests

Analyzing the main PHP file in "Corner Bracket Lover" version 1.2.10
101 characters long description:
Corner Bracket Lover converts all curly quotation marks in your posts to traditional corner brackets.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin251 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14050179
PO File1266172

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin