84% nasim-persian-maker

Code Review | Nasim Persian Maker

WordPress plugin Nasim Persian Maker scored84%from 54 tests.

About plugin

  • Plugin page: nasim-persian-maker
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3
  • WordPress version: 6.3.1
  • First release: Aug 10, 2015
  • Latest release: Sep 20, 2015
  • Number of updates: 23
  • Update frequency: every 1.8 days
  • Top authors: nasimnet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /6,388 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.60MB] [CPU: ▲8.70ms] Passed 4 tests

This is a short check of server-side resources used by Nasim Persian Maker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.05 ▲0.5952.00 ▲6.06
Dashboard /wp-admin3.92 ▲0.6258.89 ▲2.81
Posts /wp-admin/edit.php3.97 ▲0.6165.26 ▲12.19
Add New Post /wp-admin/post-new.php6.49 ▲0.61112.98 ▲14.84
Media Library /wp-admin/upload.php3.82 ▲0.5948.22 ▲13.75

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Nasim Persian Maker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,990 ▲22915.00 ▲0.351.79 ▲0.1241.83 ▼3.73
Dashboard /wp-admin2,399 ▲2286.72 ▲1.11126.27 ▲27.3246.64 ▲3.50
Posts /wp-admin/edit.php2,327 ▲2273.88 ▲1.9060.80 ▲20.2639.47 ▲2.02
Add New Post /wp-admin/post-new.php1,581 ▲5323.99 ▲0.65622.17 ▼67.5533.78 ▼30.62
Media Library /wp-admin/upload.php1,468 ▲714.75 ▲0.5587.35 ▼14.8847.55 ▲5.72

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • _cs_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

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
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following
  • 13× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/nasim-persian-maker/admin/css/yekan/index.php
    • > /wp-content/plugins/nasim-persian-maker/nasim-persian/index.php
    • > /wp-content/plugins/nasim-persian-maker/nasim-persian/theme/brasserie/index.php
    • > /wp-content/plugins/nasim-persian-maker/nasim-persian/plugin/index.php
    • > /wp-content/plugins/nasim-persian-maker/admin/css/yekan/fonts/index.php
    • > /wp-content/plugins/nasim-persian-maker/nasim-persian/theme/index.php
    • > /wp-content/plugins/nasim-persian-maker/admin/css/index.php
    • > /wp-content/plugins/nasim-persian-maker/admin/index.php
    • > /wp-content/plugins/nasim-persian-maker/nasim-persian/theme/zerif-lite/index.php
    • > /wp-content/plugins/nasim-persian-maker/nasim-persian/framework/index.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (Auto Persian), #2 (Upload Persian Pack), #3 (Dashboard)
The official readme.txt might help

nasim-persian-maker/nasim-presian-maker.php 92% from 13 tests

The entry point to "Nasim Persian Maker" version 2.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("nasim-persian-maker.php" instead of "nasim-presian-maker.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
No dangerous file extensions were detected34,493 lines of code in 84 files:
LanguageFilesBlank linesComment linesLines of code
JSON20012,928
CSS135882896,792
JavaScript81,0717684,522
PO File92,2223,7774,407
PHP459629012,849
Sass528401,818
SVG2001,177

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity13.28
▷ Minimum class complexity1.00
▷ Maximum class complexity85.00
Average method complexity4.67
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes32
▷ Abstract classes26.25%
▷ Concrete classes3093.75%
▷ Final classes00.00%
Methods107
▷ Static methods43.74%
▷ Public methods107100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions45
▷ Named functions45100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.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
6 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/chosen-sprite@2x.png0.85KB0.83KB▼ 3.10%
screenshot-3.png18.11KB17.40KB▼ 3.90%
screenshot-1.png18.02KB17.23KB▼ 4.38%
assets/images/checkerboard.png2.29KB2.54KB0.00%
screenshot-2.png25.33KB24.21KB▼ 4.39%