93% wpi-easy-button-shortcode

Code Review | WPi Easy Button Shortcode - Create buttons anywhere in wordpress using button shortcode [wpi_easy_button]

WordPress plugin WPi Easy Button Shortcode - Create buttons anywhere in wordpress using button shortcode [wpi_easy_button] scored 93% from 54 tests.

About plugin

  • Plugin page: wpi-easy-button-s...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 5.9.2
  • First release: Jan 21, 2015
  • Latest release: Jan 21, 2015
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: wooprali (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,160 total downloads

Benchmarks

Plugin footprint Passed 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.02MB] [CPU: ▼286.76ms] Passed 4 tests

A check of server-side resources used by WPi Easy Button Shortcode - Create buttons anywhere in wordpress using button shortcode [wpi_easy_button]
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0155.94 ▲5.12
Dashboard /wp-admin3.42 ▲0.0132.80 ▼0.67
Posts /wp-admin/edit.php3.65 ▲0.0137.63 ▲1.87
Add New Post /wp-admin/post-new.php6.89 ▼0.0895.43 ▼1,148.47
Media Library /wp-admin/upload.php3.30 ▲0.0124.53 ▲0.22

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for WPi Easy Button Shortcode - Create buttons anywhere in wordpress using button shortcode [wpi_easy_button]
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,797 ▲7515.85 ▲0.176.02 ▼0.072.91 ▲0.86
Dashboard /wp-admin2,895 ▲346.10 ▼0.11119.45 ▼20.58156.17 ▼5.77
Posts /wp-admin/edit.php2,688 ▼63.22 ▼0.0164.64 ▼1.07141.98 ▼2.57
Add New Post /wp-admin/post-new.php1,752 ▲9120.83 ▲4.44442.56 ▲26.38160.40 ▼1.35
Media Library /wp-admin/upload.php1,695 ▼05.49 ▼0.03158.87 ▲20.69195.73 ▲11.03

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wpi-easy-button-shortcode/wpi-easy-button-shortcode.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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 ()
The official readme.txt might help

wpi-easy-button-shortcode/wpi-easy-button-shortcode.php 85% from 13 tests

The principal PHP file in "WPi Easy Button Shortcode - Create buttons anywhere in wordpress using button shortcode [wpi_easy_button]" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/locale/")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin45 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS11124
PHP101221

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin