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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.12 ▼1.01 | 5.98 ▼110.53 |
Dashboard /wp-admin | 2.14 ▼1.27 | 4.95 ▼33.02 |
Posts /wp-admin/edit.php | 2.14 ▼1.50 | 5.23 ▼38.75 |
Add New Post /wp-admin/post-new.php | 2.14 ▼4.83 | 4.50 ▼1,238.74 |
Media Library /wp-admin/upload.php | 2.14 ▼1.15 | 4.17 ▼24.36 |
ROT13 Encoder/Decoder /wp-admin/options-general.php?page=rot13_encoder_decoder | 2.14 | 4.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,921 ▲167 | 15.48 ▼0.16 | 11.17 ▲4.00 | 3.43 ▼0.12 |
Dashboard /wp-admin | 2,944 ▲89 | 6.14 ▼0.09 | 120.27 ▼17.57 | 151.61 ▼31.03 |
Posts /wp-admin/edit.php | 2,751 ▲57 | 3.24 ▲0.00 | 63.93 ▼0.51 | 146.91 ▲7.00 |
Add New Post /wp-admin/post-new.php | 1,682 ▼29 | 19.68 ▼1.00 | 388.79 ▼47.01 | 165.47 ▼0.50 |
Media Library /wp-admin/upload.php | 1,761 ▲66 | 5.53 ▲0.01 | 140.26 ▲3.90 | 186.55 ▼37.93 |
ROT13 Encoder/Decoder /wp-admin/options-general.php?page=rot13_encoder_decoder | 2,455 | 3.72 | 113.90 | 158.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 81 | 92 | 489 |
JavaScript | 3 | 12 | 24 | 130 |
CSS | 1 | 3 | 1 | 31 |
SVG | 1 | 0 | 0 | 27 |
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 code | 0.24 |
Average class complexity | 59.00 |
▷ Minimum class complexity | 59.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 2.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 44 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 19 | |
▷ Global constants | 19 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/rot13button32.png | 1.15KB | 0.54KB | ▼ 52.90% |
img/rot13button.png | 34.61KB | 1.06KB | ▼ 96.94% |