94% smart-code-escape

Code Review | Smart Code Escape

WordPress plugin Smart Code Escape scored 94% from 54 tests.

About plugin

  • Plugin page: smart-code-escape
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 1.2.1-4.2
  • WordPress version: 5.8.1
  • First release: Dec 8, 2014
  • Latest release: Apr 22, 2015
  • Number of updates: 9
  • Update frequency: every 15.0 days
  • Top authors: danielpataki (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,134 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Smart Code Escape
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0132.16 ▼2.13
Dashboard /wp-admin3.06 ▲0.0145.58 ▼2.30
Posts /wp-admin/edit.php3.12 ▲0.0148.52 ▲0.60
Add New Post /wp-admin/post-new.php5.43 ▼0.0094.39 ▼566.33
Media Library /wp-admin/upload.php3.01 ▼0.0033.49 ▼9.43

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Smart Code Escape: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,678 ▲8216.22 ▲0.627.65 ▼2.4248.22 ▼4.43
Dashboard /wp-admin2,973 ▲425.91 ▼0.08171.10 ▲13.99113.13 ▼6.09
Posts /wp-admin/edit.php2,736 ▼32.70 ▲0.0067.71 ▼3.4791.13 ▼5.25
Add New Post /wp-admin/post-new.php1,683 ▲7918.76 ▼0.05390.58 ▲21.56114.60 ▼4.36
Media Library /wp-admin/upload.php1,807 ▼35.01 ▼0.02155.79 ▼4.14120.27 ▼5.89

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

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 everything seems fine, this is not an exhaustive test

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 fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/smart-code-escape/smart-code-escape.php:39

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)
There were no browser issues found

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
3 plugin tags: code, escaping, content

smart-code-escape/smart-code-escape.php Passed 13 tests

"Smart Code Escape" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
71 characters long description:
Converts less than, greater than and ampersand characters to their HTML

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin15 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP153315

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin