84% namasha-by-mdesign

Code Review | Namasha By Mdesign

WordPress plugin Namasha By Mdesign scored84%from 54 tests.

About plugin

  • Plugin page: namasha-by-mdesign
  • Plugin version: 1.1.32
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 31, 2022
  • Latest release: Nov 17, 2023
  • Number of updates: 12
  • Update frequency: every 49.8 days
  • Top authors: mdesignfa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,895 total downloads

Benchmarks

Plugin footprint 82% 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.06MB] [CPU: ▼3.17ms] 75% from 4 tests

A check of server-side resources used by Namasha By Mdesign
Please fix the following
  • CPU: Total CPU usage must kept under 500.00ms (currently 623.26ms on /wp-admin/plugin-install.php?s=mdesign&tab=search&type=author)
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.35 ▼8.07
Dashboard /wp-admin3.37 ▲0.0745.61 ▲2.83
Posts /wp-admin/edit.php3.49 ▲0.1348.20 ▼0.73
Add New Post /wp-admin/post-new.php5.96 ▲0.0784.20 ▼4.99
Media Library /wp-admin/upload.php3.30 ▲0.0635.30 ▲1.13
Other plugins /wp-admin/plugin-install.php?s=mdesign&tab=search&type=author3.34623.26
Namasha/Aparat /wp-admin/admin.php?page=namasha-settings3.3135.37

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

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

Browser metrics Passed 4 tests

Namasha By Mdesign: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,858 ▲7114.24 ▼0.162.10 ▼0.1536.57 ▼8.54
Dashboard /wp-admin2,263 ▲835.58 ▼0.03108.27 ▲11.9438.78 ▼2.53
Posts /wp-admin/edit.php2,178 ▲782.02 ▼0.0041.01 ▲1.9836.33 ▼1.39
Add New Post /wp-admin/post-new.php1,569 ▲4325.06 ▲2.15609.20 ▼9.0160.07 ▲3.32
Media Library /wp-admin/upload.php1,468 ▲654.23 ▲0.0297.06 ▼3.7840.31 ▼0.35
Other plugins /wp-admin/plugin-install.php?s=mdesign&tab=search&type=author1,4181.9236.1145.08
Namasha/Aparat /wp-admin/admin.php?page=namasha-settings1,3582.2024.4248.09

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
The following items require your attention
  • The uninstall procedure has failed, leaving 9 options in the database
    • namashabymdz_lazyload
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • namashabymdz_empty_onDeactivate
    • widget_recent-comments
    • widget_recent-posts
    • namashabymdz_redirect_onActivate

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 9× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/namasha-by-mdesign/admin/css/admin-css.php
    • > /wp-content/plugins/namasha-by-mdesign/admin/class-admin.php
    • > /wp-content/plugins/namasha-by-mdesign/front/class-core.php
    • > /wp-content/plugins/namasha-by-mdesign/includes/plugin-runner.php
    • > /wp-content/plugins/namasha-by-mdesign/admin/html/settings-pagehtml.php
    • > /wp-content/plugins/namasha-by-mdesign/admin/admin-ajax.php
    • > /wp-content/plugins/namasha-by-mdesign/admin/settingspage.php
    • > /wp-content/plugins/namasha-by-mdesign/namasha-by-mdesign.php
    • > /wp-content/plugins/namasha-by-mdesign/includes/elem-widget.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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: The plugin tags were not defined
The official readme.txt might help

namasha-by-mdesign/namasha-by-mdesign.php Passed 13 tests

This is the main PHP file of "Namasha By Mdesign" version 1.1.32, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
123 characters long description:
نمایش حرفه ای ویدیو های نماشا و آپارات در وردپرس (بدون کاهش سرعت لود)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin2,139 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP102491111,322
SVG908439
PO File1101108252
JavaScript3304125
CSS1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity19.33
▷ Minimum class complexity8.00
▷ Maximum class complexity34.00
Average method complexity2.96
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods2692.86%
▷ Protected methods27.14%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin