84% simple-md5-generator

Code Review | Simple MD5 Generator

WordPress plugin Simple MD5 Generator scored84%from 54 tests.

About plugin

  • Plugin page: simple-md5-generator
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Jun 23, 2017
  • Latest release: Jun 23, 2017
  • Number of updates: 5
  • Update frequency: every 20.8 days
  • Top authors: gohar2 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /648 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by Simple MD5 Generator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.47 ▼2.18
Dashboard /wp-admin3.32 ▲0.0246.58 ▼1.18
Posts /wp-admin/edit.php3.37 ▲0.0148.79 ▲1.84
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.68 ▼8.43
Media Library /wp-admin/upload.php3.24 ▲0.0135.71 ▲0.90
Simple MD5 Generator /wp-admin/options-general.php?page=simple_md5_generator3.2131.12

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple MD5 Generator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.30 ▼1.071.85 ▲0.3038.52 ▼8.30
Dashboard /wp-admin2,207 ▲195.81 ▼0.0499.46 ▼17.7439.02 ▼6.31
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0034.22 ▼3.2635.75 ▲1.42
Add New Post /wp-admin/post-new.php1,536 ▲323.16 ▼0.03672.43 ▲22.0357.53 ▲5.85
Media Library /wp-admin/upload.php1,395 ▲134.19 ▲0.0295.37 ▼7.9840.98 ▼0.57
Simple MD5 Generator /wp-admin/options-general.php?page=simple_md5_generator7882.1835.5326.81

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/simple-md5-generator/simplemd5generator.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention: You can look at the official readme.txt

simple-md5-generator/simplemd5generator.php 92% from 13 tests

This is the main PHP file of "Simple MD5 Generator" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-md5-generator.php" instead of "simplemd5generator.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected71 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP116771

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin