84% forget-about-shortcode-buttons

Code Review | Forget About Shortcode Buttons

WordPress plugin Forget About Shortcode Buttons scored 84% from 54 tests.

About plugin

  • Plugin page: forget-about-shor...
  • Plugin version: 2.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.1
  • WordPress version: 6.3.1
  • First release: Apr 4, 2014
  • Latest release: Jan 18, 2023
  • Number of updates: 59
  • Update frequency: every 54.4 days
  • Top authors: DesignsAndCode (86.44%)codeamp (15.25%)

Code review

54 tests

User reviews

68 reviews

Install metrics

40,000+ active / 370,843 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼4.08ms] Passed 4 tests

Analyzing server-side resources used by Forget About Shortcode Buttons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0932.04 ▼11.65
Dashboard /wp-admin3.38 ▲0.0844.97 ▼5.05
Posts /wp-admin/edit.php3.49 ▲0.1451.66 ▼2.79
Add New Post /wp-admin/post-new.php5.99 ▲0.1199.58 ▲3.17
Media Library /wp-admin/upload.php3.34 ▲0.1136.39 ▲4.69

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 55 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Forget About Shortcode Buttons
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6714.47 ▲0.071.66 ▼0.1341.34 ▼4.29
Dashboard /wp-admin2,206 ▲184.86 ▼0.04109.91 ▲5.1241.45 ▼5.58
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0640.21 ▲4.4538.32 ▲5.95
Add New Post /wp-admin/post-new.php3,311 ▲1,79719.40 ▲1.78645.14 ▼33.1035.23 ▼19.52
Media Library /wp-admin/upload.php3,198 ▲1,8134.49 ▲0.28103.67 ▲6.1445.84 ▲4.43

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • 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)
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 10× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/forget-about-shortcode-buttons/admin/partials/fa-web-grid.php
    • > /wp-content/plugins/forget-about-shortcode-buttons/admin/partials/fa-brand-grid.php
    • > /wp-content/plugins/forget-about-shortcode-buttons/admin/partials/fa-directional-grid.php
    • > /wp-content/plugins/forget-about-shortcode-buttons/admin/partials/fa-currency-grid.php
    • > /wp-content/plugins/forget-about-shortcode-buttons/admin/partials/dashicons-grid.php
    • > /wp-content/plugins/forget-about-shortcode-buttons/admin/partials/forget-about-shortcode-buttons-admin-backbone-templates.php
    • > /wp-content/plugins/forget-about-shortcode-buttons/admin/partials/fa-medical-grid.php
    • > /wp-content/plugins/forget-about-shortcode-buttons/admin/partials/fa-editor-grid.php
    • > /wp-content/plugins/forget-about-shortcode-buttons/admin/partials/fa-media-grid.php
    • > /wp-content/plugins/forget-about-shortcode-buttons/admin/partials/fa-form-grid.php

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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can look at the official readme.txt

forget-about-shortcode-buttons/forget-about-shortcode-buttons.php Passed 13 tests

The main file in "Forget About Shortcode Buttons" v. 2.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
75 characters long description:
A visual way to add CSS buttons in the rich text editor and to your themes.

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
Success! There were no dangerous files found in this plugin3,677 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
CSS83241132,086
PHP202455511,171
SVG100414
JavaScript6006

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity4.14
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods33
▷ Static methods26.06%
▷ Public methods2884.85%
▷ Protected methods00.00%
▷ Private methods515.15%
Functions3
▷ Named functions3100.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
There are no PNG files in this plugin