76% netservice-reseller

Code Review | نمایندگی نت سرویس

WordPress plugin نمایندگی نت سرویس scored76%from 54 tests.

About plugin

  • Plugin page: netservice-reseller
  • Plugin version: 1.9.4
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Jun 4, 2022
  • Latest release: Jun 4, 2022
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: netserviceshop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /212 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼8.24ms] Passed 4 tests

Analyzing server-side resources used by نمایندگی نت سرویس
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0751.75 ▲2.41
Dashboard /wp-admin3.39 ▲0.0863.50 ▲5.46
Posts /wp-admin/edit.php3.50 ▲0.1453.26 ▼15.21
Add New Post /wp-admin/post-new.php5.99 ▲0.1091.46 ▼16.44
Media Library /wp-admin/upload.php3.31 ▲0.0839.84 ▼3.72
تبلیغات پاپ آپ /wp-admin/admin.php?page=wps-popup3.2835.18
پیامک انبوه /wp-admin/admin.php?page=wps-sms3.2828.86
وب اپلیکیشن /wp-admin/admin.php?page=wps-webapp3.2830.05
بک لینک /wp-admin/admin.php?page=wps-backlink3.2831.13
صفحه نخست /wp-admin/admin.php?page=wps-general3.2732.49
ایمیل مارکتینگ /wp-admin/admin.php?page=wps-email3.2831.64
گواهینامه SSL /wp-admin/admin.php?page=wps-ssl3.2834.06
بهینه سازی و سئو /wp-admin/admin.php?page=wps-seo3.2833.60
گوگل مارکتینگ /wp-admin/admin.php?page=wps-google3.2832.97

Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Please try to fix the following items
  • Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/netservice-reseller/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for نمایندگی نت سرویس
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,972 ▲18613.55 ▼1.117.15 ▲4.9352.26 ▲5.33
Dashboard /wp-admin2,265 ▲624.89 ▼0.95118.02 ▼3.0886.38 ▲37.80
Posts /wp-admin/edit.php2,162 ▲622.02 ▼0.0336.66 ▼2.0743.55 ▲1.22
Add New Post /wp-admin/post-new.php6,347 ▲4,81623.36 ▼0.011,011.53 ▲290.6555.31 ▼9.22
Media Library /wp-admin/upload.php1,462 ▲654.27 ▲0.12104.64 ▼24.6389.52 ▲34.95
تبلیغات پاپ آپ /wp-admin/admin.php?page=wps-popup9262.0226.7563.99
پیامک انبوه /wp-admin/admin.php?page=wps-sms9292.0126.3241.32
وب اپلیکیشن /wp-admin/admin.php?page=wps-webapp9322.0125.9846.43
بک لینک /wp-admin/admin.php?page=wps-backlink9232.0128.0747.29
صفحه نخست /wp-admin/admin.php?page=wps-general9292.0525.9945.24
ایمیل مارکتینگ /wp-admin/admin.php?page=wps-email9262.1428.0848.54
گواهینامه SSL /wp-admin/admin.php?page=wps-ssl9292.0224.1247.21
بهینه سازی و سئو /wp-admin/admin.php?page=wps-seo9292.0228.0046.31
گوگل مارکتینگ /wp-admin/admin.php?page=wps-google9322.0224.3247.08

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/netservice-reseller/include/main.php
    • > /wp-content/plugins/netservice-reseller/netservice.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wps-google
    • > Network (severe)
    http://netservice.shop/assets/img/logo.png - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wps-google
    • > Network (severe)
    http://blog.netservice.shop/wp-content/plugins/NetService/include/download.png - Failed to load resource: net::ERR_NAME_NOT_RESOLVED

Optimizations

Plugin configuration 76% from 29 tests

readme.txt 75% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Contributors: Plugin contributors not specified
  • Contributors: The plugin tags were not defined
  • Screenshots: Screenshot #1 (محیط کاربری افزونه) image required
  • Screenshots: A description for screenshot #0 is required in netservice-reseller/assets to your readme.txt
You can look at the official readme.txt

netservice-reseller/netservice.php 77% from 13 tests

"نمایندگی نت سرویس" version 1.9.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 289 characters long)
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("netservice-reseller.php" instead of "netservice.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
There were no executable files found in this plugin641 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP2820388
CSS2722107
JavaScript594666
Sass211136
JSON10032
Markdown11012

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.03
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
4 PNG files occupy 0.26MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
include/enamad.png0.79KB0.80KB0.00%
screenshot.png131.48KB47.66KB▼ 63.75%
include/download.png0.55KB0.66KB0.00%
include/logo.png136.89KB33.98KB▼ 75.17%