10% rot13-encoderdecoder

Code Review | ROT13 Encoder/Decoder

WordPress plugin ROT13 Encoder/Decoder scored 10% from 54 tests.

About plugin

  • Plugin page: rot13-encoderdecoder
  • Plugin version: 1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-4.1.1
  • WordPress version: 5.9.2
  • First release: Mar 15, 2011
  • Latest release: Feb 28, 2015
  • Number of updates: 38
  • Update frequency: every 38.2 days
  • Top authors: kjvtough (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,094 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/rot13-encoderdecoder/rot13-encoderdecoder.php+32
    Methods with the same name as their class will not be constructors in a future version of PHP; rot13EncoderDecoderPlugin has a deprecated constructor

Server metrics [RAM: ▼2.19MB] [CPU: ▼355.26ms] Passed 4 tests

Analyzing server-side resources used by ROT13 Encoder/Decoder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.12 ▼1.015.98 ▼110.53
Dashboard /wp-admin2.14 ▼1.274.95 ▼33.02
Posts /wp-admin/edit.php2.14 ▼1.505.23 ▼38.75
Add New Post /wp-admin/post-new.php2.14 ▼4.834.50 ▼1,238.74
Media Library /wp-admin/upload.php2.14 ▼1.154.17 ▼24.36
ROT13 Encoder/Decoder /wp-admin/options-general.php?page=rot13_encoder_decoder2.144.62

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for ROT13 Encoder/Decoder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,921 ▲16715.48 ▼0.1611.17 ▲4.003.43 ▼0.12
Dashboard /wp-admin2,944 ▲896.14 ▼0.09120.27 ▼17.57151.61 ▼31.03
Posts /wp-admin/edit.php2,751 ▲573.24 ▲0.0063.93 ▼0.51146.91 ▲7.00
Add New Post /wp-admin/post-new.php1,682 ▼2919.68 ▼1.00388.79 ▼47.01165.47 ▼0.50
Media Library /wp-admin/upload.php1,761 ▲665.53 ▲0.01140.26 ▲3.90186.55 ▼37.93
ROT13 Encoder/Decoder /wp-admin/options-general.php?page=rot13_encoder_decoder2,4553.72113.90158.50

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/rot13-encoderdecoder/rot13-encoderdecoder.php+32
    Methods with the same name as their class will not be constructors in a future version of PHP; rot13EncoderDecoderPlugin has a deprecated constructor

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=rot13_encoder_decoder
    • > Deprecated in wp-content/plugins/rot13-encoderdecoder/rot13-encoderdecoder.php+32
    Methods with the same name as their class will not be constructors in a future version of PHP; rot13EncoderDecoderPlugin has a deprecated constructor

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
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/rot13-encoderdecoder/screens/admin_screen.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/rot13-encoderdecoder/rot13-encoderdecoder.php:14
    • > PHP Warning
      Use of undefined constant ROT13_ENCODER_DECODER_PLUGIN_URL - assumed 'ROT13_ENCODER_DECODER_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/rot13-encoderdecoder/screens/admin_screen.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 22 tag instead of maximum 10
You can look at the official readme.txt

rot13-encoderdecoder/rot13-encoderdecoder.php Passed 13 tests

The principal PHP file in "ROT13 Encoder/Decoder" v. 1.8 is loaded by WordPress automatically on each request
108 characters long description:
Plugin to apply the ROT13 cipher to selected content, along with various methods to display decoded content.

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
No dangerous file extensions were detected677 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP28192489
JavaScript31224130
CSS13131
SVG10027

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity59.00
▷ Minimum class complexity59.00
▷ Maximum class complexity59.00
Average method complexity2.32
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods44
▷ Static methods00.00%
▷ Public methods44100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants19
▷ Global constants19100.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
2 PNG files occupy 0.03MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/rot13button32.png1.15KB0.54KB▼ 52.90%
img/rot13button.png34.61KB1.06KB▼ 96.94%