83% edd-toman

Code Review | Conversion of Rial to Toman for Easy Digital Downloads (EDD)

WordPress plugin Conversion of Rial to Toman for Easy Digital Downloads (EDD) scored83%from 54 tests.

About plugin

  • Plugin page: edd-toman
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 16, 2018
  • Latest release: Feb 6, 2023
  • Number of updates: 30
  • Update frequency: every 60.5 days
  • Top authors: ariapadweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,871 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Analyzing server-side resources used by Conversion of Rial to Toman for Easy Digital Downloads (EDD)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.34 ▼3.99
Dashboard /wp-admin3.31 ▼0.0344.13 ▼18.53
Posts /wp-admin/edit.php3.36 ▲0.0141.88 ▼4.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.10 ▼15.21
Media Library /wp-admin/upload.php3.23 ▲0.0131.63 ▼4.22

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Conversion of Rial to Toman for Easy Digital Downloads (EDD)
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.34 ▼1.041.69 ▼0.2444.21 ▲3.30
Dashboard /wp-admin2,203 ▲155.80 ▼0.0897.82 ▼4.5139.61 ▼1.23
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0234.75 ▼0.1531.83 ▼4.52
Add New Post /wp-admin/post-new.php1,538 ▲1922.78 ▼0.34656.28 ▼38.1157.55 ▼1.74
Media Library /wp-admin/upload.php1,382 ▼64.19 ▼0.0195.59 ▼11.8043.14 ▼0.32

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 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/edd-toman/titpe-toman-in-the-plugin-edd.php:16

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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot-1.png), #2 (screenshot-2.png)
  • Donate link: Please fix this invalid url: ""
The official readme.txt might help

edd-toman/titpe-toman-in-the-plugin-edd.php 92% from 13 tests

Analyzing the main PHP file in "Conversion of Rial to Toman for Easy Digital Downloads (EDD)" version 2.0
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("edd-toman.php" instead of "titpe-toman-in-the-plugin-edd.php")

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

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
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%
Functions1
▷ Named functions1100.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