90% marketmap-products-api

Code Review | لیست محصولات ووکامرس برای مارکت مپ

WordPress plugin لیست محصولات ووکامرس برای مارکت مپ scored90%from 54 tests.

About plugin

  • Plugin page: marketmap-product...
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8
  • WordPress version: 6.3.1
  • First release: Dec 29, 2021
  • Latest release: Dec 29, 2021
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: marketmap (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /288 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▲2.74ms] Passed 4 tests

An overview of server-side resources used by لیست محصولات ووکامرس برای مارکت مپ
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1348.84 ▲8.25
Dashboard /wp-admin3.43 ▲0.1348.85 ▼0.24
Posts /wp-admin/edit.php3.49 ▲0.1351.85 ▲7.32
Add New Post /wp-admin/post-new.php6.02 ▲0.1392.27 ▼2.17
Media Library /wp-admin/upload.php3.36 ▲0.1336.73 ▲6.03

Server storage [IO: ▲0.06MB] [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: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for لیست محصولات ووکامرس برای مارکت مپ
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.22 ▼1.191.81 ▼0.6644.18 ▼4.17
Dashboard /wp-admin2,205 ▲175.80 ▲0.93103.21 ▼9.2139.63 ▼5.22
Posts /wp-admin/edit.php2,097 ▲262.11 ▲0.1040.76 ▲2.3336.92 ▲0.43
Add New Post /wp-admin/post-new.php1,429 ▼9918.48 ▼4.76520.56 ▼155.2229.52 ▼29.25
Media Library /wp-admin/upload.php1,393 ▲54.21 ▼0.0293.42 ▼4.1737.79 ▼7.75

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: extract, products, marketmap, api, woocommerce...

marketmap-products-api/index.php 92% from 13 tests

The principal PHP file in "لیست محصولات ووکامرس برای مارکت مپ" v. 1.1.2 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("marketmap-products-api.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected946 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP117287946

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity114.00
▷ Minimum class complexity114.00
▷ Maximum class complexity114.00
Average method complexity14.88
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.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
No PNG files were detected