77% taknod

Code Review | پلاگین همکاری در فروش لایسنس نود

WordPress plugin پلاگین همکاری در فروش لایسنس نود scored77%from 54 tests.

About plugin

  • Plugin page: taknod
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6
  • WordPress version: 6.3.1
  • First release: Jun 11, 2016
  • Latest release: Oct 7, 2016
  • Number of updates: 20
  • Update frequency: every 6.9 days
  • Top authors: hostbaran (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /939 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.00MB] [CPU: ▼1.71ms] Passed 4 tests

An overview of server-side resources used by پلاگین همکاری در فروش لایسنس نود
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0241.32 ▲2.08
Dashboard /wp-admin3.31 ▲0.0043.52 ▼8.23
Posts /wp-admin/edit.php3.36 ▲0.0048.52 ▲2.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.91 ▼0.54
Media Library /wp-admin/upload.php3.23 ▲0.0034.67 ▼0.14

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by پلاگین همکاری در فروش لایسنس نود
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲8713.43 ▼1.355.84 ▲3.8336.67 ▼4.74
Dashboard /wp-admin2,209 ▲214.85 ▼1.00106.89 ▲0.6342.75 ▼3.92
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0138.90 ▲3.0235.40 ▼0.73
Add New Post /wp-admin/post-new.php1,547 ▲1417.89 ▼5.23598.42 ▼72.1469.13 ▲11.60
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.0292.99 ▼7.8343.10 ▼2.37

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/taknod/template/success_callback.php
    • > /wp-content/plugins/taknod/template/error_callback.php
    • > /wp-content/plugins/taknod/template/header_callback.php
    • > /wp-content/plugins/taknod/template/main.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/taknod/taknode.php:51

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 86% from 29 tests

readme.txt 81% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Contributors: The plugin contributors field is not present
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === taknod === )
  • Screenshots: Screenshot #1 (main.jpg) image missing
You can look at the official readme.txt

taknod/taknode.php 92% from 13 tests

The entry point to "پلاگین همکاری در فروش لایسنس نود" version 1.6 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("taknod.php" instead of "taknode.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
Success! There were no dangerous files found in this plugin2,268 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
CSS38271,963
PHP62314228
JavaScript41030477

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
asset/main.png16.57KB10.02KB▼ 39.51%