84% be-shortcodes

Code Review | Be Shortcodes

WordPress plugin Be Shortcodes scored84%from 54 tests.

About plugin

  • Plugin page: be-shortcodes
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.1
  • WordPress version: 6.3.1
  • First release: May 15, 2018
  • Latest release: Feb 18, 2019
  • Number of updates: 6
  • Update frequency: every 46.3 days
  • Top authors: beautimour (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /871 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
Install script ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼17.54ms] Passed 4 tests

Server-side resources used by Be Shortcodes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.87 ▲0.1448.62 ▲0.39
Dashboard /wp-admin3.75 ▲0.1951.07 ▼1.69
Posts /wp-admin/edit.php3.80 ▲0.1252.21 ▼18.41
Add New Post /wp-admin/post-new.php6.28 ▲0.1398.51 ▼50.12
Media Library /wp-admin/upload.php3.61 ▲0.1239.33 ▲0.07

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Be Shortcodes: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,079 ▲31814.38 ▲0.232.02 ▲0.4446.96 ▲4.02
Dashboard /wp-admin2,461 ▲2875.70 ▲0.0293.11 ▲2.2340.41 ▼6.35
Posts /wp-admin/edit.php2,366 ▲2632.05 ▲0.0545.32 ▲2.1539.99 ▼17.57
Add New Post /wp-admin/post-new.php1,806 ▲26123.59 ▲0.45647.64 ▼34.7856.13 ▲2.75
Media Library /wp-admin/upload.php1,660 ▲2604.27 ▲0.0597.76 ▼6.9143.55 ▼0.59

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following items
  • 15× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/be-shortcodes/inc/functions.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/be-shortcodes/inc/shortcodes/tab-group.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/be-shortcodes/inc/shortcodes/animation.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/be-shortcodes/inc/shortcodes/button.php:59
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/be-shortcodes/inc/shortcodes/clear.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/be-shortcodes/inc/shortcodes/icon.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/be-shortcodes/inc/shortcodes/spacing.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/be-shortcodes/inc/shortcodes/dropcap.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/be-shortcodes/inc/button.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/be-shortcodes/inc/shortcodes/toggle.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: buttons, tabs, spacing, progressbar, highlight...

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

The main PHP script in "Be Shortcodes" version 1.0.0 is automatically included on every request by WordPress
54 characters long description:
A lightweight shortcodes plugin created by Beautimour.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin3,429 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
PHP16124124526
JavaScript88820228
CSS32104

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.18
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There are no PNG files in this plugin