84% nantuki-yify-torrent-adder

Code Review | NanTuki YiFy-Torrent Adder

WordPress plugin NanTuki YiFy-Torrent Adder scored84%from 54 tests.

About plugin

  • Plugin page: nantuki-yify-torr...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.0
  • WordPress version: 6.3.1
  • First release: Nov 10, 2014
  • Latest release: Nov 14, 2014
  • Number of updates: 5
  • Update frequency: every 0.8 days
  • Top authors: Nazmul Alam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,593 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: ▼3.21ms] Passed 4 tests

An overview of server-side resources used by NanTuki YiFy-Torrent Adder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0236.68 ▼3.19
Dashboard /wp-admin3.33 ▲0.0344.21 ▼7.08
Posts /wp-admin/edit.php3.38 ▲0.0247.35 ▲0.39
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.92 ▼2.96
Media Library /wp-admin/upload.php3.26 ▲0.0236.23 ▲4.34

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

NanTuki YiFy-Torrent Adder: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.25 ▼1.141.66 ▼0.1842.36 ▼2.55
Dashboard /wp-admin2,222 ▲344.83 ▼1.02106.76 ▼12.8241.96 ▼6.35
Posts /wp-admin/edit.php2,105 ▲162.02 ▲0.0141.42 ▲1.5235.49 ▲3.25
Add New Post /wp-admin/post-new.php1,555 ▲4118.34 ▲0.85596.27 ▼97.6957.15 ▼9.43
Media Library /wp-admin/upload.php1,407 ▲194.24 ▲0.0596.46 ▼2.4644.10 ▼0.10

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nantuki-yify-torrent-adder/yifyset.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nantuki-yify-torrent-adder/yifyset.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Donate link: Invalid url: ""
You can look at the official readme.txt

nantuki-yify-torrent-adder/nantuki_yts.php 92% from 13 tests

This is the main PHP file of "NanTuki YiFy-Torrent Adder" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("nantuki-yify-torrent-adder.php" instead of "nantuki_yts.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin101 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP41510101

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin