99% unofficial-yektanet

Code Review | unofficialYektanet

WordPress plugin unofficialYektanet scored 99% from 54 tests.

About plugin

  • Plugin page: unofficial-yektanet
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.7
  • WordPress version: 5.8.1
  • First release: Apr 28, 2021
  • Latest release: Apr 28, 2021
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: amalian (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 154 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

An overview of server-side resources used by unofficialYektanet
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0140.35 ▲2.27
Dashboard /wp-admin3.04 ▼0.0240.34 ▼9.22
Posts /wp-admin/edit.php3.12 ▲0.0146.87 ▲2.31
Add New Post /wp-admin/post-new.php5.43 ▼0.0196.77 ▼560.49
Media Library /wp-admin/upload.php3.01 ▲0.0132.43 ▼2.84

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

unofficialYektanet: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,772 ▲17815.75 ▲0.3010.69 ▲0.9149.38 ▼0.70
Dashboard /wp-admin3,030 ▲995.91 ▼0.01147.14 ▼9.21143.69 ▲16.80
Posts /wp-admin/edit.php2,779 ▲402.68 ▼0.0169.29 ▼0.9191.17 ▼2.58
Add New Post /wp-admin/post-new.php1,622 ▲4118.54 ▼1.87405.92 ▲14.54118.60 ▲1.96
Media Library /wp-admin/upload.php1,773 ▼344.99 ▼0.02139.16 ▼22.22148.19 ▲28.87

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 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
2 plugin tags: ads, yektanet

unofficial-yektanet/unofficialYektanet.php 77% from 13 tests

The primary PHP file in "unofficialYektanet" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Main file name: Name the main plugin file the same as the plugin slug ("unofficial-yektanet.php" instead of "unofficialYektanet.php")
  • Text Domain: Please use dashes and lowercase characters for text domains

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
Good job! No executable or dangerous file extensions detected172 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14128168
Markdown1504

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.36
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo.png6.80KB3.16KB▼ 53.52%
assets/img/icon.png3.23KB1.41KB▼ 56.43%