90% encode-shortcode

Code Review | Encode Shortcode

WordPress plugin Encode Shortcode scored90%from 54 tests.

About plugin

  • Plugin page: encode-shortcode
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.1.0
  • WordPress version: 6.3.1
  • First release: Mar 10, 2019
  • Latest release: Mar 10, 2019
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: wpr0ck (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /533 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.60ms] Passed 4 tests

Server-side resources used by Encode Shortcode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.36 ▼2.08
Dashboard /wp-admin3.32 ▲0.0146.89 ▼2.23
Posts /wp-admin/edit.php3.37 ▲0.0150.84 ▲0.18
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.24 ▼10.28
Media Library /wp-admin/upload.php3.24 ▲0.0138.87 ▲2.71

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

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

Browser metrics Passed 4 tests

Encode Shortcode: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.011.72 ▲0.1141.11 ▼3.11
Dashboard /wp-admin2,192 ▲155.50 ▼0.1183.56 ▼3.2940.79 ▼1.07
Posts /wp-admin/edit.php2,100 ▲32.02 ▲0.0142.48 ▲5.2635.64 ▲3.01
Add New Post /wp-admin/post-new.php1,535 ▲718.59 ▼4.47629.33 ▼60.9177.41 ▲20.07
Media Library /wp-admin/upload.php1,397 ▼64.26 ▲0.0596.04 ▼6.1043.67 ▼3.08

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Contributors: Contributors not specified
You can look at the official readme.txt

encode-shortcode/encode-shortcode.php Passed 13 tests

Analyzing the main PHP file in "Encode Shortcode" version 1.0.3
134 characters long description:
Protect email address in your website against spam with shortcode like this : [encode email="hello@mail.fr"]My text to encode[/encode]

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected135 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4335979
PO File17733
Markdown122023

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions6
▷ Named functions6100.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
No PNG images were found in this plugin