84% encryption-tools-generator

Code Review | Encryption Tools Generator

WordPress plugin Encryption Tools Generator scored 84% from 54 tests.

About plugin

  • Plugin page: encryption-tools-...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Mar 3, 2015
  • Latest release: May 9, 2015
  • Number of updates: 7
  • Update frequency: every 9.6 days
  • Top authors: etiennerached (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,507 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.28ms] Passed 4 tests

An overview of server-side resources used by Encryption Tools Generator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.28 ▼2.76
Dashboard /wp-admin3.32 ▲0.0245.24 ▼4.13
Posts /wp-admin/edit.php3.37 ▲0.0247.75 ▼0.05
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.06 ▼2.18
Media Library /wp-admin/upload.php3.24 ▲0.0233.76 ▲1.15

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: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Encryption Tools Generator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.63 ▼1.034.55 ▲2.8143.49 ▼1.48
Dashboard /wp-admin2,203 ▲124.84 ▼0.02108.29 ▼1.1938.21 ▼8.15
Posts /wp-admin/edit.php2,089 ▼02.18 ▲0.1241.19 ▲0.3434.53 ▼3.55
Add New Post /wp-admin/post-new.php1,542 ▲918.17 ▼5.04596.51 ▼22.1357.65 ▼1.23
Media Library /wp-admin/upload.php1,382 ▼64.20 ▼0.0697.89 ▼5.6742.65 ▲1.60

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/encryption-tools-generator/encryption-tools-generator.php

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 93% 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
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (This is how a generated form look like.), #2 (Adding a shortcode to the wordpress page.)
You can take inspiration from this readme.txt

encryption-tools-generator/encryption-tools-generator.php 92% from 13 tests

Analyzing the main PHP file in "Encryption Tools Generator" version 0.1
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 283 characters long)

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
Good job! No executable or dangerous file extensions detected106 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12244106

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin