84% bulma-shortcodes

Code Review | Bulma Shortcodes

WordPress plugin Bulma Shortcodes scored84%from 54 tests.

About plugin

  • Plugin page: bulma-shortcodes
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.7
  • WordPress version: 6.3.1
  • First release: Jul 8, 2017
  • Latest release: Jul 8, 2017
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: bartboy011 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,112 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
Installer ran successfully

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

A check of server-side resources used by Bulma Shortcodes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.66 ▲0.26
Dashboard /wp-admin3.31 ▼0.0347.66 ▼15.51
Posts /wp-admin/edit.php3.36 ▲0.0146.44 ▲7.81
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.12 ▼12.86
Media Library /wp-admin/upload.php3.23 ▲0.0132.58 ▼2.35

Server storage [IO: ▲0.12MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

Checking browser requirements for Bulma Shortcodes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4914.36 ▼0.231.76 ▼0.0445.82 ▲3.05
Dashboard /wp-admin2,195 ▲185.52 ▼0.1484.95 ▼15.1937.54 ▼4.91
Posts /wp-admin/edit.php2,103 ▲31.98 ▼0.0333.28 ▼7.3035.62 ▼3.70
Add New Post /wp-admin/post-new.php1,537 ▼023.25 ▲4.96675.10 ▲12.9256.87 ▼14.50
Media Library /wp-admin/upload.php1,406 ▲64.23 ▲0.1393.29 ▼19.0641.98 ▼5.11

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulma-shortcodes/inc/functions.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulma-shortcodes/inc/functions.php:10

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 on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: shortcodes

bulma-shortcodes/bulma-shortcodes.php Passed 13 tests

The main PHP script in "Bulma Shortcodes" version 1.0 is automatically included on every request by WordPress
112 characters long description:
Adds a collection of WordPress shortcodes for Bulma components as well as a simple TinyMCE dropdown to use them.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin692 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript66537378
PHP54889170
Markdown1350121
JSON10015
CSS1008

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions16
▷ Named functions16100.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 are no PNG files in this plugin