84% azurecurve-bbcode

Code Review | azurecurve BBCode

WordPress plugin azurecurve BBCode scored84%from 54 tests.

About plugin

  • Plugin page: azurecurve-bbcode
  • Plugin version: 2.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.0.0
  • WordPress version: 6.3.1
  • First release: Jan 15, 2015
  • Latest release: Dec 5, 2018
  • Number of updates: 16
  • Update frequency: every 88.9 days
  • Top authors: azurecurve (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /2,343 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼10.80ms] Passed 4 tests

Analyzing server-side resources used by azurecurve BBCode
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.03 ▼4.33
Dashboard /wp-admin3.37 ▲0.0348.84 ▼16.16
Posts /wp-admin/edit.php3.48 ▲0.1350.25 ▼1.48
Add New Post /wp-admin/post-new.php5.95 ▲0.0786.98 ▼20.25
Media Library /wp-admin/upload.php3.29 ▲0.0737.37 ▼2.47
BBCode /wp-admin/admin.php?page=azc-bbcode3.2633.94
Plugins /wp-admin/admin.php?page=azc-plugin-menus3.2634.13

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
These are issues you should consider
  • The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/azurecurve-bbcode/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for azurecurve BBCode
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲7413.65 ▼0.831.87 ▼0.0140.86 ▼3.26
Dashboard /wp-admin2,252 ▲525.88 ▲0.78113.78 ▲10.8989.42 ▲52.40
Posts /wp-admin/edit.php2,128 ▲252.02 ▲0.0335.22 ▼6.5536.28 ▼2.70
Add New Post /wp-admin/post-new.php1,555 ▲2423.15 ▼0.04792.37 ▲141.0556.30 ▲3.81
Media Library /wp-admin/upload.php1,419 ▲194.14 ▼0.03103.60 ▼3.8481.30 ▲35.64
BBCode /wp-admin/admin.php?page=azc-bbcode9322.1924.8326.59
Plugins /wp-admin/admin.php?page=azc-plugin-menus8582.0023.8030.83

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/azurecurve-bbcode/azurecurve-bbcode.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: bbcode, posts, pages

azurecurve-bbcode/azurecurve-bbcode.php Passed 13 tests

Analyzing the main PHP file in "azurecurve BBCode" version 2.0.4
74 characters long description:
Allows some common BB code to be used in place of html on pages and posts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin469 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14522411
CSS20458

PHP code Passed 2 tests

This is a short overview 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.39
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%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/Favicon-16x16.png0.40KB0.34KB▼ 14.81%